fix(coding-agent): use configured model scope cycle hint closes #4508

This commit is contained in:
Mario Zechner
2026-05-17 00:03:03 +02:00
parent c5831df689
commit 43d3cdd48a
3 changed files with 16 additions and 11 deletions

View File

@@ -572,6 +572,21 @@ export class InteractiveMode {
const [fdPath] = await Promise.all([ensureTool("fd"), ensureTool("rg")]);
this.fdPath = fdPath;
if (this.session.scopedModels.length > 0 && (this.options.verbose || !this.settingsManager.getQuietStartup())) {
const modelList = this.session.scopedModels
.map((sm) => {
const thinkingStr = sm.thinkingLevel ? `:${sm.thinkingLevel}` : "";
return `${sm.model.id}${thinkingStr}`;
})
.join(", ");
const cycleKeys = this.keybindings.getKeys("app.model.cycleForward");
const cycleHint =
cycleKeys.length > 0
? theme.fg("muted", ` (${formatKeyText(cycleKeys.join("/"), { capitalize: true })} to cycle)`)
: "";
console.log(theme.fg("dim", `Model scope: ${modelList}${cycleHint}`));
}
// Add header container as first child
this.ui.addChild(this.headerContainer);