Skip to content

Commit 9334ae0

Browse files
committed
Align task and observe labels with explorer rename
The explore→explorer director rename updated fixtures to agentId explorer but left five assertions expecting the old Explore/explore display strings. Title-cased agent ids and observe labels correctly paint Explorer/explorer; update the expectations to match.
1 parent 0a28ebf commit 9334ae0

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/tui/chrome-state.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ describe("formatChromeZones", () => {
117117
expect(out.task).toBeNull();
118118
expect(out.agents).toEqual([
119119
{
120-
label: "observe: explore — map callers of openListOverlay",
120+
label: "observe: explorer — map callers of openListOverlay",
121121
tail: "",
122122
stalled: false,
123123
kind: "lane",
@@ -580,7 +580,7 @@ describe("chromeFromSession", () => {
580580
});
581581
expect(formatChromeZones(state, NOW).agents).toEqual([
582582
{
583-
label: "observe: explore — watch",
583+
label: "observe: explorer — watch",
584584
tail: "",
585585
stalled: false,
586586
kind: "lane",

src/tui/diff-rows.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ describe("diff transcript rows", () => {
130130

131131
// Structural: summary set, not raw args; detail expands with real newlines.
132132
expect(row.summary).toBe("map callers of leaveObserve");
133-
expect(row.verb).toBe("Explore");
133+
expect(row.verb).toBe("Explorer");
134134
expect(row.text).toBe(args); // clipboard still has raw; paint must not use it
135135
expect(row.summary).not.toContain("success_criteria");
136136
expect(row.summary).not.toContain("maxTurns");

src/tui/tool-formatter.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ describe("describeToolCall for task tool", () => {
316316
const prompt = "Find every call site of leaveObserve and report them.";
317317
const args = JSON.stringify({ agent: "explorer", prompt, intent: "explore" });
318318
const result = describeToolCall("task", args);
319-
expect(result.display).toBe("Explore");
319+
expect(result.display).toBe("Explorer");
320320
// ARG_VALUE_MAX = 48 with ellipsis when truncated
321321
expect(result.summary.length).toBeLessThanOrEqual(48);
322322
expect(result.full).toBe(prompt);
@@ -419,7 +419,7 @@ describe("task activity transcript lines", () => {
419419

420420
test("mergedToolCollapsedPreview curates task call+result into one line", () => {
421421
const line = mergedToolCollapsedPreview("task", JSON.stringify(fullBrief), reportBody, false);
422-
expect(line).toBe("Explore map callers of leaveObserve — Found 3 call sites in app.tsx");
422+
expect(line).toBe("Explorer map callers of leaveObserve — Found 3 call sites in app.tsx");
423423
expect(line).not.toContain("prompt");
424424
expect(line).not.toContain("maxTurns");
425425
expect(line).not.toContain("## Summary");

0 commit comments

Comments
 (0)