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:
1 parent
18f1e1fcc3
commit
e8634afb82
8 files changed
+34
-7
No files matched your search
@@ -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]);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user