fix(tasks-hook): update default task_system test

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-04-03 17:11:42 +09:00
parent 47769d5f49
commit 760099eb03
@@ -78,7 +78,7 @@ describe("tasks-todowrite-disabler", () => {
).resolves.toBeUndefined()
})
test("should block TodoWrite when experimental is undefined because task_system defaults to enabled", async () => {
test("should not block TodoWrite when experimental is undefined because task_system defaults to disabled", async () => {
// given
const hook = createTasksTodowriteDisablerHook({})
const input = {
@@ -93,7 +93,7 @@ describe("tasks-todowrite-disabler", () => {
// when / then
await expect(
hook["tool.execute.before"](input, output)
).rejects.toThrow("TodoRead/TodoWrite are DISABLED")
).resolves.toBeUndefined()
})
test("should not block TodoRead when flag is false", async () => {