fix(goal): make cancellation a user-only control (#6667)

This commit is contained in:
chengyongru authored and GitHub committed 2026-11-14 23:48:13 +08:00
1 parent c927808aff
commit 12a86eaa86
33 files changed
+641 -63

No files matched your search

+5 -1
View File
@@ -391,5 +391,9 @@ def test_goal_command_in_help_and_palette() -> None:
}
commands = [item["command"] for item in palette]
goal_index = commands.index("/goal")
assert commands[goal_index - 1:goal_index + 2] == ["/model", "/goal", "/trigger"]
assert commands[goal_index - 1:goal_index + 3] == ["/model", "/goal", "/cancel_goal", "/trigger"]
cancel = next(item for item in palette if item["command"] == "/cancel_goal")
assert cancel["lifecycle"] == "side_channel"
assert cancel["accepts_args"] is False
assert "/goal <goal>" in build_help_text()
assert "/cancel_goal" in build_help_text()