fixed use step completion

This commit is contained in:
arkml 2025-09-12 17:30:16 +05:30
parent 6ecb144692
commit 5fd1aa825d
2 changed files with 4 additions and 5 deletions

View file

@ -97,7 +97,8 @@ export function TopBar({
const step1Complete = hasAgentInstructionChanges;
const step2Complete = hasPlaygroundTested && hasAgentInstructionChanges;
// Keep publish as a prerequisite for Use completion, but remove it from the visual steps
const step4Complete = hasClickedUse && hasPublished && hasPlaygroundTested && hasAgentInstructionChanges;
// Mark "Use" complete as soon as a Use Assistant option is clicked
const step4Complete = hasClickedUse;
// Determine current step (first incomplete visual step: 1 -> 2 -> 4)
const currentStep = !step1Complete ? 1 : !step2Complete ? 2 : !step4Complete ? 4 : null;

View file

@ -1191,10 +1191,8 @@ export function WorkflowEditor({
// Ensure chat is visible and collapse left panel
setActivePanel('playground');
setViewMode((prev: ViewMode) => prev);
updateViewMode(
viewMode === 'three_all' ? 'three_all' :
(viewMode === 'two_agents_skipper' ? 'two_agents_chat' : 'two_chat_skipper')
);
// Expand Chat to full view: hide Copilot panel and collapse Agents panel
updateViewMode('two_agents_chat');
setIsLeftPanelCollapsed(true);
}, [updateViewMode, viewMode]);