Skip to content

feat(terminal): cursor style, held key-bar arrows and pinch-to-zoom - #758

Merged
devswha merged 7 commits into
mainfrom
feat/terminal-contrib-0.4.6
Oct 11, 2026
Merged

devswha merged 7 commits into
mainfrom
feat/terminal-contrib-0.4.6

Conversation

@devswha

@devswha devswha commented Oct 11, 2026 •

Copy link
Copy Markdown
Owner

Change

Three maintainer-approved contributions to the terminal, carried onto current main in one PR because all three edit src/components/PaneTerminal.tsx and each conflicted with main. Each keeps its contributor as commit author (cherry-picked in order #731, #719, #713; the contributors' commit messages carry the full design notes).

  • Cursor shape and blink in Settings → Terminal (feat(terminal): add cursor shape and blink to Settings #731 by @bluzername): Block / Bar / Underline and a Blinking cursor switch, saved per device through sanitizeSettings, applied live through term.options (no remount). A program's own DECSCUSR can still change it. Strings in ko/ja/zh.
  • A held key-bar arrow repeats like a held key (feat(terminal): repeat a held key-bar arrow like a held key #719 by @zerodice0): first repeat after 400 ms, then every 50 ms until release; only the four arrows (including saved arrow combinations and held modifiers) repeat; a tap still sends one key; a sideways swipe scrolls the row and sends nothing; a long press opens no callout. PaneTerminal passes a holdScope so a pane or lens change cancels a hold. New scripts/key-bar-hold-repeat-regression.ts is in the browser lane.
  • Two-finger pinch changes the terminal font size on a phone (feat(terminal): change the font size with a two-finger pinch on a phone #713 by @zerodice0): the font follows the fingers live (10–22 px) with a size badge, the shared pty gets one resize when a finger lifts, touchcancel restores the starting size. New scripts/terminal-pinch-regression.ts runs in scripts/ui-regression.ts.

Conflict resolution only: the cursor props go on the PaneTerminal that PaneCanvas now renders, holdScope and the pinch badge sit on main's current KeyBar line and terminal host, and scripts/ci-browser.test.ts expects 26 browser scripts. The review findings on the three PRs were CodeRabbit's missing changelog links; the changelog entries are added in a separate commit with both PR links and credit.

Closes #620, Closes #718, Closes #707

Supersedes #731, #719, #713

Screenshots (390 px phone, demo fixtures)

Settings Terminal page with Cursor shape and Blinking cursor Terminal drawing an underline cursor after the setting changed
Pinch in progress with the 21px size badge Phone key bar with arrows used by the hold-repeat regression

Verification

Before the change (branch scripts and tests against main's src/):

  • bun scripts/key-bar-hold-repeat-regression.ts: FAIL, "a held Left repeats before release (got 1)".
  • bun scripts/terminal-pinch-regression.ts (isolated test session): FAIL, "pinch start shows the size badge".
  • HERDR_TEST_MODE=unit bun test ./src/lib/settings.test.ts: FAIL on the cursor defaults test.

On this branch:

  • bun run generate:types --check, bun run typecheck, bun run build: PASS.
  • bun run test:unit: 2472 pass, 8 skip, 0 fail (includes settings, keyRepeat, pinchFontSize, i18n, motion and ci-browser tests).
  • bun scripts/key-bar-hold-repeat-regression.ts: PASS (tap, hold 10–11 repeats, short hold, swipe, Esc, sticky Ctrl, contextmenu).
  • bun scripts/terminal-pinch-regression.ts (isolated test session) and CHECK_MAX_RUNS=8 bun run check run --build bun scripts/terminal-pinch-regression.ts: PASS.
  • bun scripts/settings-pages-demo-regression.ts (every Settings page at 390 and 320 px) and bun scripts/key-bar-customization-demo-regression.ts: PASS.
  • Phone (390×844, touch) on demo fixtures: a saved Bar/no-blink draws xterm-cursor-bar without blink; choosing Underline and Blinking in Settings changes the live cursor to xterm-cursor-underline xterm-cursor-blink; a pinch shows the 21px badge and saves 21 on release.

After merging main (5792d71, #755; the only conflict was CHANGELOG, both sections kept): bun run typecheck PASS; settings, keyRepeat, pinchFontSize, i18n, motion, paneLens and ci-browser tests 94 pass, 0 fail; CHECK_MAX_RUNS=8 bun run check run --build bun scripts/terminal-pinch-regression.ts, bun scripts/key-bar-hold-repeat-regression.ts and bun scripts/settings-pages-demo-regression.ts PASS.

bluzername and others added 5 commits October 11, 2026 10:06
Issue #620 asks for a saved cursor preference: today the terminal
always start at a blinking block, with no setting for it. The issue's
own comment give the exact xterm.js hook (term.options.cursorStyle,
term.options.cursorBlink, applied live like theme and font already
are, no remount needed).

This add the smaller first version the issue itself allow: shape
(block, bar, underline) and blink (on, off), saved per device. A
program in the pane that sets its own cursor style with DECSCUSR can
still change it after, same as today, since whether herdr's attach
stream pass that sequence through is not established yet (the
issue's own "not checked yet" note) and the "allow applications to
override" toggle depend on it.

sanitizeSettings gets new red-then-green tests for the two fields,
and the three translation files get the new strings (checked by the
existing i18n test, which fail on a missing or stale entry).
## Change

On a phone, holding an arrow on the touch key bar sent one key and then nothing. It now repeats like a held hardware key.

- `src/lib/keyRepeat.ts` holds the timing as a pure state machine with an injectable clock: no key on press, the first repeat after `KEY_REPEAT_DELAY_MS` (400 ms), then one every `KEY_REPEAT_INTERVAL_MS` (50 ms) until release. Only `ArrowUp`/`ArrowDown`/`ArrowLeft`/`ArrowRight` key items repeat, including saved combinations such as Ctrl+←; Esc, Tab, Enter, ^C, catalog keys and the modifier and mode buttons do not.
- A tap is unchanged: it still sends one key through `onKey` → `pressKey` on `click`. After a hold has repeated, the click that follows the release is swallowed, so a hold never ends with an extra key. Every repeat goes through the same `onKey` path (latest callback through a ref), so held Ctrl/Alt/Shift and saved combinations apply to each repeated key.
- `Key` in `KeyBar.tsx` tracks the primary pointer with pointer capture. The repeat stops on `pointerup`, `pointercancel`, `lostpointercapture`, the button becoming disabled, the document becoming hidden, the window losing focus, and unmount. KeyBar is not remounted when the pane changes, so `PaneTerminal` passes a `holdScope` (`paneStorageId:view`) and a change of pane or lens cancels the hold.
- A sideways swipe that starts on an arrow keeps scrolling the row and sends nothing: moving more than 10 px before the repeat starts cancels the pending hold, as does the `pointercancel` the browser sends when it takes over the pan.
- Keys prevent `contextmenu`, and `.key` sets `-webkit-touch-callout: none`, so a long press opens no callout or menu.
- No setting, WS frame or server change: the existing `keys` frame and the server's queue merge carry the repeat. No new UI strings.
- Docs: `docs/terminal-input.md` (key bar), `docs/development.md` and `scripts/ci-browser.sh` list the new browser regression. CHANGELOG: `Unreleased → Added`.

On the issue's open questions this PR takes the narrow side: only the four arrows repeat, and 400 ms / 50 ms are fixed constants.

Closes #718

## Validation

- `bun run generate:types --check`, `bun run typecheck`, `bun run build`: pass.
- `bun run test:unit`: 2237 pass, 0 fail, run with `TMPDIR=/tmp`. New `src/lib/keyRepeat.test.ts` covers tap/hold boundaries at the delay and interval, release and cancel, the one-shot click suppression, the movement slop and which items repeat. `scripts/ci-browser.test.ts` now expects 22 browser scripts.
- New `scripts/key-bar-hold-repeat-regression.ts` (demo transport, 393×852 touch context, CDP touch events): all 7 checks pass, in three runs before rebasing onto current `main` and one after:
  - a tap on ← sends exactly one key;
  - holding ← sends 10–11 keys, none before the delay, and nothing after release;
  - a hold shorter than the delay sends one key;
  - a horizontal swipe from ← scrolls the overflowing row and sends no key;
  - a held Esc does not repeat (Chrome sends no `click` after a long touch, so it sends no key, as before this change);
  - with Ctrl held, every repeated key is Ctrl+←;
  - a held arrow prevents the `contextmenu` default.
- `scripts/sticky-modifiers-regression.ts`, `scripts/key-bar-customization-demo-regression.ts`, `scripts/terminal-arrows-clicks-regression.ts`: pass.
- Tried by hand on a phone over Tailscale Serve against a server built from this branch: tap, hold, release and sideways scroll behaved as described.
- Not run: the full `bun run test:integration` and `bun run test:ui`.
## Change

On a phone, a two-finger pinch on the terminal now changes the per-device `terminalFontSize` setting, the same one as the Settings stepper.

- **While pinching:** the size is `round(startSize × distance / startDistance)`, clamped to 10–22 px. Each time that whole-pixel size changes, this device's xterm font changes and the grid refits locally. A small badge at the top of the terminal shows the size (`17px`). No resize frame goes to the server during the gesture.
- **Release:** when the first finger lifts, the handler sends one forced resize for the new grid (only when the terminal is in use, and never for observe, fixed-grid or Chat), then saves the setting. The existing font effect sees the font already applied and sends nothing more. So a gesture adds one shared-pty resize, not one per size step.
- **Cancel:** `touchcancel` restores the starting size, saves nothing and sends no resize. A released, watched pane gets one `watch` update at the end instead of one per step.
- **Touch handling:** the host listeners move to the capture phase, so xterm's own viewport touch scrolling does not take the first finger of a pinch. A second finger ends a one-finger scroll. The finger left after a partial release does not scroll until a new touch. `gesturestart`/`gesturechange` are prevented on the host for iOS Safari. One-finger scroll and adopted-grid pan are unchanged.
- No new setting or strings.

**Differs from the proposal in #707.** The issue proposed a CSS `transform: scale()` preview with the font applied only on release, and listed "change the font live and defer the pty resize" as an alternative. On a real phone the scale preview enlarged and cropped the terminal content, which was hard to read. A badge alone showed the number but not the result. This PR uses the live local font instead. The cost is local reflows during the gesture (up to 7 for 13→20). Meanwhile this device's grid can disagree with the pty until the release resize. The shared pty still sees one resize per gesture, which was the point of the proposal.

Pinching on the KeyBar, input line or header still zooms the page, as on `main`. Those regions keep their current `touch-action`.

Closes #707

## Validation

- `HERDR_TEST_MODE=unit bun test ./src/lib/pinchFontSize.test.ts`: 5 pass (ratios, rounding, 10/22 clamps, coincident or non-finite distances).
- `bun run generate:types --check`, `bun run typecheck`, `bun run build`: pass.
- `TMPDIR=/tmp bun run test:unit`: 2223 pass, 49 skip, 0 fail.
- New `scripts/terminal-pinch-regression.ts`, also wired into `scripts/ui-regression.ts`, drives real two-finger CDP touches in 390×844 mobile emulation on an isolated test session. It checks the following:
  - 13→20 and 20→13: the font changes before release, the terminal is not transformed, 0 resize frames and 0 wheel events during the gesture, then exactly 1 resize frame on release. The frame's rows match the rendered grid (37×31 for 20 px). `visualViewport.scale` stays 1.
  - Clamps at 22 and 10 px, one resize each.
  - `touchcancel` restores 13 px and the grid, saves nothing, sends no resize.
  - One-finger scroll → second finger → partial release: the remaining finger sends 0 wheels, and a new one-finger drag scrolls again.
  - The size survives a reload.
- `bun scripts/ui-regression.ts`: passes, including the new check.
- `bun scripts/windows-lens-browser-qa.ts` (one-finger history scroll, adopted-grid pan on a phone): all 7 checks pass with an `en-US` browser locale, run on the first revision of this branch, before the live font change. The one-finger paths have not changed since. On a `ko-KR` Chrome it times out at the English `Terminal` selector, as clean `main` does.
- Manual: tested on a physical Android phone (Chrome) and an iPhone (Safari) over Tailscale.
- Not checked: a Windows mirror pane, long-press text selection during or after a pinch.
@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 22b454db-e25e-48c3-b2e6-e1dbe2643f01

📥 Commits

Reviewing files that changed from the base of the PR and between 7a51985 and ed8c6cd.


⛔ Files ignored due to path filters (4)
  • docs/screenshots/terminal-contrib/key-bar-arrows-phone.png is excluded by !**/*.png, !docs/screenshots/**
  • docs/screenshots/terminal-contrib/pinch-badge-phone.png is excluded by !**/*.png, !docs/screenshots/**
  • docs/screenshots/terminal-contrib/settings-cursor-phone.png is excluded by !**/*.png, !docs/screenshots/**
  • docs/screenshots/terminal-contrib/underline-cursor-phone.png is excluded by !**/*.png, !docs/screenshots/**

📒 Files selected for processing (4)
  • CHANGELOG.md
  • scripts/ci-browser.sh
  • scripts/ci-browser.test.ts
  • src/components/PaneTerminal.tsx

🚧 Files skipped from review as they are similar to previous changes (1)
  • CHANGELOG.md

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



📝 Summary

Summary by CodeRabbit

  • New Features
    • Choose a block, bar, or underline terminal cursor and turn cursor blinking on or off. Programs may override the selected cursor style.
    • Pinch to adjust terminal font size on phones from 10–22 px. The size preview updates as you pinch, and the terminal resizes when you lift your fingers.
    • Hold arrow keys on the touch key bar to repeat them, including with modifiers. Taps still send once, and sideways swipes scroll the key bar.

Walkthrough

The changes add held-arrow repetition to the touch key bar, two-finger pinch sizing for terminal fonts, and settings for terminal cursor shape and blinking. Unit and browser regression checks cover the new behaviors.

Changes

Key-Bar Arrow Repeat

Layer / File(s) Summary
Repeat timing and controller
src/lib/keyRepeat.ts, src/lib/keyRepeat.test.ts
Arrow keys repeat after a 400 ms hold delay and then every 50 ms. Tests cover timing, movement, release, cancellation, and click suppression.
Key-bar hold handling
src/components/KeyBar.tsx, src/components/KeyBar.css
Repeatable keys use pointer holds with cancellation and click handling. Non-repeatable keys retain direct click behavior. The key bar disables WebKit touch callouts.
Browser regression and CI wiring
scripts/key-bar-hold-repeat-regression.ts, scripts/ci-browser.sh, scripts/ci-browser.test.ts, docs/development.md, docs/terminal-input.md, CHANGELOG.md
The browser regression checks taps, holds, swipes, modifiers, and context-menu handling. Browser CI runs the check, and documentation describes the behavior.

Terminal Pinch Font Sizing

Layer / File(s) Summary
Pinch size calculation
src/lib/pinchFontSize.ts, src/lib/pinchFontSize.test.ts
The helper scales, rounds, and clamps font sizes. Unit tests cover scaling and invalid inputs.
Pinch preview and commit
src/components/PaneTerminal.tsx, src/components/PaneTerminal.css, DESIGN.md, CHANGELOG.md
PaneTerminal previews font size during a pinch, saves the completed size, and resizes the grid once when applicable. Cancellation restores the starting size, and an overlay displays the current size.
Pinch regression coverage
scripts/terminal-pinch-regression.ts, scripts/ui-regression.ts
Browser checks cover pinch scaling, size limits, cancellation, partial release, scrolling, resize behavior, and persistence after reload.

Terminal Cursor Preferences

Layer / File(s) Summary
Cursor settings and validation
src/lib/settings.ts, src/lib/settings.test.ts
Settings add block, bar, and underline cursor styles and a blinking preference. Defaults and invalid saved values are tested.
Settings controls and terminal wiring
src/components/SettingsDialog.tsx, src/App.tsx, src/components/PaneTerminal.tsx, src/lib/i18n.ja.ts, src/lib/i18n.ko.ts, src/lib/i18n.zh.ts, CHANGELOG.md
The Terminal settings page exposes cursor shape and blinking controls. The app passes the values to PaneTerminal, which applies them to xterm. Japanese, Korean, and Chinese translations are added.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature · Severity of issue fixed: Medium

Suggested reviewers: haeminway1, jiunshinn


Merge Risk | ⚪ Minimal · up to ed8c6

Merge Risk: ⚪ Minimal · up to ed8c6

This change adds held-arrow repeat, pinch-to-zoom font sizing, and cursor settings. No concrete merge-blocking problem was identified from the supplied evidence.

Security Architecture Review

Security architecture risk: 🔵 Low · up to ed8c6

No expanded access was identified in the reviewed paths. However, a concurrent layout resize can publish unfinished pinch geometry to the shared terminal, while cancellation restores only the local view. This creates a bounded rollback risk for other users of that pane.

Retained concerns

  • Low · reliability · inferred: Pinch preview is not isolated from other shared-geometry writers. If the terminal host changes size and its resize debounce fires during a pinch, the observer fits and transmits geometry using the preview font. A subsequent touchcancel restores the starting font and local grid but sends no compensating PTY resize, leaving other clients of that pane with the preview-derived shared geometry until another refit occurs.
Security review details

Security Blast Radius

  • inferred — The retained rollback concern affects shared geometry for the attached pane and therefore its other viewers. The inspected gesture path does not introduce a new identity, privilege or machine-selection capability.

Trust Boundaries and Controls

  • observed — Repeated key-bar input inherits the existing connected, interactive and input-ready checks. Server key/input handling retains role, attachment, readiness and held-state enforcement; repetition does not create a direct unguarded input sink.

Resilience and Maintainability Implications

  • inferred — The pinch rollback gap is a failure-containment issue, not an established authorization bypass: independently eligible geometry writers can observe tentative state before cancellation has completed.

Pre-merge checks | Passed 3 | Failed 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Linked Issues check Warning #620 is addressed with saved and sanitized cursor shape/blink settings, translations, live term.options updates, tests, and continued application overrides. #718 is addressed with arrow-only repeat … For #707, use a CSS transform for the pinch preview and defer terminal font, grid, and PTY changes until the gesture commits, or update the active issue requirement to accept live font and grid changes during the gesture.
Docstring Coverage Warning Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 15 functions across 18 files. (1 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Description check Passed The description explains the three changes, resulting behavior, linked issues, screenshots, and detailed validation results. It uses a "Verification" heading instead of the template's "Validation" hea…
Title check Passed The title is concise and accurately summarizes the three primary changes: terminal cursor settings, held key-bar arrow repetition, and terminal pinch-to-zoom.
Out of Scope Changes check Passed The changed source implements #620, #718, or #707. The settings fields, translations, terminal gesture code, key-repeat helper, styles, documentation, changelog entries, and regression tests support t…

Full details: Linked Issues check

Explanation

#620 is addressed with saved and sanitized cursor shape/blink settings, translations, live term.options updates, tests, and continued application overrides. #718 is addressed with arrow-only repeat timing, tap preservation, cancellation paths, modifier support, swipe handling, long-press suppression, and regression tests. #707 remains non-compliant with its direct preview requirement: the implementation changes the terminal font and grid live during the pinch, while the issue requires a CSS-transform-only preview with no font, grid, or PTY change until commit. The implementation does satisfy the 10–22 px range, saved setting, one release resize, and touchcancel restoration requirements.


Full details: Docstring Coverage

Explanation

Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 15 functions across 18 files. (1 skipped: 1 unsupported.)


  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 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

Comment @coderabbitai help to get the list of available commands.

@devswha
devswha merged commit 549abb4 into main Oct 11, 2026
5 checks passed
@devswha
devswha deleted the feat/terminal-contrib-0.4.6 branch October 11, 2026 03:13
devswha added a commit that referenced this pull request Oct 13, 2026
…aging keys repeat (#965)

## Problem

Two small touch-input papercuts in the terminal lens:

1. **Autocorrect in the input line.** On iPhone the terminal input line
(input-line mode) leaves iOS Auto-Correction and spell-check on. Typing
a command with a non-dictionary token (a flag, path or branch name) and
pressing Space can let the keyboard swap it for a dictionary word, and
Send sends the rewritten command. Every other command or text field
(composer, queue editor, key-bar settings, secret input, Portal panel)
already turns autocorrect off.
2. **Held key-bar Backspace fires once.** Holding the key-bar ⌫ deletes
one character; clearing a line takes one tap per character. The
hold-to-repeat added in #758 covers only the four arrows. Same for Del,
Home, End, PgUp and PgDn.

## Cause

1. `src/components/TerminalInput.tsx`: the textarea sets only
`autoCapitalize="off"`; no `autoCorrect="off"`, no `spellCheck={false}`.
Its doc comment even listed autocorrect as a rewrite the line exists to
absorb.
2. `src/lib/keyRepeat.ts`: `isRepeatableKeyBarItem` returns true only
for `ArrowUp/Down/Left/Right`. `KeyBar` wires press-and-hold only for
repeatable items, so every other key is a plain click. (#718 left
"should Backspace, Delete, PageUp, PageDown repeat too?" as an open
question; #758 shipped arrows only.)

## Fix

Two commits:

1. `TerminalInput` textarea gets `autoCorrect="off"` and
`spellCheck={false}`, matching `Composer.tsx` and the queue editor. The
doc comment now says autocorrect stays off and why.
2. `isRepeatableKeyBarItem` uses a set: the arrows plus Backspace,
Delete, Home, End, PageUp, PageDown, with or without saved modifiers
(like the arrows). Escape, Tab, BackTab, Enter, Insert, ^C/^D/^Z,
F-keys, printable keys and modifier buttons stay single-shot: a repeated
Tab or ^C would act many times on what one press meant. Delay and rate
are unchanged (400 ms / 50 ms).

## Tests

- `src/lib/keyRepeat.test.ts`: the positive case now covers the six
editing/paging keys (bare and with saved modifiers); the negative case
keeps Escape, Tab, BackTab, Enter, Insert, ctrl-c, ctrl-d, F1, printable
keys and modifiers. Fails without the fix (1 fail), passes with it.
- `scripts/key-bar-hold-repeat-regression.ts`: new step 5b holds the
key-bar ⌫ and checks it repeats (the DEL byte on the input path, 11
sends in the run) and sends nothing after release. Without the fix the
step fails ("got 1"). `bun run check run bun
scripts/key-bar-hold-repeat-regression.ts`: all steps pass.
- `scripts/terminal-input-regression.ts` (run inside
`ui-regression.ts`): asserts the input line has `autocorrect="off"`,
`spellcheck="false"`, `autocapitalize="off"`. `bun run check run --build
bun scripts/ui-regression.ts`: pass (exit 0), including "PASS terminal
input".
- `bun run typecheck`: pass. `bun run test:unit`: 3069 pass, 0 fail
(including the #949 conventions guard; the new post-release wait carries
a `// fixed wait:` note).
- Native iOS autocorrect was not reproduced on a device; the fix relies
on WebKit honouring `autocorrect="off"`, as the composer already does.

## Notes

- Refs #862 (held backspace does not repeat). This fixes the key-bar ⌫
case. The issue does not say whether the reporter held the key-bar key
or the system keyboard's backspace; the soft keyboard's own repeat goes
through xterm's textarea, not this code, so I did not use "Closes".
- `DEFAULT_KEY_BAR_ITEMS` is unchanged: ⌫ is still opt-in through
key-bar customization. Neither #862 nor the docs ask for it in the
default bar, and changing defaults touches settings migration and
telemetry customization flags.
- #935 (opt-in composer autocorrect, open) touches `Composer.tsx` /
`PaneTerminal.tsx` / `compose.ts` only; no file overlap. Its body says
"the terminal input line keeps its current attributes"; after this PR
those attributes are off, matching the composer default. I suggest its
toggle should not cover the terminal line, since shell tokens are the
worst case for autocorrect.
- #943 and #946 (open) touch `KeyBar.tsx` but not the repeat logic or
`keyRepeat.ts`; this PR does not edit `KeyBar.tsx`.
- Changelog: one fragment,
`changelog.d/terminal-input-autocorrect-and-key-repeat.md` (two Fixed
entries).

## Merge-session review

Fixed (3468ec3):
- `docs/terminal-input.md` still said only the arrows repeat when held.
It now lists the arrows, ⌫, Del, Home, End, PgUp and PgDn (saved
combinations of these repeat too) and says Esc, Tab, Enter, ^C, F-keys
and modifier buttons send once.
- `docs/development.md` now describes
`key-bar-hold-repeat-regression.ts` as covering holds of arrows and
editing keys.

Docs only, so there is no new regression test;
`src/lib/keyRepeat.test.ts` and browser step 5b already pin the
behavior. `bun run check fast` passes. The changelog fragment was
already accurate.

Deferred: none.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants