Skip to content

fix: show user warning when using default fallback metadata#11690

Merged
sayan-oai merged 5 commits intomainfrom
dev/sayan/warn-on-fallback-metadata
Feb 16, 2026
Merged

fix: show user warning when using default fallback metadata#11690
sayan-oai merged 5 commits intomainfrom
dev/sayan/warn-on-fallback-metadata

Conversation

@sayan-oai
Copy link
Collaborator

What

It's currently unclear when the harness falls back to the default, generic ModelInfo. This happens when the remote_models feature is disabled or the model is truly unknown, and can lead to bad performance and issues in the harness.

Add a user-facing warning when this happens so they are aware when their setup is broken.

Tests

Added tests, tested locally.

Copy link
Collaborator

@pakrym-oai pakrym-oai left a comment

Choose a reason for hiding this comment

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

Looks reasonable but I think can be much simplified by moving the used_fallback to model info and not caching warnings.

#[serde(default, skip_serializing, skip_deserializing)]
#[schemars(skip)]
#[ts(skip)]
pub used_fallback_model_metadata: bool,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

marked as internal only because its not actually part of model metadata; we are just using it to track local resolution state. i could make it public, though i think that's misleading, or we could go back to the wrapper struct

@sayan-oai sayan-oai force-pushed the dev/sayan/warn-on-fallback-metadata branch from 1fdb4fd to 045f383 Compare February 13, 2026 08:49
@sayan-oai sayan-oai enabled auto-merge (squash) February 13, 2026 21:22
@sayan-oai sayan-oai force-pushed the dev/sayan/warn-on-fallback-metadata branch from 610e78a to 26b5acc Compare February 13, 2026 21:26
@sayan-oai sayan-oai force-pushed the dev/sayan/warn-on-fallback-metadata branch from 7a56b7f to 5c9119c Compare February 16, 2026 01:49
@sayan-oai sayan-oai disabled auto-merge February 16, 2026 02:46
@sayan-oai sayan-oai merged commit 060a320 into main Feb 16, 2026
41 of 55 checks passed
@sayan-oai sayan-oai deleted the dev/sayan/warn-on-fallback-metadata branch February 16, 2026 02:46
@github-actions github-actions bot locked and limited conversation to collaborators Feb 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants