GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(tui): add Subagents section to session sidebar by tttturtle-russ · Pull Request #15738 · anomalyco/opencode

Conversation

@tttturtle-russ

@tttturtle-russ tttturtle-russ commented Mar 2, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Show live status of child sessions spawned by the parent agent in the sidebar, including title, and working/idle state. Section is collapsible when more than 2 subagents are present.

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

When context is too long, it's becomes hard to keep track of each subagent's status, then I add a component in the sidebar to keep track of each subagent and corresponding task.

How did you verify your code works?

I build the binary locally and test it by calling some subagents.

Screenshots / recordings

Snipaste_2026-03-02_23-36-57

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Copilot AI review requested due to automatic review settings March 2, 2026 16:27
@github-actions

github-actions Bot commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found several related PRs that address similar functionality:

Potential Related PRs:

  1. PR feat: add subagents sidebar with clickable navigation and parent keybind #4865 - "feat: add subagents sidebar with clickable navigation and parent keybind"

    • Directly related to adding subagents to the sidebar with navigation capabilities
  2. PR Desktop: Sidebar subsessions support #6368 - "Desktop: Sidebar subsessions support"

    • Addresses sidebar subsessions/child sessions display
  3. PR feat(web): Show subagents under parent session, allow intuitive navigation between. #14043 - "feat(web): Show subagents under parent session, allow intuitive navigation between"

    • Web version of similar functionality for showing subagents under parent session
  4. PR feat(tui): fire-and-forget async subagent tasks #7206 - "feat(tui): fire-and-forget async subagent tasks"

    • Related to TUI subagent functionality

These PRs appear to address related subagent display and navigation features, though some may be older implementations or for different platforms (desktop/web vs TUI). You may want to review them to ensure there's no overlapping functionality or to see if your changes complement or supersede any of these.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Copilot started reviewing on behalf of tttturtle-russ March 2, 2026 16:28
View session
@tttturtle-russ
feat(tui): add Subagents section to session sidebar
3faeaec
Show live status of child sessions spawned by the parent agent in the sidebar, including title, and working/idle state. Section is collapsible when more than 2 subagents are present.
@tttturtle-russ
tttturtle-russ force-pushed the feat/subagent-sidebar branch from 0e37c4a to 3faeaec Compare March 2, 2026 16:30
Copilot AI reviewed Mar 2, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

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 adds a "Subagents" section to the session sidebar in the TUI, enabling users to monitor the live status and titles of all child sessions spawned by the current parent agent. This addresses the difficulty of tracking subagent progress when context is long.

Changes:

  • Added subagents key to the expanded store (defaulting to true)
  • Added a subagents computed memo that filters sync.data.session for sessions whose parentID matches the current session
  • Added a new collapsible UI section rendering each subagent's title and idle/working status using existing conventions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/opencode/src/cli/cmd/tui/routes/session/sidebar.tsx
{title()}
</text>
<text fg={theme.textMuted}>
{status() === "idle" ? "idle" : "working"}

Copilot AI Mar 2, 2026

Copy link

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

The status() check only handles "idle" vs. everything else, but sync.session.status() can return three distinct values: "idle", "working", and "compacting" (when session.time.compacting is set). When a subagent's session is compacting, it will display "working" with a warning color, which is misleading because compacting is a distinct background housekeeping operation. The displayed label should reflect the compacting state, and the indicator color could differentiate it (e.g., use a different color or a different label like "compacting").

Suggested change
{status() === "idle" ? "idle" : "working"}
{status() === "idle" ? "idle" : status() === "compacting" ? "compacting" : "working"}

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Copilot uses AI. Check for mistakes.
Comment thread packages/opencode/src/cli/cmd/tui/routes/session/sidebar.tsx
<text fg={theme.text}>
<b>Subagents</b>
<Show when={!expanded.subagents}>
<span style={{ fg: theme.textMuted }}> ({subagents().length})</span>

Copilot AI Mar 2, 2026

Copy link

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

When the Subagents section is collapsed (more than 2 subagents), the header shows only the total count, e.g., (4). The MCP section (an established pattern in this file) shows a more informative summary in its collapsed header, e.g., (3 active, 1 error). Since the primary reason for this feature is to track working vs. idle subagent status, the collapsed header would be more useful if it showed a count breakdown, such as (3 working, 1 idle), consistent with the MCP section pattern.

Suggested change
<span style={{ fg: theme.textMuted }}> ({subagents().length})</span>
{(() => {
const counts = subagents().reduce(
(acc, id) => {
const status = sync.session.status(id)
if (status === "idle") {
acc.idle += 1
} else {
acc.working += 1
}
return acc
},
{ working: 0, idle: 0 },
)
return (
<span style={{ fg: theme.textMuted }}>
{" "}
({counts.working} working, {counts.idle} idle)
</span>
)
})()}

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Copilot uses AI. Check for mistakes.
@opencode-agent
opencode-agent Bot force-pushed the dev branch from 2f2ed11 to 9f201d6 Compare April 16, 2026 21:55
@mateuszkwiatkowski mateuszkwiatkowski mentioned this pull request Apr 28, 2026
feat: add /uptime slash command #24161
Closed
3 of 6 tasks
@github-actions

github-actions Bot commented May 2, 2026

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot closed this May 2, 2026
@github-actions github-actions Bot mentioned this pull request May 2, 2026
📊 AI CLI 工具社区动态日报 2026-05-02 zx0828/big_model_radar#5
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@tttturtle-russ
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.