fix: always show agent switcher and provide create-agent path in UI#792
Merged
fix: always show agent switcher and provide create-agent path in UI#792
Conversation
The AgentSwitcher was hidden when ≤1 agent existed, making it impossible to select the sole agent — leaving all agent-dependent tabs inaccessible. - Always render switcher when ≥1 agent exists (even single-agent installs) - Auto-select the sole agent when only one exists and none is selected - Add '+ Create Agent' option to the dropdown on all pages - Show a 'Create Agent' button when zero agents exist - Extract CreateAgentModal into shared component for reuse - Auto-select newly created agents in the store
Homeboy Results —
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Commit 1: Agent Switcher Visibility
+ Create Agentoption at the bottom of the dropdown — available on all pages that use the switcher (Agents, Pipelines, Jobs)Create Agentbutton when zero agents exist (first-run experience)CreateAgentModalinto a shared component so both the switcher and the Agent list tab can reuse itCommit 2: Shared Layer, Agent Scoping, Layer Grouping
Memory tab — shared layer (SITE.md):
AgentFileAbilities::executeListAgentFiles()now scans the shared directory in addition to agent and user dirslayerfield (shared,agent,user)resolveFilePath()also checks the shared directory so SITE.md can be readagent_idfrom request to abilities (was only passinguser_id)Pipeline & Flow creation — agent_id scoping:
Pipelines::handle_create_pipeline()now carriesagent_idfrom the interceptor to the abilityFlows::handle_create_flow()same fixcreatePipeline()andcreateFlow()includeagent_idfrom the Zustand store in the POST bodyagent_id=NULLand became invisibleData fix (manual):
agent_id=NULLassigned tochubes-bot(agent_id=3) via DB update