mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-19 18:35:18 +02:00
Show chat pane when starting with pre-built agent template
This commit is contained in:
parent
aed8377a8e
commit
417fa890a6
1 changed files with 11 additions and 1 deletions
|
|
@ -1027,7 +1027,17 @@ export function WorkflowEditor({
|
||||||
localStorage.setItem('workflow_view_mode', fromUrl);
|
localStorage.setItem('workflow_view_mode', fromUrl);
|
||||||
return fromUrl as ViewMode;
|
return fromUrl as ViewMode;
|
||||||
}
|
}
|
||||||
return (localStorage.getItem('workflow_view_mode') as ViewMode) || "three_all";
|
|
||||||
|
const storedViewMode = localStorage.getItem('workflow_view_mode') as ViewMode;
|
||||||
|
const hasAgents = workflow.agents.length > 0;
|
||||||
|
|
||||||
|
// If workflow has agents and stored view mode is "Hide chat" (two_agents_skipper),
|
||||||
|
// override to show all panels by default
|
||||||
|
if (hasAgents && storedViewMode === 'two_agents_skipper') {
|
||||||
|
return "three_all";
|
||||||
|
}
|
||||||
|
|
||||||
|
return storedViewMode || "three_all";
|
||||||
});
|
});
|
||||||
|
|
||||||
const updateViewMode = useCallback((mode: ViewMode) => {
|
const updateViewMode = useCallback((mode: ViewMode) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue