Skip to content

fix(app): restore terminal toggle in v2 session header - #54189

Closed
steevej-2077 wants to merge 1 commit into
anomalyco:devfrom
steevej-2077:terminal-toggle-v2
Closed

steevej-2077 wants to merge 1 commit into
anomalyco:devfrom
steevej-2077:terminal-toggle-v2

Conversation

@steevej-2077

Copy link
Copy Markdown

Problem

The terminal toggle button only exists in the legacy session header. The v2 header (SessionHeaderV2Actions) was ported with the status and review actions only, and since the legacy layout was sunset the button is no longer reachable anywhere:

  • The panel can still be opened with /terminal or ctrl+, but there is no visible affordance.
  • Reproduced on Desktop and Web with the v2 layout.

Related: #48025, #29829, #36818.

Changes

  • Render the terminal toggle in SessionHeaderV2Actions, reusing the existing toggleTerminal handler (same tooltip + keybind pattern as the review action, aria-controls="terminal-panel").
  • Add the missing terminal icon to the v2 icon set (same path as the legacy icon, 0 0 20 20 viewBox like the other header icons).

Testing

  • bun run --cwd packages/app typecheck ✅
  • bun run --cwd packages/ui typecheck ✅
  • bunx prettier --check on both files ✅
  • bunx oxlint on both files: same 7 pre-existing warnings before and after ✅
  • bun run --cwd packages/app test:unit: 724 pass, 0 fail ✅

The terminal toggle only existed in the legacy session header. The v2
header (SessionHeaderV2Actions) was ported with the status and review
actions only, and the legacy layout is now retired, so the button is no
longer reachable and the panel can only be opened via /terminal or
ctrl+`.

Add the toggle back to the v2 header, reusing the existing
toggleTerminal handler, and add the missing terminal icon to the v2
icon set.
@github-actions github-actions Bot added needs:issue needs:compliance This means the issue will auto-close after 2 hours. labels Oct 9, 2026
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 72 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@opencode-agent opencode-agent Bot closed this Oct 9, 2026
@opencode-agent

opencode-agent Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Thanks for tracking this down and for the clear write-up, @steevej-2077!

The dev branch (v1) only takes critical fixes now: data loss, security problems, or breakage with no workaround. A missing header button is a real usability gap, but the terminal can still be opened with /terminal or the keybind, so this doesn't meet that bar and I'm closing the PR.

If the same affordance is missing in v2 (the v2 branch, @opencode/cli), a PR against v2 would be welcome. v2 is a separate implementation, so the change would probably need to be redone there rather than ported directly.

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:compliance This means the issue will auto-close after 2 hours. needs:issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant