Skip to content

App-server TUI does not fully reflect external live turns on shared thread #15320

Closed

Description

@qoli

Summary

In 0.116.0, codex_tui_app_server does not fully reflect external live turn state when multiple app-server TUI clients are attached to the same thread.id.

The shared conversation context is correct, but an active TUI can fail to visibly refresh user/assistant live progress for turns that originated from another client.

Repro

  1. Start one app-server-backed TUI client.
  2. Start a second app-server-backed TUI client and resume the same thread.id.
  3. Send a turn from client A.
  4. Observe client B while the turn is running and after completion.

Expected

Client B should visibly reflect the same live turn state:

  • external user turn appears immediately
  • assistant streaming / plan updates appear live
  • completion state is reflected without waiting for a local interaction

Actual

Conversation continuity is shared, but the active TUI may not fully redraw or refresh external turn state in real time.
In practice, the missing content can still show up later in the thread context, but the live UI state is incomplete.

Notes

I validated this locally on 0.116.0 and prepared a minimal reference patch in my fork:

That patch only touches codex-rs/tui_app_server and focuses on live refresh behavior for external turns.

I understand code contributions are invitation-only now, so I’m filing this as a bug report with analysis and a reference patch rather than assuming an unsolicited PR would be accepted.

Activity

  1. added
    bug
    app
    TUI
    on Mar 20, 2026
  2. github-actions commented on Mar 20, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. removed
    app
    on Mar 20, 2026
  4. etraut-openai commented on Mar 20, 2026

    @etraut-openai
    Contributor

    This use case (connecting to a thread from multiple clients concurrently) isn't currently supported, but it's something we'd like to get to eventually.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions