Skip to content

Comments

app-server: improve thread resume rejoin flow#11776

Merged
maxj-oai merged 8 commits intomainfrom
maxj/thread-resume-rejoin-v2
Feb 20, 2026
Merged

app-server: improve thread resume rejoin flow#11776
maxj-oai merged 8 commits intomainfrom
maxj/thread-resume-rejoin-v2

Conversation

@maxj-oai
Copy link
Contributor

@maxj-oai maxj-oai commented Feb 13, 2026

thread/resume response includes latest turn with all items, in band so no events are stale or lost

Testing

  • e2e tested using app-server-test-client using flow described in "Testing Thread Rejoin Behavior" in codex-rs/app-server-test-client/README.md
  • e2e tested in codex desktop by reconnecting to a running turn

@maxj-oai maxj-oai requested a review from owenlin0 February 13, 2026 20:32
Copy link
Contributor

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

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: c3fd0bb884

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

Base automatically changed from maxj/thread-resume-rejoin-fix to main February 13, 2026 23:10
@maxj-oai maxj-oai force-pushed the maxj/thread-resume-rejoin-v2 branch from 76fa1a5 to 1d81500 Compare February 18, 2026 01:47
Copy link
Collaborator

@owenlin0 owenlin0 left a comment

Choose a reason for hiding this comment

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

small comments but hopefully @celia-oai can take a closer look

…join-v2

# Conflicts:
#	codex-rs/app-server/src/bespoke_event_handling.rs
#	codex-rs/app-server/src/codex_message_processor.rs
}
}
let shutdown_when_no_connections = matches!(transport, AppServerTransport::Stdio);
let single_client_mode = matches!(transport, AppServerTransport::Stdio);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if this should be a feature flag, something like single_client_mode = matches!(transport, AppServerTransport::Stdio) or single_client_mode_feature_flag_on

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so; this is already user-controlled via the --listen cli argument - using stdio:// (the default) necessarily implies single-client mode (and shut down when no connections) vs a connection-oriented transport which supports multiple clients and should survive disconnect

…join-v2

# Conflicts:
#	codex-rs/app-server-protocol/src/protocol/thread_history.rs
@maxj-oai maxj-oai enabled auto-merge (squash) February 19, 2026 23:17
@maxj-oai maxj-oai merged commit b06f91c into main Feb 20, 2026
122 of 147 checks passed
@maxj-oai maxj-oai deleted the maxj/thread-resume-rejoin-v2 branch February 20, 2026 05:29
@github-actions github-actions bot locked and limited conversation to collaborators Feb 20, 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.

3 participants