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 — fix(app): show the parent session's side panel tabs in subagents by opencode-agent[bot] · Pull Request #65957 · anomalyco/opencode

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

No issue; requested in Slack.

Type of change

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

What does this PR do?

Opening a subagent showed an empty side panel (a fresh New tab), because the side strip was stored under the routed session's key, which is the child's. Now a child session uses its root session's strip, so the tabs, selection and panes match the parent, and changes made in either show up in both.

  • session-layout.ts: tabs reads the strip under the root session of the shell tab (currentTab().sessionId), falling back to the routed ID.
  • host-apis.tsx: plugin panel writes (stateKey) use the same root ID. It comes from the ref's owning tab rather than findSessionTab by ID, because the child ref lingers after you go back to the parent. With an ID lookup it moved back to its own key, and the copy-on-move logic duplicated the parent's strip under the child.

Scroll state and everything else keyed by sessionKey stays per session.

How did you verify your code works?

  • New e2e case in subagent-child-navigation.spec.ts. The parent has two file tabs, then you open the subagent: the strip and selection match, a tab picked in the subagent stays selected back in the parent, and only the parent's strip is stored. It fails on dev (the child shows one New tab) and passes with this change.
  • subagent-child-navigation, side-panels and the app unit tests pass. tabs.spec.ts has the same local failures on dev without this change (7 vs 6), so none are new.
  • bun run typecheck is clean. I couldn't run oxlint in my sandbox (it panics in its allocator), so CI lint is the check there.

Screenshots / recordings

Before vs after screenshots of the subagent view are in the Slack thread.

Checklist

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

Requested by: @Brendonovich (Brendan via Slack)

Sorry, something went wrong.

Uh oh!

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

All reactions
Brendan @opencode-agent
fix(app): show the parent session's side panel tabs in subagents
f299661
@opencode-agent opencode-agent Bot assigned Brendonovich Nov 24, 2026
@github-actions github-actions Bot added the contributor label Nov 24, 2026
opencodejr[bot]
opencodejr Bot reviewed Nov 24, 2026
View reviewed changes

@opencodejr opencodejr Bot 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.

Looks good. I confirmed the bug on the base by running the new e2e case there: the subagent shows a single New tab instead of the parent's strip. With this change the case passes, along with the rest of subagent-child-navigation, side-panels, the app unit tests and tsc -b.

I checked the knock-on effects. The parent's key stays open, so pruning keeps it. Strips previously stored under a child session's key are left orphaned and get pruned. The plugin stateKey and the screen's panelKey now resolve to the same root key, so the plugin layout reads/writes and the rendered strip agree. Panel scroll for plugin tabs is now shared with the parent too, which fits the intent. I have no blocking concerns.

Public API: unchanged. These are internal app layout keys only; the plugin API's shape is the same.

Sorry, something went wrong.

Uh oh!

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

All reactions
Brendan added 2 commits November 24, 2026 03:06
Brendan @opencode-agent
test(app): fix lint spacing in subagent side panel test
7a16a0a
Brendan @opencode-agent
test(app): fix lint spacing in subagent side panel test
29f0e77
@Brendonovich
Brendonovich merged commit 6e2289b into dev Nov 24, 2026
10 checks passed

Uh oh!

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

@Brendonovich
Brendonovich deleted the brendan/subagent-side-panel branch November 24, 2026 03:10
beyondChang pushed a commit to beyondChang/opencode that referenced this pull request Nov 24, 2026
@opencode-agent Brendan @beyondChang
fix(app): show the parent session's side panel tabs in subagents (ano…
ad2c2ae
…malyco#65957)

Co-authored-by: Brendan <[email protected]>
@amrkmn amrkmn mentioned this pull request Nov 26, 2026
opencode 2.4.2 amrkmn/homebrew-tap#1260
Closed
1 task
This was referenced Nov 26, 2026
feat: opencode release v2.4.2 sprisa/opencode-server#97
Merged
Tool release: OpenCode 2 v2.4.2 (was v2.3.2) agent-sh/agnix#1894
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments

Uh oh!

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

Assignees

@Brendonovich Brendonovich

Labels

contributor

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.

1 participant

@Brendonovich
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.