Skip to content

fix(terminal): a desktop has no keyboard button under the terminal - #372

Merged
devswha merged 5 commits into
mainfrom
fix/desktop-key-bar
Oct 3, 2026
Merged

devswha merged 5 commits into
mainfrom
fix/desktop-key-bar

Conversation

@devswha

@devswha devswha commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Change

0.3.44 (#334) made the input line and direct typing a choice on a desktop too. To offer it there, the key bar was shown on a fine-pointer desktop at 769 px and wider with every key hidden except the keyboard button that switches the two. The result is a full-width bar under the terminal that holds one button, on a device that has a hardware keyboard and never showed that bar before.

docs/terminal-input.md and the changelog are updated.

Validation

  • scripts/terminal-input-regression.ts (the desktop step of ui-regression.ts, 1280 wide) switched modes by clicking the removed button. It now switches through the Settings select, and first asserts that .key-bar is not visible and that no "Type straight into the terminal" button exists.
  • bun scripts/ui-regression.ts: 45 PASS, exit 0, including terminal input: desktop mode, … and touch terminal input line sends whole lines, Enter alone, and yields to direct typing (the touch button). An earlier run of the same code stopped at Timed out: suggestion painted, a step before the terminal input ones that waits on a shell printf in a test pane; the rerun passed unchanged.
  • Owned test session at 1280 wide: with Automatic, the terminal fills the pane down to the bottom edge with no bar; with Input line, the input line and its Send button show and no key bar does. No image is attached here.
  • bun run typecheck, bun run build: pass. bun run test:unit: 1059 pass, 3 skip.

🤖 Generated with Claude Code

devswha and others added 2 commits October 3, 2026 14:54
0.3.44 (#334) showed the key bar on a fine-pointer desktop with only the
keyboard button that switches between the input line and direct typing,
so a whole bar under the terminal held one button.

The bar is hidden on a desktop again, and the button is rendered only on
a touch screen, as before. A desktop chooses the input mode in Settings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

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: 9f922ac7-ac2d-4a3e-96bd-0aa0e2a54237
📥 Commits

Reviewing files that changed from the base of the PR and between 76b99ce and e8e0bf0.

📒 Files selected for processing (1)
  • CHANGELOG.md
🚧 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; 5 remain after this review.


📝 Summary

Summary by CodeRabbit

  • Input Controls
    • On desktop, select the terminal input mode in Settings; the keyboard button is no longer shown in the terminal key bar.
    • On touch screens, the keyboard button remains available in the key bar to switch input modes.
  • Documentation
    • Updated terminal input guidance to reflect how input modes are selected on desktop and touch screens.

Walkthrough

Desktop terminals no longer show a one-button key bar. The key-bar direct-typing toggle remains available on touch screens. Desktop users select input modes in Settings, and the regression checks use Settings for desktop mode changes.

Changes

Terminal Input Mode

Layer / File(s) Summary
Pointer-specific key-bar behavior
src/components/PaneTerminal.tsx, src/components/KeyBar.css, CHANGELOG.md, docs/terminal-input.md
PaneTerminal passes direct-typing controls only for coarse-pointer devices. The fine-pointer desktop display rule is removed. The changelog and documentation describe the desktop and touch-screen behavior.
Settings-based regression checks
scripts/terminal-input-regression.ts
The regression checks use Settings to change desktop input modes and remount line mode. They check that the desktop has no key bar or direct-input button and retain checks for draft persistence, composition recovery, pending sends, and delayed readiness.

Priority: ⬇️ Low

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

Change: Bug fix

Merge Risk: ⚪ Minimal · up to e8e0b

The desktop and touch control descriptions match the inspected behavior; no issue identified here prevents merging.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. (1 skipped: 1 … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: removing the desktop keyboard button beneath the terminal.
Description check ✅ Passed The description includes the Change and Validation sections and provides detailed behavior and test results. It notes that no screenshot or recording is attached, although the template requests one fo…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

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

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · 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 8ed0bad into main Oct 3, 2026
4 checks passed
@devswha
devswha deleted the fix/desktop-key-bar branch October 3, 2026 06:07
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.

1 participant