Skip to content

fix(terminal): no accent outline around a focused terminal, as before 0.5.2 (#3550) - #3664

Merged
devswha merged 1 commit into
mainfrom
fix/terminal-focus-outline
Nov 11, 2026
Merged

devswha merged 1 commit into
mainfrom
fix/terminal-focus-outline

Conversation

@devswha

@devswha devswha commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Owner approved removing the ring on 2026-11-11: this takes out a design-pass element (#3431's keyboard-focus ring around the terminal) and brings back the 0.5.1 look.

Fixes #3550

Cause

#3431 (the 0.5.2 design pass) added three rules to src/components/PaneTerminal.css: an accent outline on
.pane-terminal:focus-within, plus inset accent box-shadows on .xterm and .xterm-viewport, as a ring
showing where keys go. Its PR and changelog did not mention it. In Terminal mode it draws a line around the
terminal whenever the terminal has the focus, which is always once you click into it; Safari shows it most
plainly as a blue line under the tab row.

Change

The three rules are removed. Nothing replaces them: the terminal's own cursor shows where keys go, and the
current pane's head already takes the accent and a heavier title (.pane-frame.is-current). No other
keyboard-only indicator was added, since any ring on the xterm textarea also shows for a mouse click (a
textarea matches :focus-visible however it was focused).

The cursor is the focus indicator, as in standalone terminals such as Ghostty and iTerm2, which draw no ring
around a focused terminal; this is also how 0.5.1 looked.

Design gate

bun scripts/design-gate-qa.ts --surfaces terminal-view,split-panes --checks focus,contrast, in the CI runner
image, with main's CSS as the baseline: 4 NEW findings, all focus-contrast on
textarea.xterm-helper-textarea "Terminal input" (1.00:1 < 3:1, the hidden textarea's own outline) on
terminal-view and split-panes at 1440, light and dark; nothing RESOLVED. They are the ring this PR removes
on purpose, approved by the owner as above, so they are expected, not a reason to hold the PR. CI does not run
the design gate.

Screenshots

A shell pane in an owned herdr test workspace, Terminal mode, the terminal focused, light theme.

Desktop 1280 Phone 390
Before (main) before desktop before phone
After after desktop after phone

Validation

  • scripts/terminal-keyboard-demo-regression.ts, in the CI runner image (herdr-ci-runner:local): a new
    assertion that the focused grid draws no outline or inset ring. It fails with main's CSS and the whole script
    passes with this change.
  • The design gate run above.
  • bun run check fast: workflow syntax, generated types and themes, typecheck and build ok; unit tests
    failed only server/herdr-core/terminal-env.test.ts, a flake on main at the time, since fixed by test(terminal-env): read the stand-in core's environment only once it runs #3661.

@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Style
    • Removed the accent outline and shadow from focused terminals. The active pane title continues to indicate where keyboard input is directed.

The terminal no longer displays a focus outline or inset shadows. A regression check verifies their absence, and the changelog notes that the current pane title still indicates where keyboard input goes.

Changes: Terminal focus indicators

Layer / File(s) Summary
Remove terminal focus indicators
src/components/PaneTerminal.css, scripts/terminal-keyboard-demo-regression.ts, changelog.d/terminal-focus-outline.md
The terminal focus outline and xterm inset shadows were removed. The regression script checks that these styles are absent. The changelog describes the change and notes that the pane title indicates where keyboard input goes.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Low

Possibly related PRs

  • devswha/ovis#3431: Added the terminal focus outline and xterm inset shadows that this PR removes.
Merge Risk: Minimal · up to a3de3

This change removes the accent outline around a focused terminal to restore the 0.5.1 appearance. The risk is minimal. The terminal cursor and the current pane title still show where keyboard input goes.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title clearly identifies the main change: removing the accent outline around a focused terminal. It is specific and related to the changeset.
Description check Passed The description includes the problem, resulting behavior, implementation context, screenshots, validation commands, results, and the known flaky test failure. It is mostly complete against the reposit…
Linked Issues check Passed Issue #3550 requires Terminal mode to show no outline around the terminal, as in 0.5.1. The PR removes the .pane-terminal:focus-within outline and the focused .xterm and .xterm-viewport inset sh…
Out of Scope Changes check Passed The changes stay within issue #3550. The CSS removal implements the requested appearance, the regression assertion verifies it, and the changelog documents it. No unrelated product behavior or files a…
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Full details: Description check

Explanation

The description includes the problem, resulting behavior, implementation context, screenshots, validation commands, results, and the known flaky test failure. It is mostly complete against the repository template.

Full details: Linked Issues check

Explanation

Issue #3550 requires Terminal mode to show no outline around the terminal, as in 0.5.1. The PR removes the .pane-terminal:focus-within outline and the focused .xterm and .xterm-viewport inset shadows in src/components/PaneTerminal.css. The regression script asserts that all three computed indicators are none while the terminal is focused. The changelog records the behavior change.

Full details: Out of Scope Changes check

Explanation

The changes stay within issue #3550. The CSS removal implements the requested appearance, the regression assertion verifies it, and the changelog documents it. No unrelated product behavior or files are changed.

Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files. (1 skipped: 1 unsupported.)

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 9c07ec1 and a3de3ff.

Files selected for processing: 3

  • changelog.d/terminal-focus-outline.md
  • scripts/terminal-keyboard-demo-regression.ts
  • src/components/PaneTerminal.css
Files with no reviewable changes: 1

  • src/components/PaneTerminal.css

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 3 remain after this review.

@devswha
devswha merged commit a29f3d6 into main Nov 11, 2026
14 checks passed
@devswha
devswha deleted the fix/terminal-focus-outline branch November 11, 2026 13:00
@devswha

devswha commented Nov 11, 2026

Copy link
Copy Markdown
Owner Author

Merge pass

Merged head a3de3ff042aa as a29f3d6e1070 on GitHub's checks, with no unresolved review threads.

Reviewer Verdict Note
claude CLEAR
codex CLEAR

Two reviewers at this head: Claude (Opus) CLEAR, Codex Terra CLEAR. Fixes #3550.

It removes the three rules #3431 added to src/components/PaneTerminal.css (an accent outline on the focused terminal and two inset rings); after it the file is what it was before #3431, the 0.5.1 look. No other script asserts the ring, and the Line-mode input, find bar and quote button keep their own focus rings.

It removes a design-pass element, so it needed the owner: he approved removing the ring on 2026-11-11 20:40, after being told it was #3431's keyboard-focus ring and that removal restores the 0.5.1 look (confirmed by the lead, LEAD-2200-MERGE). The MEDIUM below is the trade-off he accepted.

Left, sent to the author's lane:

  • MEDIUM (Codex, not run): with a program that hides the cursor, a keyboard user has no visible sign that the terminal holds the focus. This is what the design gate's four new focus-contrast findings on the terminal input say, which the PR names as expected.
  • LOW (Claude, read): the new regression assertion falls back to the terminal host when .xterm or .xterm-viewport is missing, so two of its three checks could pass without reading anything.

Reports: ~/.cache/ovis-tmp/reports/pr-3664-a3de3ff0-*.report.md.

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.

Terminal mode: an outline border is drawn around the terminal pane since 0.5.2

1 participant