subagent ui
[!NOTE] Medium Risk Touches provider event ingestion and OpenCode session lifecycle (idle/error/stop), which can affect how in-flight subagent state is closed; timeline/session-logic changes are user-visible but mostly additive.
Overview Introduces
subagentas a first-class activity tone socollab_agent_tool_calllifecycle events surface assubagent.started/updated/completedinstead of generic tool rows, with richer payloads (itemId, default status, truncated titles).OpenCode now drives that path from
subtaskmessage parts (start on first sight, complete on removal) and auto-completes any still-open subtasks when a turn goes idle, errors, stops, or the session exits unexpectedly; collab-agent tool parts are no longer double-emitted as tool lifecycle events.On the chat timeline, subagent work renders as compact status cards (spinner / success / failure), generic placeholder labels are hidden, subagent groups allow up to four visible entries before “show more,” and turn/work toggles keep scroll position stable when expanding.
Work-log derivation treats subagents like tool-like entries, merges lifecycle updates by
itemId/toolCallIdeven when events interleave, and refuses to collapse two concurrentsubagent.startedrows unless they share the same id.Reviewed by Cursor Bugbot for commit 80b2759139b6959a2a076bed299a61698b5035b4. Bugbot is set up for automated code reviews on this repo. Configure here.
[!NOTE]
Add subagent UI rendering with lifecycle tracking and timeline grouping
- Adds a
subagenttone to orchestration activities and session logic, so subagent tool calls (typecollab_agent_tool_call) emit dedicatedsubagent.started/updated/completedevents instead of generic tool lifecycle events.SimpleWorkEntryRowrenders subagent entries as compact status cards with a live spinner during progress and check/X badges on completion or failure, including normalized agent names.collapseDerivedWorkLogEntriesandshouldCollapseToolLifecycleEntriesnow merge subagent lifecycle entries across interleaved sequences usingcollapseKeyoritemId-based correlation, including transpose-safe collapse when title/detail swap.- Timeline hides generic placeholder names (e.g.
'Subagent','task') and groups subagent entries with a higher inline cap (4 vs the default) and updatedShow more/fewertoggle labels.- Expanding or collapsing folds and work groups now preserves viewport scroll position via
requestAnimationFrameanchoring.Macroscope summarized 80b2759.
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
[!IMPORTANT]
Review skipped
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
bc0a445a-d1c7-4576-9097-5f333cd4b82fYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
- [ ] 🔍 Trigger review
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Approvability
Verdict: Needs human review
1 blocking correctness issue found. This PR introduces new subagent UI capability across server, web, and mobile. Multiple high-severity unresolved comments identify potential bugs including resource leaks, React hooks violations, and missing mobile collapse logic that require attention before merging.
You can customize Macroscope's approvability policy. Learn more.
https://github.com/user-attachments/assets/4bcec07b-5af0-415c-a3f9-10142b6785c2
https://github.com/user-attachments/assets/e2856629-a0a5-4d1a-8289-6ddbf5907c5e
Before and after UI