[core] Support durable external thread goals#30369
Draft
adamvy-oai wants to merge 2 commits into
Draft
Conversation
c859a0c to
74ac7ec
Compare
This was referenced Jun 28, 2026
This was referenced Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This is the fifth change in a five-PR stack that improves reusable Rust APIs for embedders. It adds durable external thread goal APIs and persistence for hosts that manage goals outside rollout-backed threads.
What
Why
Some embedders need goals to survive independently of rollout-backed thread persistence. The goal-store boundary lets those hosts persist and restore goals without coupling the app server to a particular transport or collaboration product.
Stack
Each PR is based on the preceding branch:
Validation
RUST_MIN_STACK=16777216 cargo test -p codex-app-server external_goal_store_allows_goals_for_rolloutless_threadscargo test -p codex-state restore_thread_goal_preserves_external_snapshot_accounting