Skip to content

fix(tui): keep status indicator visible during streaming when message… - #4864

Closed
vinayb21-work wants to merge 3 commits into
openai:mainfrom
vinayb21-work:task/4446
Closed

vinayb21-work wants to merge 3 commits into
openai:mainfrom
vinayb21-work:task/4446

Conversation

@vinayb21-work

Copy link
Copy Markdown

Fixes #4446 - Messages sent while final output text is streamed are now properly
queued and visible in the status indicator instead of appearing to be injected
into the streamed text.

  • Don't hide status indicator during streaming if queued messages exist
  • Ensure queued messages remain visible throughout the streaming process
  • Add test to verify queued message behavior during streaming

The issue occurred because the status indicator (which displays queued messages)
was being hidden during content commits, making queued messages appear as if
they were injected into the streamed text rather than properly queued.

@github-actions

github-actions Bot commented Oct 7, 2025 •

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


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


1 out of 2 committers have signed the CLA.
✅ (etraut-openai)[https://github.com/etraut-openai]
❌ @vinayb21-medable
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@vinayb21-work

Copy link
Copy Markdown
Author

recheck

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

💡 Codex Review

https://github.com/openai/codex/blob/8e971952b91b0e3e3e358e9478f37239e30f58ee/codex-rs/tui/src/chatwidget.rs#L635-L639
P1 Badge Status indicator still hidden when message queued mid-stream

The new guard in on_commit_tick only skips hiding the status indicator when queued messages already exist. During a typical turn the first commit tick runs while the queue is still empty, so hide_status_indicator() is called and the widget is removed. If the user queues a message after that point, nothing recreates the indicator—refresh_queued_user_messages() just updates an indicator that no longer exists—so the queued message list remains invisible despite the intent of the fix. To actually keep queued messages visible, the code needs to restore or avoid hiding the indicator when the queue transitions from empty to non-empty, not only skip later hides.

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

@vinayb21-work

Copy link
Copy Markdown
Author

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

@vinayb21-work

Copy link
Copy Markdown
Author

recheck

@vinayb21-work

Copy link
Copy Markdown
Author

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

1 similar comment
@vinayb21-work

Copy link
Copy Markdown
Author

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

@vinayb21-work

Copy link
Copy Markdown
Author

recheck

@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. Nice work!

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

Copy link
Copy Markdown
Contributor

Thanks for your contribution, and apologies for the slow response. We've received a lot of PRs, and it's taking us a while to get through the backlog.

It looks like this PR has become stale. The tests aren't passing, and there are merge conflicts. If you're still interested in pursuing this PR, could you address these? Thanks!

@etraut-openai etraut-openai added the needs-response Additional information is requested label Nov 5, 2025
@etraut-openai

Copy link
Copy Markdown
Contributor

Closing because the contributor didn't respond.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Messages sent while final output text is streamed are injected in UI then ignored, rather than properly queued

3 participants