Skip to content

fix(ui): integrate agent panel with live runs and add Chat mode - #5

Closed
verrysimatupang99 wants to merge 2 commits into
enowdev:mainfrom
verrysimatupang99:main
Closed

fix(ui): integrate agent panel with live runs and add Chat mode#5
verrysimatupang99 wants to merge 2 commits into
enowdev:mainfrom
verrysimatupang99:main

Conversation

@verrysimatupang99

Copy link
Copy Markdown

Problem

  • Agent panel (RightSidebar) showed hardcoded 'No agents running' message despite active agents
  • Default agent type was 'orchestrator', confusing for simple chat interactions
  • Users couldn't see real-time agent progress in the panel

Solution

  • Integrated RightSidebar with useAgentStore to display live agent runs
  • Added 'chat' as default agent type for normal conversations
  • Orchestrator/Planner remain available for complex multi-agent tasks
  • Agent panel now shows:
    • Status icons (running/completed/failed)
    • Tool execution progress (X/Y tools completed)
    • Live streaming text preview

Changes

  • RightSidebar.tsx: Connected to agent store, added status UI
  • types/index.ts: Added 'chat' to AgentType, updated SELECTABLE_AGENTS
  • useAgentStore.ts: Changed default from 'orchestrator' to 'chat'
  • AppShell.tsx: Simplified agent routing logic
  • AgentsTab.tsx: Added ChatCircle icon for chat mode
  • tsconfig.json: Fixed TypeScript deprecation warning

Testing

  • ✅ TypeScript compilation passes
  • ✅ Rust backend compiles successfully
  • ✅ Vite build completes without errors

Fixes #2 (if issue exists)

- 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)
Copilot AI review requested due to automatic review settings May 11, 2026 18:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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' to AgentType, surfaced it in selectable agent UI, and made it the default agent type.
  • Connected RightSidebar to useAgentStore to render live agent runs with status/progress and streaming previews.
  • Simplified agent routing in AppShell so everything except 'chat' goes through run_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
@verrysimatupang99

Copy link
Copy Markdown
Author

Sanitizing development flow - moving to enowX-Coder-verversion fork first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants