Show agent thinking and tool calls in the chat UI
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 22/100
- Issue-Typ
- Feature
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- python, typescript
Rechercherichtung
Start with apps/app/src/components/tool-rendering.tsx and inspect the existing ToolReasoning and useDefaultRenderTool integration. Then read apps/agent/main.py to understand how agent events are emitted; the work is done when thinking and tool activity can be presented as a coherent, collapsible chat view with the proposed status details.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
Surface the agent's thinking process and tool call activity in the chat UI so users can see how the agent reasons, not just the final answer.
Current State
- Tool calls: The
ToolReasoningcomponent (apps/app/src/components/tool-rendering.tsx) already renders tool names, arguments, and status (executing → complete) viauseDefaultRenderTool. This is a good foundation but is minimal — it shows what tool was called, not why. - Thinking/reasoning: Not shown at all. The agent's intermediate thought process is invisible to the user. There is no UI for streaming thinking tokens or displaying step-by-step reasoning.
Proposal
1. Agent thinking display
Show the agent's reasoning as it works through a problem. This could be:
- Streaming thinking tokens — If using a model with extended thinking (e.g. Claude with
thinkingblocks), render these in a collapsible "Thinking…" section above the response. Show the thinking text streaming in real-time with a subtle visual treatment (muted text, indented, or in a distinct container). - Step-by-step reasoning — For multi-step agent tasks, show each reasoning step as the agent progresses (e.g., "Analyzing your request…", "Looking up existing todos…", "Organizing by priority…").
2. Enhanced tool call visualization
Build on the existing ToolReasoning component:
- Execution timeline — When multiple tools are called in sequence, show them as a vertical timeline so users see the agent's workflow.
- Tool results — Show a summary of what the tool returned (e.g., "Found 3 todos" or "Updated 2 items"), not just the arguments passed in.
- Duration — Show how long each tool call took.
- Grouped display — Collapse completed tool calls into a compact summary, expand only the active one.
3. Thinking + tools combined view
When the agent thinks, then calls a tool, then thinks again — show this as a coherent narrative:
🧠 Thinking: "The user wants to organize their todos by priority..."
🔧 get_todos → returned 5 todos
🧠 Thinking: "I'll group these into high/medium/low priority..."
🔧 manage_todos → updated 5 todos
✅ "I've organized your todos by priority!"
Implementation Notes
- CopilotKit's
useDefaultRenderToolalready provides the hook point for tool rendering - The agent backend (
apps/agent/main.py) would need to emit thinking/reasoning events — this could be done via LangGraph's streaming callbacks or by adding thinking state toAgentState - For models with native thinking (Claude extended thinking), CopilotKit may already surface thinking tokens — needs investigation
- The
ToolReasoningcomponent atapps/app/src/components/tool-rendering.tsxis the starting point for enhanced tool visualization
Design Considerations
- Thinking should be collapsible by default after completion — users who want transparency can expand it, but it shouldn't clutter the chat for those who don't
- Tool calls should feel like a progress indicator, not noise — compact when done, detailed when active
- The overall effect should make the agent feel more trustworthy and transparent without overwhelming the UI
- Vorherrschende Sprache
- TypeScript
- Sterne
- 3.9k
- Forks
- 414
- Ø Merge
- 4 Std.
- Gemergte PRs (30 T.)
- 6
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus CopilotKit/OpenIntelligentUI
-
Script dedup key truncation may cause collisionsEvtl. vergeben @saschabuehrle hat das vor 216 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
CopilotKit/OpenIntelligentUI#37 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
CopilotKit/OpenIntelligentUI#29 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Self-host with Docker Compose and optional server-held keysEvtl. vergeben @kannan983 hat das vor 16 Tagen übernommen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 18/100
CopilotKit/OpenIntelligentUI#98 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Support OpenAI-compatible gateways (OpenRouter) via vendor/model namesEvtl. vergeben @kannan983 hat das vor 16 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 25/100
CopilotKit/OpenIntelligentUI#97 ·
Maintainer antworten meist innerhalb von 1 Tag
-
UIOffen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 8/100
CopilotKit/OpenIntelligentUI#96 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in CopilotKit/OpenIntelligentUI
Ähnliche Issues
-
e2e-failure ready-to-code
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
redhat-developer/rhdh-plugin-export-overlays#4580 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
devdotfast/whiteboard#1415 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
area/sessions comp/desktop desktop/sessions P2 type/bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
NousResearch/hermes-agent#145383 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement p2 setup
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
vercel/eve#5419 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag