Skip to content

Conversation

@joshka-oai
Copy link
Collaborator

Summary

  • restore the previous status header when a non-error event arrives after a stream retry
  • add a regression test to ensure the reconnect banner clears once streaming resumes

Testing

  • cargo fmt -- --config imports_granularity=Item
  • cargo clippy --fix --all-features --tests --allow-dirty -p codex-tui
  • NO_COLOR=0 cargo test -p codex-tui (fails: vt100 color assertion tests expect colored cells but the environment returns Default colors even with NO_COLOR cleared and TERM/COLORTERM set)

Codex Task

@joshka-oai joshka-oai force-pushed the codex/fix-sticky-reconnecting-banner branch 3 times, most recently from 9a592af to 894e252 Compare December 6, 2025 04:09
Copy link
Collaborator

@dylan-hurd-oai dylan-hurd-oai left a comment

Choose a reason for hiding this comment

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

LGTM once we remove the CI changes

let is_stream_error = matches!(&msg, EventMsg::StreamError(_));
if !is_stream_error {
self.restore_retry_status_header_if_present();
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

are there other error cases where we might want to do this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There's a possibility that some other path in App::handle_event() might need this. I don't know that code well, so I'd defer that unless we need it for now.

@joshka-oai joshka-oai force-pushed the codex/fix-sticky-reconnecting-banner branch from 446f66c to 894e252 Compare December 8, 2025 18:50
@joshka-oai joshka-oai force-pushed the codex/fix-sticky-reconnecting-banner branch from 894e252 to cf3e860 Compare December 8, 2025 18:52
@joshka-oai joshka-oai merged commit a9f566a into main Dec 8, 2025
26 checks passed
@joshka-oai joshka-oai deleted the codex/fix-sticky-reconnecting-banner branch December 8, 2025 22:33
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants