Repository navigation
Conversation
82355e9 to
c7faf07
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe terminal shortcut policy separates ASCII and Latin composition checks. It sends supported composed Latin letters as text during macOS Option compose mode. It excludes Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to The change preserves hotkey behavior for excluded symbols and non-Latin glyphs while passing composed Latin text through as intended. 🚥 Pre-merge checks | ✅ 6 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (6 passed)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: e6c25912-e613-4baa-9974-0aad1f927aff
📥 Commits
Reviewing files that changed from the base of the PR and between cf20e08 and 82355e9d6ecaf663c39e37e7a3c3e7b64eba6f0c.
📒 Files selected for processing (2)
src/renderer/src/components/terminal-pane/terminal-option-shortcut-policy.test.tssrc/renderer/src/components/terminal-pane/terminal-option-shortcut-policy.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Compose-mode Option+letter yielding ç/ã/å/ą was kitty-encoded to CSI-u, which TUI parsers drop, making the character untypeable even with 'Option as Alt' off. ASCII compositions already passed through (the stablyai#8031 split); extend the same rule to Latin-script letters. µ/×/÷ and non-Latin glyphs keep their hotkey encoding; Meta mode unchanged. Fixes stablyai#20495.
c7faf07 to
dc6586e
Compare
…wn base Addresses review: explicit LATIN_COMPOSED_RANGES plus LATIN_HOTKEY_GLYPHS (µ × ÷ ƒ) instead of broad property checks, and require a known changed base character.
Drop the Record/array tables: plain integer compares, no per-keystroke allocation. Keep the review refinements: ƒ joins the µ/×/÷ exclusion set and a known changed base is required.
There was a problem hiding this comment.
Important
This change silently flips å (U+00E5) and ƒ (U+0192) from kitty CSI-u hotkeys to raw text, but terminal-shortcut-option-compose.test.ts:139-154 still pins the old behavior — pnpm test fails on that file. The PR body says "targeted vitest files pass," but only the new test file was run.
Reviewed changes
isLayoutComposedLatinLetterinterminal-option-shortcut-policy.ts— passes composed Latin-script letters through as text under active kitty flags, mirroring the existing ASCII rule, with×/÷andµexcluded.- New
terminal-option-shortcut-policy.test.ts— pins passthrough forç ã å ą ñ ü, hotkey encoding forµ ÷ π, plus Meta, no-composition, and kitty-inactive cases.
ℹ️ Nitpicks
- The
codePoint === 0xb5(µ) guard atterminal-option-shortcut-policy.ts:86is unreachable: U+00B5 is below0xc0and outside every covered range. Drop it, or keep it only if the ranges ever widen.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Important
The new 0x192 exclusion clears ƒ, but å (U+00E5) still falls through as text and terminal-shortcut-option-compose.test.ts:150 still expects it as \x1b[97;3u. pnpm test remains red (47/48) at ef1d9b9.
Reviewed changes
isLayoutComposedLatinLettertightened —ƒ(U+0192) added to the exclusion list, and the base-character guard now returnsfalsewhencharacterWithoutOptionis unknown (stricter than the ASCII sibling, which passes through).- New test unchanged — still asserts
åpassthrough andµ/÷/πhotkey encoding.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
⚠️ Outside diff range comments (1)
src/renderer/src/components/terminal-pane/terminal-option-shortcut-policy.ts (1)
51-96: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winRequire a known no-Option character for ASCII pass-through.
getLayoutCharacterForCodereturnsundefinedfor a shifted non-Key*code when no shifted layout character exists.resolveTerminalOptionShortcutActionthen passescharacterWithoutOption === undefinedtoisLayoutComposedAsciiCharacter. The predicate accepts the printable key as composed, and the no-all-keys Kitty branch sends raw text instead of CSI-u encoding the Option hotkey. Require a definedcharacterWithoutOptionthat differs case-insensitively before using the ASCII pass-through branch.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: e37d8a58-3c81-42d4-b7be-c15a6a698805
📒 Files selected for processing (1)
src/renderer/src/components/terminal-pane/terminal-option-shortcut-policy.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- src/renderer/src/components/terminal-pane/terminal-option-shortcut-policy.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.
The non-ASCII hotkey test pinned å to CSI-u; å is everyday typing text like ç, so it passes through now. ƒ/∫ stay encoded.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Delta since the prior Pullfrog review: the å (U+00E5) behavior flip is now reconciled with the existing #8031 hotkey test, and the full policy test set is green.
- Reconciled the #8031 hotkey test —
terminal-shortcut-option-compose.test.ts:150now expectså/KeyAto pass through asdata: 'å'instead of encoding\x1b[97;3u, and the test comment scopes #8031 to non-typing glyphs (ƒ,∫) while Latin letters pass through per #20495. This matches the policy assertion already added interminal-option-shortcut-policy.test.ts:28.
The earlier blocking concern (red pnpm test) is resolved: I ran all four terminal-pane policy test files — terminal-option-shortcut-policy.test.ts, terminal-shortcut-option-compose.test.ts, terminal-shortcut-policy.test.ts, terminal-option-kitty-release.test.ts — and they pass (92 tests). Both prior Pullfrog threads are now addressed and resolved.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

ELI5
Typing ç on a Brazilian keyboard died inside Orca's terminal whenever a TUI turned on kitty protocol. Now the character goes through.
What Changed
terminal-option-shortcut-policy.ts: oneisLayoutComposedCharacterhelper; compose-mode Option+letter yielding a Latin letter sends text instead of CSI-u.terminal-option-shortcut-policy.test.ts: 12 cases.Why
ASCII compositions already pass through as text (#8031 split). Latin letters are the same case: no other way to type them, and TUI parsers drop Alt-combo CSI-u. µ/×/÷ and non-Latin glyphs keep hotkey encoding; Meta mode unchanged.
Linked Issue
Fixes #20495.
Visual Proof
N/A — keystroke routing, no visual change. Diagnosed live via
fish_key_reader:bind alt-cin the broken tab vsbind çin a working one, same window and setting.Testing
oxlintclean,tsc --noEmit(web) exit 0; full CI will cover the restisMac-gated.AI Disclosure
Developed with OMP (muse-spark); directed, reviewed, and tested by the author.
Review
Agent skill upstream boundary
Notes
macOS-only path; no Linux/Windows/SSH/mobile impact. Negligible perf impact (integer range compares per Option-keystroke under kitty).
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (targeted files locally; CI will cover the rest)