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(tui): enable transcript jumps in subagent sessions by ricky9408 · Pull Request #60817 · anomalyco/opencode

Conversation

@ricky9408

@ricky9408 ricky9408 commented Oct 31, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #60727

Type of change

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

What does this PR do?

Child sessions keep the subagent composer open, which puts the keymap in composer mode. The first/last transcript bindings were only available in base mode. Register the existing unfocused layer in composer mode so Home, End and Ctrl+G can reach the transcript.

Base-session bindings, editor focus and picker priority stay as they are. PageUp/PageDown already work on current dev.

How did you verify your code works?

  • bun run check: 35/35 packages passed.
  • From packages/tui: bun run typecheck:tsc; bun test --timeout 30000 --only-failures: 1,597 passed, 2 skipped.
  • Child-session Home/End regression repeated 10 times: 10 passed. Removing the source change makes Home fail.
  • Additional local renderer checks covered paging, modal isolation, picker/parent navigation and a 40-paragraph assistant reply. The submitted test stays focused on Home/End.

The results above are local. Main GitHub CI has not run (action_required). UI verification used the headless OpenTUI renderer with local fixtures; a live-terminal smoke test was not run.

Visual

<svg xmlns="http://www.w3.org/2000/svg" width="240" height="72" viewBox="0 0 240 72" fill="none" stroke="currentColor">
  <style>
    .key{animation:pulse 2.4s ease-in-out infinite}
    .arrow{animation:up 2.4s ease-in-out infinite}
    @keyframes pulse{0%,100%{opacity:.4}50%{opacity:1}}
    @keyframes up{0%,100%{transform:translateY(3px);opacity:.4}50%{transform:translateY(0);opacity:1}}
    @media(prefers-reduced-motion:reduce){.key,.arrow{animation:none}}
  </style>
  <rect x="12" y="8" width="144" height="56" rx="5" opacity=".35"/>
  <path d="M24 21h86M24 29h108M24 37h70" opacity=".6"/>
  <path d="M13 47h142" opacity=".25"/>
  <text x="24" y="58" fill="currentColor" stroke="none" font-family="monospace" font-size="9">Subagents</text>
  <g class="arrow" opacity=".8"><path d="M143 39V19m-4 4 4-4 4 4"/></g>
  <g class="key" opacity=".8">
    <rect x="176" y="23" width="52" height="26" rx="4"/>
    <text x="202" y="40" text-anchor="middle" fill="currentColor" stroke="none" font-family="monospace" font-size="11">Home</text>
  </g>
</svg>

Screenshots / recordings

Local OpenTUI renderer captures at 120×30, after PageUp then Home. Capture details.

Before:
Home leaves the transcript in place

After:
Home reaches the first message

Checklist

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

AI-assisted with Codex.

Sorry, something went wrong.

Uh oh!

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

All reactions
@ricky9408
fix(tui): enable transcript jumps in subagent sessions
b97cea7
@ricky9408
ricky9408 marked this pull request as ready for review October 31, 2026 06:15
opencodejr[bot]
opencodejr Bot reviewed Oct 31, 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.

The fix works. I ran the issue's reproduction from source with a simulated model. On the base, Home and Ctrl+G do nothing in a subagent session. With this change, both jump to the first message, End returns to the bottom, and the subagent picker keys still work. The new test fails on the base and passes here. The nearby session, keymap and composer tests pass, and tsc -b for packages/tui is clean.

No composer key (up/down/enter/ctrl+d/left/right/escape/ctrl+c, k/j) overlaps the Home, End or Ctrl+G bindings. The layer stays off while an editor is focused, so moving it into composer mode looks safe.

Public API: unchanged.

The only thing I'd change is the test. At 106 lines it covers paging, the session dialog, sibling and parent navigation, and two widths, which is a lot for a one-line fix that needs no test. Please drop it, or cut it down to opening a child session and checking that Home and End move the transcript.

Before

After

Sorry, something went wrong.

Uh oh!

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

All reactions
@ricky9408
test(tui): focus subagent navigation regression
5d609d1
opencodejr[bot]
opencodejr Bot reviewed Oct 31, 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.

The test is now a single focused Home/End check in a child session, which addresses my earlier point. It passes consistently here and fails on the base without the fix. tsc -b is clean. The source change is the same as before, and the earlier from-source reproduction still applies: Home and Ctrl+G now move the transcript in a subagent session.

Public API: unchanged.

No further concerns.

Before

After

Sorry, something went wrong.

Uh oh!

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

All reactions
GiuseppeBellamacina
GiuseppeBellamacina reviewed Oct 31, 2026
View reviewed changes

@GiuseppeBellamacina GiuseppeBellamacina left a comment

Copy link
Copy Markdown

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.

Registering the unfocused layer in composer mode is the minimal fix: Home, End and Ctrl+G now reach the transcript in subagent sessions, and the layer stays disabled while an editor is focused. The test is focused on Home/End in a child session. Nothing to change.

Sorry, something went wrong.

Uh oh!

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

All reactions
@Tarquinen
Merge branch 'dev' into subagent-transcript
4bde5ae
@Tarquinen
Tarquinen enabled auto-merge (squash) November 6, 2026 03:04
@Tarquinen
Tarquinen merged commit 2658ec0 into anomalyco:dev Nov 6, 2026
13 checks passed

Uh oh!

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

opencodejr[bot]
opencodejr Bot reviewed Nov 6, 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.

The new commit is only a merge of dev, and the fix still holds on top of it. I re-ran the issue's reproduction from source with a simulated model. On current dev, Home and Ctrl+G do nothing in a subagent session. With this branch, both jump to the first message and End returns to the bottom. The test passes here and fails on dev without the fix. tsc -b is clean.

Public API: unchanged.

No further concerns.

Before

After

Sorry, something went wrong.

Uh oh!

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

All reactions
@amrkmn amrkmn mentioned this pull request Nov 7, 2026
opencode 2.2.6 amrkmn/homebrew-tap#1217
Closed
1 task
This was referenced Nov 7, 2026
feat: opencode release v2.2.6 sprisa/opencode-server#84
Merged
Tool release: OpenCode 2 v2.2.6 (was v2.2.5) agent-sh/agnix#1808
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
+1 more reviewer
@GiuseppeBellamacina GiuseppeBellamacina GiuseppeBellamacina left review comments
Reviewers whose approvals may not affect merge requirements

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.

[Bug] Opencode2 inside subagent pos1 and end shortcut dont work

Uh oh!

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

3 participants

@ricky9408 @GiuseppeBellamacina @Tarquinen
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.