Skip to content

Restore per-turn model fallback removed in #323 (ensureResolvableModel / ModelFallbackSwitched) #351

Description

@elkaix

#299 added a turn-start check in agent-core-v2 profileService.resolveModelContext. When a session's bound model no longer resolves, it switched to the best ready model and emitted ModelFallbackSwitched plus the model_fallback_triggered telemetry event. #323 (upstream reconcile) removed the check, the event, and its consumers.

Effect today: a session bound to a deleted or unconfigured model fails its turn instead of falling back. The global default-model fallback (settleDefaultModel) is being restored separately in the legacy-kosong removal PR.

Source: git show 62ae31bfd, 96d1a0c7a^:packages/agent-core-v2/src/agent/profile/profileService.ts:411-460.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions