Commit 4188c89d2514
Changed files (3)
dots
pi
agent
extensions
dots/pi/agent/extensions/prompt-editor.ts
@@ -448,14 +448,17 @@ const runtime: ModeRuntime = {
let requestEditorRender: (() => void) | undefined;
// Update the mode status in the footer via ctx.ui.setStatus
-// Sets raw mode name — custom-footer handles formatting and color
+// Sets "mode" (name) and "mode-color" (hex color from modes.json)
function updateModeStatus(ctx: ExtensionContext): void {
if (!ctx.hasUI) return;
const mode = runtime.currentMode;
if (mode && mode !== "default") {
+ const spec = runtime.data.modes[mode];
ctx.ui.setStatus("mode", mode);
+ ctx.ui.setStatus("mode-color", spec?.color || undefined);
} else {
ctx.ui.setStatus("mode", undefined);
+ ctx.ui.setStatus("mode-color", undefined);
}
}
dots/pi/agent/modes.json
@@ -10,12 +10,14 @@
"fast": {
"provider": "google-vertex-claude",
"modelId": "claude-sonnet-4-5@20250929",
- "thinkingLevel": "off"
+ "thinkingLevel": "off",
+ "color": "#2e8b57"
},
"code-work": {
"provider": "google-vertex-claude",
"modelId": "claude-opus-4-6",
- "thinkingLevel": "low"
+ "thinkingLevel": "low",
+ "color": "#b45309"
}
}
}