fix(kanban): pass accept-hooks to worker chat subprocess
This commit is contained in:
@@ -2730,6 +2730,10 @@ def test_default_spawn_auto_loads_kanban_worker_skill(kanban_home, monkeypatch):
|
||||
assert cmd[idx + 1] == "kanban-worker", (
|
||||
f"expected 'kanban-worker', got {cmd[idx + 1]!r}"
|
||||
)
|
||||
assert "--accept-hooks" in cmd, f"spawn argv missing --accept-hooks: {cmd}"
|
||||
assert cmd.index("--accept-hooks") < cmd.index("chat"), (
|
||||
f"--accept-hooks must come before 'chat' in argv: {cmd}"
|
||||
)
|
||||
# Assignee + task env are still present
|
||||
assert "some-profile" in cmd
|
||||
env = captured["env"]
|
||||
|
||||
Reference in New Issue
Block a user