Skip to content

fix: restore mobile keyboard focus when selecting session tabs - #36

Merged
johoja12 merged 1 commit into
localfrom
fix/35-mobile-tab-keyboard
Oct 31, 2026
Merged

johoja12 merged 1 commit into
localfrom
fix/35-mobile-tab-keyboard

Conversation

@johoja12

Copy link
Copy Markdown
Owner

Opening a mobile session could leave terminal input unfocused when the keyboard was hidden. A quick tab-sheet selection could also focus the terminal and then lose it to the closed sheet's uncancelled 180 ms search-focus timer. Tapping the active tab returned before focusing.

Explicit tab taps now synchronously focus terminal input (including the active tab); app-driven restore stays passive when the keyboard is hidden. Closing the mobile sheet cancels and guards search autofocus, then routes selection through the same stale-focus reset as ordinary tab taps.

Fixes #35.

Validation: six browser DOM/focus tests; 172 related tests; required static checks and isolated build. A full mobile page with two disposable shell tabs preserved focus after ordinary switching and immediate same-tab selection, with no page errors. Browser emulation does not prove native iOS keyboard display; physical-device verification remains necessary. Broader smoke retains two known long-scrollback wheel failures also recorded on the unchanged baseline; no focus/console regression. No production-session input used.

Mobile isolated shell verification
Desktop isolated shell verification

@coderabbitai

coderabbitai Bot commented Oct 31, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: dc35bb03-82b9-4966-b6ec-3cc9f046ed46

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@johoja12
johoja12 merged commit 57e7c5c into local Oct 31, 2026
3 checks passed
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