Revert "Map Shift+Enter to raw newline in Ghostty" - #2407
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
📝 WalkthroughWalkthroughThis PR removes tmux-state reporting infrastructure across shell integration scripts and terminal controller components, while eliminating Shift+Enter remapping support driven by user configuration. Multiple helper functions, state tracking, and conditional control flows are deleted to simplify the codebase. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Greptile SummaryThis PR is a clean revert of #2355, which had added a feature to map Shift+Enter to a raw newline ( What was removed:
The revert is thorough: a post-revert grep confirms zero dangling references to any removed symbol across both Confidence Score: 5/5This PR is safe to merge — it is a complete, consistent revert with no dangling references or behavioral regressions. Every removed symbol was verified to have no remaining callers; all inlined replacements are semantically identical to the methods they replace; shell integration guard restructuring restores the documented pre-#2355 flow; all associated tests are removed in lockstep. No P0 or P1 findings were identified. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["Shift+Enter keyDown\n(GhosttyNSView)"] --> B["Check bindingFlags\n(inlined closure)"]
B -->|"is binding"| C["Handle Ghostty keybinding"]
B -->|"not binding"| D["Normal keyDown path"]
subgraph REMOVED ["Removed by this revert"]
R1["shouldRemapShiftEnterForTmux()"]
R2["panelIsInsideTmux() / panelTmuxStates"]
R3["TerminalSSHSessionDetector.isInsideTmux()"]
R4["Shell: _cmux_report_tmux_state"]
R5["Socket: report_tmux_state handler"]
R6["userConfigDefinesShiftEnterBinding"]
end
D -.->|"was intercepted"| R1
R1 -.-> R2
R1 -.-> R3
R4 -.->|"socket message"| R5
R5 -.-> R2
R6 -.-> R1
Reviews (1): Last reviewed commit: "Revert "Map Shift+Enter to raw newline i..." | Re-trigger Greptile |
…e-2352-shift-enter-tmux Revert "Map Shift+Enter to raw newline in Ghostty"
Reverts #2355
Summary by cubic
Reverts the Shift+Enter-to-newline behavior and removes tmux state detection/telemetry. Shift+Enter now follows normal Ghostty keybinding resolution with no tmux-specific remapping.
report_tmux_state, workspace/tab state, tmux detection helpers, and related tests.CMUX_PANEL_IDbefore sending shell activity; resolve and report TTY once.Written for commit a5120be. Summary will update on new commits.
Summary by CodeRabbit
Release Notes
Refactor
Tests