Repository navigation
Fix Pure prompt redraw markers - #12
Conversation
|
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 (1)
📝 WalkthroughWalkthroughUpdates the zsh Ghostty shell integration to use new semantic prompt markers based on OSC 133 sequences, introduces a line-init hook function for marker emission, and enhances multiline prompt handling with updated marker semantics. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
51cad05 to
404a3f1
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 51cad05140
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if [[ $PS1 == *$'\n%{\r%}'* ]]; then | ||
| : |
There was a problem hiding this comment.
Preserve k=s marking for multiline Pure-derived prompts
The new if [[ $PS1 == *$'\n%{\r%}'* ]]; then : branch skips continuation-mark insertion for the entire prompt whenever that hidden-CR pattern appears, so any prompt that uses Pure’s \n%{\r%} trick and has additional newline-separated segments will lose k=s markers on those later lines. In those setups, Ghostty no longer receives explicit continuation boundaries for the extra prompt rows, which can break prompt redraw/click-to-move behavior for multiline prompts.
Useful? React with 👍 / 👎.
…gs-layout Fix settings window layout
Restores the redraw-safe OSC 133 marker split for zsh prompt redraws and keeps Pure-style hidden-CR prompts from duplicating the preprompt row.
Validation happened from the parent cmux worktree with the existing Pure redraw regressions and a live tagged cmux repro.
Summary by cubic
Fixes Pure-style prompt redraws by using redraw-safe OSC 133 markers so zsh prompts don’t duplicate the preprompt line. Adds a
zle-line-initfallback to emit semantic markers if PS1 is regenerated, and keeps click-to-move disabled whencursor-click-to-move=false.OSC 133;Pmarkers and skipk=safter Pure’s hidden CR to prevent duplicate redraw boundaries on multiline prompts.OSC 133;P;k=iandOSC 133;Batzle-line-initwhen PS1 lacks our markers, while still honoringcursor-click-to-move=false.Written for commit 404a3f1. Summary will update on new commits.
Summary by CodeRabbit