Skip to content

Preserve configured thread identity across turns - #603

Merged
GraciousGazelles merged 3 commits into
mainfrom
agent/w12015-configured-identity
Aug 14, 2026
Merged

GraciousGazelles merged 3 commits into
mainfrom
agent/w12015-configured-identity

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary\n\n- Persist settings-derived model/provider/reasoning as the durable thread identity.\n- Keep later request-effective turn metadata from replacing that configured identity.\n- Add a regression assertion for the precedence rule.\n\n## Validation\n\n- cargo fmt --check --manifest-path codex-rs/Cargo.toml --package codex-thread-store\n- git diff --check\n- Rust build/tests are delegated to hosted CI.\n\nBase: origin/main at 15930e4.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a ConfiguredMetadataIdentity struct to track configured metadata settings (model, model provider, and reasoning effort) within ThreadMetadataSync. This ensures that when a thread's configured identity is set, it takes precedence and is not overwritten by subsequent turn context metadata. A test was also added to verify this behavior. The review feedback suggests explicitly marking the pending update as applied in the new test to prevent fragile test state and ensure robustness.

@GraciousGazelles
GraciousGazelles marked this pull request as ready for review August 14, 2026 02:29
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Aug 14, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 14, 2026
@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Aug 14, 2026
Merged via the queue into main with commit 64bb21c Aug 14, 2026
77 checks passed
@GraciousGazelles
GraciousGazelles deleted the agent/w12015-configured-identity branch August 14, 2026 04:05
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.

1 participant