Q152: chat replies and goal checkpoints stay out of work lists, load and progress

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-09 01:26:15 -04:00
1 parent 18f1e1fcc3
commit e8634afb82
8 files changed
+34 -7

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import { describe, expect, test } from "vitest";
import { isBusinessTask } from "../../src/renderer/src/pages/work/task-helpers";
import type { TaskRecord } from "../../src/shared/domain";
describe("what counts as work", () => {
test("chat reply vehicles and goal checkpoints are not work; reviews of work and plain tasks are", () => {
const task = (origin: TaskRecord["origin"]) => ({ origin }) as TaskRecord;
expect([null, "task_review", "chat_wake", "goal_review"].map((origin) => isBusinessTask(task(origin as TaskRecord["origin"])))).toEqual([true, true, false, false]);
});
});