diff --git a/apps/web/src/pages/workspace/dispatch-status.test.ts b/apps/web/src/pages/workspace/dispatch-status.test.ts index 2273b048..e7475983 100644 --- a/apps/web/src/pages/workspace/dispatch-status.test.ts +++ b/apps/web/src/pages/workspace/dispatch-status.test.ts @@ -49,7 +49,7 @@ test("a run held on an approval reads as paused for the person, not as at work", expect(dispatchLive(coder, room("approval"))).toBe(true); }); -test("the hand-off's own step shows the approval wait instead of running", () => { +test("the hand-off's own step does not ask the person while its run waits on an approval", () => { const [unit] = workUnits([{ at: 100, dispatch: coder }], [], []).units; if (unit === undefined) throw new Error("no unit"); const message = workUnitMessage(unit, { state: "approval" }); @@ -57,7 +57,7 @@ test("the hand-off's own step shows the approval wait instead of running", () => expect(step).toMatchObject({ kind: "tool-trace", toolCallId: "call-coder", - status: "approval-requested", + status: "running", }); // Nothing streams while the person is the one being waited on. expect(message.status).toBe("sent"); diff --git a/apps/web/src/pages/workspace/work-unit.ts b/apps/web/src/pages/workspace/work-unit.ts index e163d6e3..d82195ea 100644 --- a/apps/web/src/pages/workspace/work-unit.ts +++ b/apps/web/src/pages/workspace/work-unit.ts @@ -166,7 +166,8 @@ const CALL_STATUS: Record = { declined: "output-denied", starting: "pending", working: "running", - approval: "approval-requested", + // The approval has its own card; a hand-off marked as asking would draw a second, dead one. + approval: "running", ready: "output-available", finished: "output-available", failed: "error",