fix(ui): integrate agent panel with live runs and add Chat mode - #5
Closed
verrysimatupang99 wants to merge 2 commits into
Closed
fix(ui): integrate agent panel with live runs and add Chat mode#5verrysimatupang99 wants to merge 2 commits into
verrysimatupang99 wants to merge 2 commits into
Conversation
- RightSidebar now displays real-time agent runs from useAgentStore - Added 'chat' as default agent type for normal conversations - Orchestrator/Planner available for complex multi-agent tasks - Agent panel shows status icons (running/completed/failed) and tool progress - Fixed TypeScript deprecation warning in tsconfig.json Fixes: agent panel showing 'No agents running' despite active agents Fixes: confusing default agent selection (orchestrator → chat)
There was a problem hiding this comment.
Pull request overview
This PR updates the UI agent workflow by introducing a dedicated Chat agent mode as the default, and wiring the RightSidebar agent panel to live agent-run state so users can see real-time execution progress.
Changes:
- Added
'chat'toAgentType, surfaced it in selectable agent UI, and made it the default agent type. - Connected
RightSidebartouseAgentStoreto render live agent runs with status/progress and streaming previews. - Simplified agent routing in
AppShellso everything except'chat'goes throughrun_agent.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tsconfig.json | Adds ignoreDeprecations to suppress TS deprecation warnings. |
| src/types/index.ts | Adds chat agent type and label; expands SELECTABLE_AGENTS. |
| src/stores/useAgentStore.ts | Switches default selected agent type to chat. |
| src/components/settings/AgentsTab.tsx | Adds Chat icon/type and defaults settings selection to chat. |
| src/components/layout/RightSidebar.tsx | Replaces hardcoded empty state with live agent-run rendering + status/progress UI. |
| src/components/layout/AppShell.tsx | Routes non-chat agent types through run_agent (chat stays send_message). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+75
to
+83
| {run.status === 'running' && ( | ||
| <CircleNotch size={14} weight="bold" className="text-[var(--accent)] animate-spin" /> | ||
| )} | ||
| {run.status === 'completed' && ( | ||
| <CheckCircle size={14} weight="fill" className="text-green-500" /> | ||
| )} | ||
| {run.status === 'failed' && ( | ||
| <XCircle size={14} weight="fill" className="text-red-500" /> | ||
| )} |
| <XCircle size={14} weight="fill" className="text-red-500" /> | ||
| )} | ||
| <span className="text-xs font-medium text-[var(--text)]"> | ||
| {AGENT_LABELS[run.agentType as keyof typeof AGENT_LABELS] || run.agentType} |
| )} | ||
| {run.streamingText && run.status === 'running' && ( | ||
| <div className="text-[10px] text-[var(--text-muted)] truncate"> | ||
| {run.streamingText.slice(0, 60)}... |
…ders - Added 30s timeout + 10s connect timeout for chat requests - Added 10s timeout + 5s connect timeout for model listing - Added 60s timeout + 10s connect timeout for agent requests - Added missing migration file 20260424000_provider_api_format.sql Fixes: app hanging indefinitely when local provider is slow/unreachable Fixes: UI freezing during model fetch from unresponsive endpoints Fixes: database migration error on fresh install
Author
|
Sanitizing development flow - moving to enowX-Coder-verversion fork first |
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.
Problem
Solution
useAgentStoreto display live agent runsChanges
RightSidebar.tsx: Connected to agent store, added status UItypes/index.ts: Added 'chat' to AgentType, updated SELECTABLE_AGENTSuseAgentStore.ts: Changed default from 'orchestrator' to 'chat'AppShell.tsx: Simplified agent routing logicAgentsTab.tsx: Added ChatCircle icon for chat modetsconfig.json: Fixed TypeScript deprecation warningTesting
Fixes #2 (if issue exists)