Repository navigation
fix(agent): select models by stable identity and reject unsent messages clearly - #6615
Merged
Merged
Conversation
…es clearly Generated-by: Codex
4 of 6 tasks
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.
Summary
ChatGPT inventory refresh introduced in #6580 advances the connection revision while the composer can retain an older model choice. The next send then fails before admission and appears as an unknown delivery that checking status cannot resolve.
Select models by
connectionIdandmodelId, and resolve current enabled settings at admission. Remove revision-only catalog reads from Bot delegation, predictions, scheduling and saved selections; the shared selector also covers Goals, resume, compaction, Workhub and ACP. Existing stored selectors remain readable. Settings mutations retain explicit revision checks, and opening model settings reads the current connection when no editing revision was selected.Return a typed, retryable rejection when model preparation fails before message admission, with localized feedback instead of an unknown-delivery panel. Regenerate the SDK and update ModelList guidance and affected fixtures.
Verification
git diff --checkpassed.rejected / model_unavailablewithout a user-message admission, then successfully sends with the same identity after enabling it.AI use
Tool(s) and scope: Codex diagnosed and implemented the fix, updated the existing behavior tests and ran the checks. Retain the
Generated-by: Codextrailer when squashing.Checklist
Does this PR entail a change in behavior?