Skip to content

fix(app): expand terminal resize gutter hitbox#32169

Merged
Hona merged 3 commits into
anomalyco:devfrom
Hona:fix/app-terminal-resize-gutter
Jun 13, 2026
Merged

fix(app): expand terminal resize gutter hitbox#32169
Hona merged 3 commits into
anomalyco:devfrom
Hona:fix/app-terminal-resize-gutter

Conversation

@Hona

@Hona Hona commented Jun 13, 2026

Copy link
Copy Markdown
Member

Summary

  • position the terminal resize handle across the visible gutter instead of clipping it inside the terminal panel
  • keep terminal content clipping and the panel border on a separate inner layer
  • add a browser regression test covering all eight pixels of the visible resize gutter

Testing

  • PLAYWRIGHT_PORT=3012 bunx playwright test e2e/regression/terminal-resize-hitbox.spec.ts --project=chromium
  • bun typecheck
  • verified in desktop via CDP that every gutter pixel reports row-resize and dragging from the gutter resizes the terminal

@Hona Hona requested a review from Brendonovich as a code owner June 13, 2026 08:56
Copilot AI review requested due to automatic review settings June 13, 2026 08:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the session terminal panel layout so the vertical resize handle’s hitbox spans the full visible gutter (instead of being clipped inside the panel), and adds a Playwright regression test to ensure the gutter pixels consistently hit the resize handle.

Changes:

  • Move the terminal resize handle onto an outer layer so it can extend into the gutter while keeping terminal content clipped on an inner layer.
  • Shift border/clipping responsibilities to the inner terminal layer to preserve visuals while allowing overflow for the handle.
  • Add an e2e regression test asserting all 8 gutter pixels hit the resize handle.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
packages/app/src/pages/session/terminal-panel.tsx Re-layers the terminal panel so the resize handle can extend into the gutter without clipping terminal content.
packages/app/e2e/regression/terminal-resize-hitbox.spec.ts Adds a Playwright regression test verifying the full 8px gutter area targets the resize handle.

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

}}
style={{ height: opened() ? `${pane()}px` : "0px" }}
>
<div class="hidden md:block" onPointerDown={() => size.start()}>
Comment on lines +53 to +62
return {
top: handleBox.top - panelBox.top,
bottom: handleBox.bottom - panelBox.top,
pixels: Array.from({ length: 8 }, (_, offset) => offset - 7.5).map(
(offset) =>
document
.elementFromPoint(handleBox.left + handleBox.width / 2, panelBox.top + offset)
?.getAttribute("data-component") === "resize-handle",
),
}
Comment on lines +72 to +74
function base64Encode(value: string) {
return btoa(value).replaceAll("+", "-").replaceAll("/", "_").replaceAll("=", "")
}
@Hona Hona enabled auto-merge (squash) June 13, 2026 09:13
@Hona Hona merged commit 9ae4a51 into anomalyco:dev Jun 13, 2026
8 checks passed
danzeroum added a commit to danzeroum/opencode that referenced this pull request Jun 13, 2026
… docs (#4)

* fix(app): fade overflowing titlebar tabs (anomalyco#32082)

* chore: generate

* fix(app): expand terminal resize gutter hitbox (anomalyco#32169)

* feat(app): bring v2 visibility settings to web (anomalyco#32174)

* fix(opencode): recover expired MCP sessions (anomalyco#32088)

* chore: update nix node_modules hashes

* feat(opencode): add external browser OAuth for snowflake cortex provider (anomalyco#31700)

Co-authored-by: santiago.gonzalezcarvajcentenera <santiago.gonzalezcarvajcentenera@colaborador.elcorteingles.es>
Co-authored-by: David Fierro <14184197+davidfierro@users.noreply.github.com>
Co-authored-by: Kamesh Sampath <kamesh.sampath@hotmail.com>
Co-authored-by: Cortex Code <noreply@snowflake.com>

* chore: generate

* docs(verify): note subtask side-effects; add frontmatter table + http-recorder guidance

* feat(core): add opt-in EventV2 event log and decision.recorded event

---------

Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: santigc6 <santigc6@users.noreply.github.com>
Co-authored-by: santiago.gonzalezcarvajcentenera <santiago.gonzalezcarvajcentenera@colaborador.elcorteingles.es>
Co-authored-by: David Fierro <14184197+davidfierro@users.noreply.github.com>
Co-authored-by: Kamesh Sampath <kamesh.sampath@hotmail.com>
Co-authored-by: Cortex Code <noreply@snowflake.com>
Co-authored-by: Claude <noreply@anthropic.com>
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.

2 participants