Skip to content

feat: add subagents sidebar with clickable navigation and parent keybind - #4865

Open
franlol wants to merge 5 commits into
anomalyco:devfrom
franlol:subagents-in-the-sidebar
Open

feat: add subagents sidebar with clickable navigation and parent keybind#4865
franlol wants to merge 5 commits into
anomalyco:devfrom
franlol:subagents-in-the-sidebar

Conversation

@franlol

@franlol franlol commented Nov 28, 2025

Copy link
Copy Markdown
Contributor

Add Subagents in the sidebar

  • Show Subagents in the sidebar
  • Click on them to navigate to the subagent session
  • Return to parent session with <leader>+Up
  • Collapsable Sub-Agents menu when > 2 (Like other lists in the Sidebar)
sidebar

@franlol
franlol force-pushed the subagents-in-the-sidebar branch from c6ff036 to e768f4c Compare November 28, 2025 13:42
@Tarquinen

Copy link
Copy Markdown
Contributor

This is very nice!

shuv1337 added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 1, 2025
shuv1337 added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 1, 2025
Merge PR anomalyco#4865: Subagents sidebar with clickable navigation
@iamhenry

iamhenry commented Dec 1, 2025

Copy link
Copy Markdown

Can't wait for this! Plz add to oc soon 🙏🏽

@shuv1337

shuv1337 commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

@rekram1-node - please review! not my PR but i've been testing in my fork and this one has been very useful.

@dbpolito

dbpolito commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

There is this other PR #4564 which is related, but i think this one is even better.

@rekram1-node

Copy link
Copy Markdown
Collaborator

Yeah our designer had some opinions on this, I will try to get this in once we have UX thought out, prolly will update this directly

@Mumbolian

Copy link
Copy Markdown

Absolutely love this

@ariane-emory

Copy link
Copy Markdown
Contributor

Been using this for the past week and a half, can't live without it.

