Repository navigation
fix(linux): reveal chat shortcut hints on the primary modifier - #254
Conversation
Chat-jump accelerators store the primary modifier as Command, which matches Ctrl outside macOS, but the held-modifier reveal always watched Meta. On Linux, holding Super showed Ctrl+N hints and holding Ctrl showed nothing. Map reveal modifiers per platform the same way acceleratorFromKeyboardEvent does, and drive the e2e test with the platform's primary modifier. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GAkZRgQzUoKWGpgupF3a4D
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes This review covers platform-specific keyboard-event mapping for chat shortcut hint reveal and its unit/e2e coverage.
- Modifier mapping:
CommandandControlnow map to the corresponding DOM event modifiers per platform, aligning hint reveal with shortcut dispatch. - Shortcut coverage: Unit tests preserve macOS behavior and verify Linux mapping; the e2e test checks reveal, release, and activation using the platform primary modifier.
The focused sidebar suite (45 tests) and type-check:e2e pass. Electron e2e execution remains for macOS CI.
GPT Luna | 𝕏
Hermes Review BotConfidence: 5 Engine: SummaryResolves a platform mismatch on Linux where holding the primary shortcut modifier failed to reveal chat jump badges, and fixes the resulting Linux x64 CI failure. The hold-to-reveal modifier resolver now maps canonical accelerators to keyboard event modifiers by platform, translating Confidence Score: 5/5Full end-to-end trace completed across 📁 Important Files Changed
FindingsNo findings. 📊 Sequence DiagramUnchanged or not applicable for this change. Machine-Readable Findings[]
|
…eature/gemini-3-8-tts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GAkZRgQzUoKWGpgupF3a4D
…lone Keeps both sides: - vision-analysis-tool: the PR's wrapper plus main's normalizeContext in the core. - package.json: test scripts are the union of both sides (test:compaction gains memory-shared; the PR's test:cli wiring is kept). Aligns the standalone CLI with root pi 0.87.1 (#246): - Bump packages/cli @earendil-works/pi-coding-agent 0.84.4 -> 0.87.1 and add @earendil-works/chord 0.87.1, which is no longer hoisted. - btw wraps its context in normalizeContext. The child beforeTool context drops systemPrompt. Re-vendor the advisor runtime. - The build's external check falls back to ESM resolution for import-only subpath exports, and allowlists the optional lazy kerberos import. - Session import accepts storage-v1 `v: 4` and 0.84.4 `version: 4` headers. - Commit the CLI themes regenerated for #199's new presets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GAkZRgQzUoKWGpgupF3a4D
aea8f1d merged main only through #254. This side already contains that plus #199 and #246, so the resulting tree is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GAkZRgQzUoKWGpgupF3a4D
Main landed #246 (pi 0.87.1 transcript-owned system prompts), #242, #199 and #254. - pi-agent-runtime-harness: keep main's installCompactedMessages and emit the meter projection from the installed (system-preserving) messages after preflight and per-turn compaction. - agents-instructions: withAgentsInstructionsEstimate builds a one-message transcript, applies the section-patching refresher and reads getCurrentSystemPrompt; the block stripper also handles a block rendered without a base prompt. - llm-client: register the generation context profile after the initial AGENTS.md apply so the captured prompt and tracker baseline agree. - agents-instructions.test: union of both import sets; meter tests use AgentContext transcripts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GAkZRgQzUoKWGpgupF3a4D
…go midflight ops Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GAkZRgQzUoKWGpgupF3a4D

Summary
⌘1, but after feat(linux): bring desktop support up to date #71 landed the Linux runner showsCtrl+1.Command, whichacceleratorFromKeyboardEventmatches against Ctrl outside macOS. The reveal hook, however, always watched Meta. So on Linux, holding Super showedCtrl+Nhints and holding Ctrl showed nothing.chatShortcutRevealModifierSetsnow maps modifiers per platform: Command→Ctrl and Control→Super outside macOS, with macOS behaviour unchanged. The e2e test now uses the platform's primary modifier and hint label.Tests
renderer/lib/sidebar-chat-shortcuts.test.ts: the existing mapping test is pinned to macOS, and a new test covers the Linux mapping. 7 of 7 pass.tests/e2e/chat-shell-interactions.spec.tsnow usesPRIMARY_MODIFIER. It will be verified by Linux x64 CI on this PR.🤖 Generated with Claude Code