You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Do not include the active model in the system prompt
#18266
This is unnecessary and causes avoidable prompt-cache invalidation.
The selected model is a request-routing setting, not project context or workstation context. Switching models is a normal operation, but it currently changes the system prompt. Since the model line appears before other stable prompt content, a model switch can prevent reuse of cached prompt prefixes for repository rules, workspace context, and similar stable content.
The simplest fix is to remove Model: ... from the system prompt.
No replacement runtime block is needed unless there is a concrete product requirement for the agent to know its own model name.
After this change:
model switching only changes the outbound request configuration;
the stable system prompt remains unchanged;
no prompt/model synchronization is needed after model switches or compaction;
compaction cannot leave a stale or incorrect model name in the prompt.
Suggested regression tests:
The system prompt does not contain Model:.
Switching models changes the model used for the next request.
Compaction does not change the active model used for subsequent normal requests.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
The active model is currently included in the system prompt as part of the workstation context:
This is unnecessary and causes avoidable prompt-cache invalidation.
The selected model is a request-routing setting, not project context or workstation context. Switching models is a normal operation, but it currently changes the system prompt. Since the model line appears before other stable prompt content, a model switch can prevent reuse of cached prompt prefixes for repository rules, workspace context, and similar stable content.
The simplest fix is to remove Model: ... from the system prompt.
No replacement runtime block is needed unless there is a concrete product requirement for the agent to know its own model name.
After this change:
Suggested regression tests:
All reactions