opencode-agent Bot added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 11, 2025
Resolved conflicts:
- packages/opencode/package.json: Updated version to 1.0.150
- packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx: Accepted upstream changes, restored double Ctrl+C exit feature (PR anomalyco#4900)
- packages/opencode/src/config/config.ts: Accepted upstream changes with super keybinds, preserved header_toggle and session_parent keybinds
- script/publish.ts: Preserved fork-specific comment
- .github/workflows/publish.yml: Removed (deleted in fork)
- packages/ui/src/components/input.css: Removed (deleted upstream)
- packages/ui/src/components/input.tsx: Removed (deleted upstream)
- bun.lock: Regenerated
- All package.json files: Accepted upstream version bumps
- Desktop, console, enterprise files: Accepted upstream

Preserved fork features:
- PR anomalyco#4900: Double Ctrl+C to exit
- PR anomalyco#4865: session_parent keybind
- Fork feature: header_toggle keybind
opencode-agent Bot added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 11, 2025
Resolved conflicts:
- packages/opencode/package.json: Updated version to 1.0.150
- packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx: Accepted upstream changes, restored double Ctrl+C exit feature (PR anomalyco#4900)
- packages/opencode/src/config/config.ts: Accepted upstream changes with super keybinds, preserved header_toggle and session_parent keybinds
- script/publish.ts: Preserved fork-specific comment
- .github/workflows/publish.yml: Removed (deleted in fork)
- packages/ui/src/components/input.css: Removed (deleted upstream)
- packages/ui/src/components/input.tsx: Removed (deleted upstream)
- packages/desktop/src/context/layout.tsx: Restored fork's font/theme support
- packages/desktop/src/components/font-picker.tsx: Updated to use new items function signature
- packages/desktop/src/components/theme-picker.tsx: Updated to use new items function signature
- bun.lock: Regenerated
- All package.json files: Accepted upstream version bumps
- Desktop, console, enterprise files: Accepted upstream

Preserved fork features:
- PR anomalyco#4900: Double Ctrl+C to exit
- PR anomalyco#4865: session_parent keybind
- Fork feature: header_toggle keybind
- Fork feature: Desktop font and theme pickers
shuv1337 added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 11, 2025
This merge brings upstream changes while preserving fork-specific features:

Preserved fork features:
- PR anomalyco#4898: Search in messages (Ctrl+F)
- PR anomalyco#4791: Bash output with ANSI colors
- PR anomalyco#4900: Double Ctrl+C to exit
- PR anomalyco#4709: Live token usage during streaming
- PR anomalyco#4865: Subagents sidebar with clickable navigation
- PR anomalyco#4515: Show plugins in /status
- Fork-only: Toggle session header visibility

Resolved conflicts:
- Package versions updated to upstream v1.0.149
- Keybind type changes (cmd -> super)
- Desktop context files updated with defensive API checks
- UI components updated for new items prop signature
- input.css/tsx renamed to text-field.css/tsx

Validation:
- All typechecks pass (12/12 packages)
- All tests pass (281 passed, 1 skipped)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
shuv1337 added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 11, 2025
Add goToParent() function and command palette entry for navigating
to parent sessions. This completes the session_parent keybind
implementation from PR anomalyco#4865 (subagents sidebar feature).

Also document critical code markers in fork-features.json for
preserving this feature during upstream syncs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@joshua-singer

Copy link
Copy Markdown

This would be super useful. ++

opencode-agent Bot added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 18, 2025
Resolved conflicts:
- bun.lock: Regenerated from scratch
- packages/*/package.json: Accept upstream version (1.0.167)
- packages/extensions/zed/extension.toml: Accept upstream version

Upstream changes include:
- Version bump to 1.0.167
- Terminal title toggle feature added to config
- MCP authentication improvements
- Legal pages (privacy policy, terms of service)
- Tauri package updates

Fork features preserved:
- PR anomalyco#4898: Search in messages (Ctrl+F)
- PR anomalyco#4791: ANSI bash output support
- PR anomalyco#4900: Double Ctrl+C to exit
- PR anomalyco#4709: Live token usage during streaming
- PR anomalyco#4865: Subagents sidebar navigation
- PR anomalyco#4515: Show plugins in /status
- PR anomalyco#5508: Cache management commands
- PR #ariane-emory: Granular file permissions
- PR #fork-140: Toggle transparent background
- Desktop features: slash commands, shell mode, themes, branding
@zenyr

zenyr commented Dec 23, 2025

Copy link
Copy Markdown
Contributor

@joseehilton147

joseehilton147 commented Jan 20, 2026

Copy link
Copy Markdown

@rekram1-node any news on this?

@lrq3000

lrq3000 commented Mar 20, 2026

Copy link
Copy Markdown

This needs to be set as a top priority feature, it is super useful to be able to get an overview of all the spawned subagents and switch between them, especially for those using orchestrators such as Oh My Opencode ! And with the Claude Agents Teams feature that will certainly spawn similar opensource implementations, it will become even more necessary.

strayge added a commit to strayge/opencode that referenced this pull request Apr 15, 2026
Show subagent tasks grouped by agent type in the sidebar with
status indicators (spinner/checkmark/error) and click-to-navigate.

Based on anomalyco#4865
strayge added a commit to strayge/opencode that referenced this pull request Apr 15, 2026
Add sidebar usage display, /usage command, and usage toast notifications
for GitHub Copilot, Anthropic, and OpenAI OAuth providers.

Based on anomalyco#4865
@iceteaSA

Copy link
Copy Markdown

Heads up — I opened #46109, which builds on your feature here, rebased onto current dev. The idea and original implementation are yours; credit's in the PR.

One difference worth flagging back to you: on a long orchestration session we ended up with hundreds of subagent sessions, and listing all of them made the sidebar unusable. So #46109 lists only active subagents and dedupes by child session id (so a resumed task doesn't double-render). If you revisit this PR, that filter is probably the useful bit to lift — please take it with credit to you, no ownership claimed on my side.

Not trying to jump ahead of your PR; opened mine because our fork needed it on current dev. If yours lands, I'll close mine.

iceteaSA added a commit to iceteaSA/opencode that referenced this pull request Aug 29, 2026
Reimplementation of upstream PR anomalyco#4865 by @franlol against the current TUI,
listing only in-flight subagents.
iceteaSA added a commit to iceteaSA/opencode that referenced this pull request Aug 29, 2026
Upstream PR anomalyco#4865 by @franlol, reimplemented against the current TUI. That PR targeted packages/opencode/src/cli/cmd/tui/routes/session/, which no longer exists.

Its navigation and parent keybind have since landed upstream independently, so this adds only the missing sidebar section. It also diverges from that PR deliberately: it lists only in-flight subagents (pending and running) rather than every historical one, because real sessions accumulate hundreds of dispatched subagents and a complete list is unusable.

Background dispatches complete the parent tool part immediately, so sidebar liveness is determined from child-session status.
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.