Skip to content

Fix TUI paste burst newline handling - #4975

Closed
alexx-ftw wants to merge 6 commits into
openai:mainfrom
alexx-ftw:fix/paste-burst-newline
Closed

alexx-ftw wants to merge 6 commits into
openai:mainfrom
alexx-ftw:fix/paste-burst-newline

Conversation

@alexx-ftw

@alexx-ftw alexx-ftw commented Oct 8, 2025 •

Copy link
Copy Markdown

What changed

Why

How to try locally

  1. cd codex-rs
  2. just fmt
  3. just fix -p codex-tui
  4. cargo test -p codex-tui -- burst_paste_large

Flags added or removed

  • none

Safety limits

  • unchanged

Fallback behavior

  • existing paste-burst placeholder expansion still applies

Tests run: just fmt, just fix -p codex-tui, cargo test -p codex-tui

@github-actions

github-actions Bot commented Oct 8, 2025 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@alexx-ftw

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Oct 8, 2025
@alexx-ftw

Copy link
Copy Markdown
Author

Heads-up: there's a regression in the backtrack flow. Double-tapping Esc in the main chat (composer empty) now crashes with a stack overflow because we re-enter open_backtrack_preview without advancing the selection when the transcript has no user messages left. Logged as issue #4977 for follow-up.

@alexx-ftw

Copy link
Copy Markdown
Author

Updated PR with a fix for #4977: Esc backtrack now reacts only to key presses (ignoring repeats) and closes the overlay when no user messages remain, so double Esc no longer overflows the stack.

@alexx-ftw
alexx-ftw requested a review from kmk142789 October 16, 2025 11:42
@etraut-openai

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Bravo.

ℹ️ 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".

@etraut-openai
etraut-openai requested review from aibrahim-oai and removed request for kmk142789 November 7, 2025 22:56
@aibrahim-oai

Copy link
Copy Markdown
Contributor

What is this PR trying to solve? A user pressing enter while handling paste burst?

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Note

To use Codex here, create an environment for this repo.

@etraut-openai

Copy link
Copy Markdown
Contributor

@aibrahim-oai, I think it's intended to address this bug.

@etraut-openai

Copy link
Copy Markdown
Contributor

I tried to repro the problem described in the bug report, and I'm not seeing the described behavior. I posted the steps I attempted. Waiting for a response.

@etraut-openai etraut-openai added the needs-response Additional information is requested label Nov 10, 2025
youta7 added a commit to youta7/ta-codex that referenced this pull request Nov 10, 2025
@etraut-openai

Copy link
Copy Markdown
Contributor

@alexx-ftw, based on your discovery that this was due to a configuration issue with Factory CLI, am I correct to conclude that this PR is not an appropriate fix?

@alexx-ftw

Copy link
Copy Markdown
Author

@alexx-ftw, based on your discovery that this was due to a configuration issue with Factory CLI, am I correct to conclude that this PR is not an appropriate fix?

Honestly, I stopped using Codex CLI many weeks ago and don't know the current state of the burst pasting handling. My PR also solved newlines prematurely sending the not-yet-finished prompt.

You might want to use some Codex's magic here. This PR might be needed, or might have been fixed elsewhere

@etraut-openai

Copy link
Copy Markdown
Contributor

OK, thanks. I think we'll close this PR then.

swordfish444 pushed a commit to swordfish444/codex that referenced this pull request Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-response Additional information is requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants