Skip to content

Commit 26e01a0

Browse files
committed
Drop duplicate status-bar layout test and clarify agents sum comment
1 parent 6334d02 commit 26e01a0

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

src/tui/components/status-bar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export function StatusBar({
214214
);
215215
}
216216

217-
/** Sum finished sub-agent wall times into a compact status-bar label. */
217+
/** Sum of finished agent wall times (not multi-agent phase wall clock) as a compact status-bar label. */
218218
export function formatCompletedAgentsLabel(
219219
sessions: ReadonlyArray<{ status: string; startedAt: number; finishedAt?: number }>,
220220
): string | undefined {

tests/unit/tui/status-bar.test.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -241,17 +241,6 @@ test("formatCompletedAgentsLabel sums finished sub-agent durations", async () =>
241241
expect(formatCompletedAgentsLabel([{ status: "running", startedAt: 0 }])).toBeUndefined();
242242
});
243243

244-
test("planStatusBarLayout drops the model segment when cwd cannot absorb the overflow", () => {
245-
const layout = planStatusBarLayout({
246-
columns: 20,
247-
agentsText: "5s",
248-
model: "gpt-5-with-long-name",
249-
cwd: "~/repo",
250-
gitBranch: "main",
251-
});
252-
expect(layout.modelCwdBranchText).toBeUndefined();
253-
});
254-
255244
test("contextMeterTone stays normal below the compaction threshold", () => {
256245
const warningAt = Math.round(COMPACTION_WINDOW_FRACTION * 100);
257246
expect(contextMeterTone(0)).toBe("normal");

0 commit comments

Comments
 (0)