Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

fix(eve): prevent blank lines after model selection in tmux (#4216)

Colton Paddend18970c0f792
diff --git a/.changeset/tui-fast-marker-width.md b/.changeset/tui-fast-marker-width.md
new file mode 100644
index 000000000..6b14398b1
--- /dev/null
+++ b/.changeset/tui-fast-marker-width.md
@@ -0,0 +1,5 @@
+---
+"eve": patch
+---
+
+Fix blank lines accumulating after model selection in the dev TUI under tmux. The speed marker now uses a single-column glyph so rebuild status lines do not wrap or leave a stray character below the status bar.
diff --git a/packages/eve/src/cli/dev/tui/status-line.test.ts b/packages/eve/src/cli/dev/tui/status-line.test.ts
index 2e163a78d..d3f31708a 100644
--- a/packages/eve/src/cli/dev/tui/status-line.test.ts
+++ b/packages/eve/src/cli/dev/tui/status-line.test.ts
@@ -45,7 +45,7 @@ describe("buildStatusLine", () => {
theme: plain,
width: 120,
});
- expect(line).toBe("gpt-5.6-luna · ⚡︎ · Vercel · acme");
+ expect(line).toBe("gpt-5.6-luna · ↯ · Vercel · acme");
});
it("omits raw team IDs while the slug is unavailable", () => {
@@ -72,9 +72,9 @@ describe("buildStatusLine", () => {
});
it.each([
- { reasoning: "high", fastMode: false, theme: plain, expected: "gpt-6-luna · high · ⚡︎" },
- { reasoning: "high", fastMode: true, theme: plain, expected: "gpt-6-luna · high · ⚡︎" },
- { reasoning: undefined, fastMode: undefined, theme: plain, expected: "gpt-6-luna · ⚡︎" },
+ { reasoning: "high", fastMode: false, theme: plain, expected: "gpt-6-luna · high · ↯" },
+ { reasoning: "high", fastMode: true, theme: plain, expected: "gpt-6-luna · high · ↯" },
+ { reasoning: undefined, fastMode: undefined, theme: plain, expected: "gpt-6-luna · ↯" },
{ reasoning: "high", fastMode: undefined, theme: ascii, expected: "gpt-6-luna · high · >>" },
])("renders intrinsic speed with reasoning: $expected (Fast mode: $fastMode)", (input) => {
const line = buildStatusLine({
@@ -105,7 +105,7 @@ describe("buildStatusLine", () => {
width: 120,
});
- expect(line).toBe("grok-4.5 · xhigh · ⚡︎ · ai-gateway(oidc:my-agent)");
+ expect(line).toBe("grok-4.5 · xhigh · ↯ · ai-gateway(oidc:my-agent)");
});
it("keeps authored settings visible while a dynamic model is unresolved", () => {
@@ -117,7 +117,7 @@ describe("buildStatusLine", () => {
theme: plain,
width: 120,
}),
- ).toBe("dynamic model · high · ⚡︎");
+ ).toBe("dynamic model · high · ↯");
});
it("dims the whole model segment, reasoning level and fast marker included", () => {
@@ -129,7 +129,7 @@ describe("buildStatusLine", () => {
width: 120,
})!;
- expect(line).toContain("\x1b[2mgrok-4.5 · xhigh · ⚡︎\x1b[22m");
+ expect(line).toContain("\x1b[2mgrok-4.5 · xhigh · ↯\x1b[22m");
});
it("renders the fast marker with ASCII glyphs when unicode is unavailable", () => {
@@ -152,7 +152,7 @@ describe("buildStatusLine", () => {
theme: plain,
width: 120,
}),
- ).toBe(" ↗ vpoke.playground-vercel.tools gpt-6-luna · high · ⚡︎");
+ ).toBe(" ↗ vpoke.playground-vercel.tools gpt-6-luna · high · ↯");
});
it("dims the model segment", () => {
@@ -191,15 +191,16 @@ describe("buildStatusLine", () => {
const status = (phase: "building" | "complete", width = 120) =>
buildStatusLine({
devBuild: { phase, summary: "agent/instructions.md changed" },
- model: "anthropic/claude-sonnet-5",
+ model: "openai/gpt-6-luna-fast",
theme,
width,
})!;
const building = status("building");
const complete = status("complete");
- expect(stripAnsi(building)).toMatch(/^claude-sonnet-5 +▪ agent\/instructions\.md updating…$/u);
- expect(stripAnsi(complete)).toMatch(/^claude-sonnet-5 +✓ agent\/instructions\.md updated$/u);
+ expect(Array.from(stripAnsi(complete))).toHaveLength(120);
+ expect(stripAnsi(building)).toMatch(/^gpt-6-luna · ↯ +▪ agent\/instructions\.md updating…$/u);
+ expect(stripAnsi(complete)).toMatch(/^gpt-6-luna · ↯ +✓ agent\/instructions\.md updated$/u);
expect(visibleLength(complete)).toBe(120);
expect(complete).not.toContain("\x1b[32m");
expect(stripAnsi(status("complete", 20))).toBe("✓ agent/instructions");
diff --git a/packages/eve/src/cli/dev/tui/terminal-renderer.test.ts b/packages/eve/src/cli/dev/tui/terminal-renderer.test.ts
index a1e963761..9f40acfaa 100644
--- a/packages/eve/src/cli/dev/tui/terminal-renderer.test.ts
+++ b/packages/eve/src/cli/dev/tui/terminal-renderer.test.ts
@@ -3703,13 +3703,13 @@ describe("TerminalRenderer status line", () => {
model: "xai/grok-4.5",
reasoning: "xhigh" as const,
providerOptions: { gateway: { serviceTier: "priority" } },
- expected: "grok-4.5 · xhigh · ⚡︎",
+ expected: "grok-4.5 · xhigh · ↯",
},
{
model: "openai/gpt-6-luna-fast",
reasoning: "high" as const,
providerOptions: {},
- expected: "gpt-6-luna · high · ⚡︎",
+ expected: "gpt-6-luna · high · ↯",
},
])("renders model metadata from the header: $expected", (selection) => {
const { screen, renderer } = makeRenderer(100);
@@ -3751,7 +3751,7 @@ describe("TerminalRenderer status line", () => {
const snapshot = screen.snapshot();
expect(snapshot).toContain("grok-4.5");
expect(snapshot).not.toContain("provider-default");
- expect(snapshot).not.toContain("⚡︎");
+ expect(snapshot).not.toContain("↯");
renderer.shutdown();
});
});
@@ -4057,7 +4057,7 @@ describe("TerminalRenderer conversation", () => {
renderer.renderConversation(
conversationOf([turn("turn_1")], { data: { modelId: "openai/gpt-6-luna-fast" } }),
);
- expect(screen.snapshot()).toContain("dynamic model · gpt-6-luna · ⚡︎");
+ expect(screen.snapshot()).toContain("dynamic model · gpt-6-luna · ↯");
renderer.requestInterrupt();
await prompt.catch(() => {});
});
diff --git a/packages/eve/src/cli/dev/tui/theme.ts b/packages/eve/src/cli/dev/tui/theme.ts
index ac2877f66..ef44c0261 100644
--- a/packages/eve/src/cli/dev/tui/theme.ts
+++ b/packages/eve/src/cli/dev/tui/theme.ts
@@ -115,7 +115,7 @@ export interface ThemeGlyphs {
arrowUp: string;
/** `↓` — output (response) tokens in the token-flow segment. */
arrowDown: string;
- /** `⚡︎` — intrinsic speed or Fast mode (Gateway priority tier) marker. */
+ /** `↯` — intrinsic speed or Fast mode (Gateway priority tier) marker. */
fast: string;
/** `↵` — the Enter affordance inside a selection badge. */
enter: string;
@@ -152,7 +152,8 @@ const UNICODE_GLYPHS: ThemeGlyphs = {
ellipsis: "…",
arrowUp: "↑",
arrowDown: "↓",
- fast: "⚡︎",
+ // Emoji-width glyphs can wrap full-width build status lines in tmux.
+ fast: "↯",
enter: "↵",
validating: "▪",
};