fix(input): preserve shift in kitty alternate reports - #2479
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe Kitty keyboard parser infers omitted Shift modifiers from distinct shifted codepoints. A Prefix-mode regression test verifies shifted reload dispatch and the return to terminal mode. The changelog documents the fix. ChangesKitty Shift handling
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 88b58541-4443-41d5-ba0b-56f84c93a949
⛔ Files ignored due to path filters (1)
tests/fixtures/keyboard_protocol_corpus.tsvis excluded by!**/*.tsv
📒 Files selected for processing (3)
docs/next/CHANGELOG.mdsrc/app/input/navigate.rssrc/input/parse.rs
96468c3 to
e18aac1
Compare
Greptile SummaryThe PR normalizes Kitty keyboard reports that provide a shifted alternate while omitting the Shift modifier, preserving shifted prefix-command dispatch.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| src/input/parse.rs | Normalizes omitted Shift modifiers in Kitty alternate reports and adds focused parser regression coverage. |
| src/app/input/navigate.rs | Adds an end-to-end prefix-dispatch test confirming the WezTerm sequence selects reload rather than the unshifted resize action. |
| tests/fixtures/keyboard_protocol_corpus.tsv | Adds the exact omitted-Shift Kitty sequence to the protocol corpus. |
| docs/next/CHANGELOG.md | Documents the corrected shifted prefix-key behavior in WezTerm Kitty mode. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[WezTerm Kitty VT sequence] --> B[Parse base and shifted codepoints]
B --> C{Distinct valid shifted alternate?}
C -->|Yes| D[Add Shift modifier]
C -->|No| E[Keep reported modifiers]
D --> F[Prefix binding resolution]
E --> F
F --> G[Dispatch selected action]
Reviews (2): Last reviewed commit: "fix(input): preserve shift in kitty alte..." | Re-trigger Greptile
e18aac1 to
879149a
Compare
Summary
Validation
just checkenable_kitty_keyboard = true:prefix+shift+rreturns to terminal mode and subsequent text reaches the paneRefs #2435