Skip to content

fix(agent): select models by stable identity and reject unsent messages clearly - #6615

Merged
M4n5ter merged 1 commit into
rust-previewfrom
fix/stable-model-selection
Nov 4, 2026
Merged

M4n5ter merged 1 commit into
rust-previewfrom
fix/stable-model-selection

Conversation

@M4n5ter

@M4n5ter M4n5ter commented Nov 4, 2026

Copy link
Copy Markdown
Member

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 connectionId and modelId, 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

  • Related Rust suites: 72 passed, covering catalog refresh, disabled-model rejection and recovery, frozen accepted settings, Goal, resume, scheduler, Workhub and settings/configuration.
  • Supplemental Bot delegation/settings tests: 2 passed; optional prediction test: 1 passed.
  • Workbench JavaScript tests: 82 passed.
  • Strict Clippy for affected packages, SDK/acceptance/bundle typechecks, format, generated declaration verification, license checks and git diff --check passed.
  • The regression sends using a model choice captured before directory updates, verifies that a disabled connection returns rejected / model_unavailable without a user-message admission, then successfully sends with the same identity after enabling it.

AI use

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

Tool(s) and scope: Codex diagnosed and implemented the fix, updated the existing behavior tests and ran the checks. Retain the Generated-by: Codex trailer when squashing.

Checklist

  • Tests cover the change and fail without it
  • Format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes — described under Summary above
  • No

@M4n5ter
M4n5ter merged commit 8fd3a36 into rust-preview Nov 4, 2026
1 check passed
@M4n5ter
M4n5ter deleted the fix/stable-model-selection branch November 4, 2026 02:00
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