Skip to content

feat(web): keep finished subagents out of the way - #182

Merged
nixuuu merged 1 commit into
devfrom
feat/compact-subagents
Nov 5, 2026
Merged

nixuuu merged 1 commit into
devfrom
feat/compact-subagents

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 5, 2026

Copy link
Copy Markdown
Member

Subagents (threads that an agent started) now stay out of the way.

  • Sidebar: subagent threads are hidden, also when pinned or archived. When a subagent needs input, its parent row shows "Subagent needs input". Side threads that you start yourself work as before.
  • Thread details: subagents are collapsed into one row by default, for example "Subagents · 1 running · 1 needs input · 218 finished". Each device remembers whether the row is open. When open, the row lists running subagents and those that finished in the last 10 minutes. Older ones go under "Previous subagents", which shows the failure count and scrolls inside a fixed height.
  • Setting: Settings → Threads → Thread details → Show finished subagents. It is a per-device setting, off by default, with a reset button. When it is off, finished subagents are counted but not listed.
  • Code: the existing spawnedByAgent field marks subagents (it comes from the gateway's threads.origin = "agent"). The protocol does not change. Disclosure gains an onchange callback and opens and closes instantly when reduced motion is on.

Checked in a browser with fixtures of 0, 2 and 220 subagents, in light and dark mode, at desktop and phone widths, with the row open and closed and the setting on and off.

Copy audit (§8):

  • "Lineage · N running" becomes subagent counts for this thread.
  • "Previous agents" becomes "Previous subagents", with a failure count.
  • "subagent" is added to the glossary.
  • Checked: sentence case, plurals, short descriptions, accessible status text, and long names at every width. No new error text, empty states or humour.

@nixuuu
nixuuu merged commit 4592fc6 into dev Nov 5, 2026
9 checks passed
@nixuuu
nixuuu deleted the feat/compact-subagents branch November 5, 2026 14:24
nixuuu added a commit that referenced this pull request Nov 5, 2026
…231)

Stage 5 of 5, mobile UX: catch up with recent web features in the thread
view.

**Done**
- Full access with confirmation.
- The work group is open while the agent works and collapsed after the
turn (the default fold behaviour from #195).
- Tighter work rows in the `work` scale; commands in monospace.
- The shell command card and `!` mode in the composer (#194).
- "Starting" for a dispatched queued turn (#197).
- File badges in the message bubble.
- Finished subagents collapse into one count that opens the lineage
panel (#182).
- The type scale for overlays, chrome, work rows and the context row
(#174/#193).
- Rejected messages show their reason, instead of a generic retry note.

**Deferred**
- The work fold settings (per device on the web).
- Badges placed inline in the text and queue editing (#200/#201); files
stay as chips.
- Linked computers in pickers (needs `LinkedComputerSnapshot` merging).
- Worktree and ref in a new thread.
- Approval countdown and expiry cards.
- Connector errors.
- Mentions, side threads and goal editing.

**Checked** on the Android emulator, light and dark. `check:tmp`: 1425
passed, 0 failed. `expo lint` and `tsc` are clean.

**Copy audit (§8):**
- "Runs as a shell command when delivered."
- "Starting"
- "N finished subagents"
- "Set and manage goals in Canopy on the web."
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.

1 participant