Skip to content

Prevent replayed runtime events from forcing active status - #12420

Merged
etraut-openai merged 2 commits into
mainfrom
etraut/bug-11852
Feb 21, 2026
Merged

etraut-openai merged 2 commits into
mainfrom
etraut/bug-11852

Conversation

@etraut-openai

@etraut-openai etraut-openai commented Feb 21, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #11852

Resume replay was applying transient runtime events (TurnStarted, StreamError) as if they were live, which could leave the TUI stuck in a stale Working / Reconnecting... state after resuming an interrupted reconnect.

This change makes replay transcript-oriented for these events by:

  • skipping retry-status restoration for replayed non-stream events
  • ignoring replayed TurnStarted for task-running state
  • ignoring replayed StreamError for reconnect/status UI

Also adds TUI regression tests and snapshot coverage for the interrupted reconnect replay case.

@etraut-openai

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Security review completed. No security issues were found in this pull request.

View security finding report

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 20f07ce919

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

Comment thread codex-rs/tui/src/chatwidget.rs Resolved
@etraut-openai
etraut-openai merged commit a6b2bac into main Feb 21, 2026
53 of 55 checks passed
@etraut-openai
etraut-openai deleted the etraut/bug-11852 branch February 21, 2026 19:55
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resume after reconnecting can show stale working state without model invocation

2 participants