xonecas.io
64875
Mc

mini-coder / commit a944088

refactor: show model as provider/model in status bar, remove separate provider field

Remove the split provider display from the status bar. The model ID
already carries the provider prefix (e.g. zen/claude-sonnet-4-6,
anthropic/claude-opus-4-6), so display it as-is for consistency.

- Remove provider field from StatusBarData interface
- Stop splitting model string in input-loop
- Remove conditional provider segment rendering in status-bar
- Update tests to use full provider/model format

xonecas2026-03-19 a9440885c0265c3e4f5d080d96f6c89853f95675 parent 3a5466b

5 files changed

TODO.md+0−1
@@ -1,6 +1,5 @@
11 # TODO
22
3-- Prompt UI is missing provider information in some cases. Zen models omit the `zen/` prefix while OAuth models correctly show `anthropic`. Refactor so current provider is always clear.
43 - Banner doesn't show reasoning or verbose status. Users can't tell if these are active without toggling.
54 - Status bar drops the cwd path when the line gets long (observed with long OAuth model names on second turn). May be a terminal width truncation issue.
65 - Model DB sync doesn't include newer Zen models. `gpt-5.4-nano`, `gpt-5.4-mini`, `gpt-5.4` are available on Zen but absent from `provider_models`. The sync may be running against a stale endpoint or filtering too aggressively.
src/agent/reporter.ts+0−1
@@ -11,7 +11,6 @@ export interface TurnResult {
1111
1212 export interface StatusBarData {
1313 model: string;
14- provider: string;
1514 cwd: string;
1615 gitBranch: string | null;
1716 sessionId: string;
src/cli/input-loop.ts+1−4
@@ -44,13 +44,10 @@ export async function runInputLoop(opts: InputLoopOptions): Promise<void> {
4444 while (true) {
4545 const branch = gitBranchCache.get();
4646 const status = runner.getStatusInfo();
47- const provider = status.model.split("/")[0] ?? "";
48- const modelShort = status.model.split("/").slice(1).join("/");
4947 const cwdDisplay = tildePath(cwd);
5048 const contextWindow = getContextWindow(status.model);
5149 const statusData = {
52- model: modelShort,
53- provider,
50+ model: status.model,
5451 cwd: cwdDisplay,
5552 gitBranch: branch,
5653 sessionId: status.sessionId,
src/cli/status-bar.test.ts+6−10
@@ -19,8 +19,7 @@ describe("renderStatusBar", () => {
1919
2020 await withTerminalColumns(200, () => {
2121 renderStatusBar({
22- model: "gpt-5.3-codex",
23- provider: "zen",
22+ model: "zen/gpt-5.3-codex",
2423 cwd: "~/src/mini-coder",
2524 gitBranch: "main",
2625 sessionId: "1234567890",
@@ -35,7 +34,7 @@ describe("renderStatusBar", () => {
3534 });
3635
3736 const line = stripAnsi(stdout).trim();
38- expect(line).toContain("gpt-5.3-codex");
37+ expect(line).toContain("zen/gpt-5.3-codex");
3938 expect(line).toContain("#12345678");
4039 expect(line).toContain("@general");
4140 expect(line).toContain("tok 1.2k/3.4k");
@@ -51,8 +50,7 @@ describe("renderStatusBar", () => {
5150
5251 await withTerminalColumns(42, () => {
5352 renderStatusBar({
54- model: "gpt-5.3-codex",
55- provider: "openai",
53+ model: "zen/gpt-5.3-codex",
5654 cwd: "~/src/mini-coder",
5755 gitBranch: "feature/super-long-branch-name",
5856 sessionId: "abcdef123456",
@@ -67,7 +65,7 @@ describe("renderStatusBar", () => {
6765 });
6866
6967 const line = stripAnsi(stdout).trim();
70- expect(line).toContain("gpt-5.3-codex");
68+ expect(line).toContain("zen/gpt-5.3-codex");
7169 expect(line).toContain("#abcdef12");
7270 expect(line).not.toContain("~/src/");
7371 expect(line).not.toContain("ctx 72.0k");
@@ -80,8 +78,7 @@ describe("renderStatusBar", () => {
8078
8179 await withTerminalColumns(120, () => {
8280 renderStatusBar({
83- model: "llama3.2",
84- provider: "ollama",
81+ model: "ollama/llama3.2",
8582 cwd: "~/src/mini-coder",
8683 gitBranch: null,
8784 sessionId: "001122334455",
@@ -102,8 +99,7 @@ describe("renderStatusBar", () => {
10299
103100 test("buildStatusBarSignature is stable and reflects changed fields", () => {
104101 const base = {
105- model: "gpt-5.3-codex",
106- provider: "zen",
102+ model: "zen/gpt-5.3-codex",
107103 cwd: "~/src/mini-coder",
108104 gitBranch: "main",
109105 sessionId: "1234567890",
src/cli/status-bar.ts+0−4
@@ -44,7 +44,6 @@ function renderStatusLine(segments: string[]): string {
4444 export function buildStatusBarSignature(opts: StatusBarData): string {
4545 return JSON.stringify({
4646 model: opts.model,
47- provider: opts.provider,
4847 cwd: opts.cwd,
4948 gitBranch: opts.gitBranch,
5049 sessionId: opts.sessionId,
@@ -88,9 +87,6 @@ export function renderStatusBar(opts: StatusBarData): void {
8887 const required = [c.cyan(opts.model), c.dim(`#${opts.sessionId}`)];
8988 const optional: string[] = [];
9089
91- if (opts.provider && opts.provider !== "zen") {
92- optional.push(c.dim(opts.provider));
93- }
9490 if (opts.activeAgent) optional.push(c.green(`@${opts.activeAgent}`));
9591 if (opts.thinkingEffort) optional.push(c.dim(`✦ ${opts.thinkingEffort}`));
9692 if (opts.gitBranch) optional.push(c.dim(`⎇ ${opts.gitBranch}`));