feat(background-task): add all parameter to cancel all running tasks at once

Allows OmO agent to cleanup all running background tasks before providing final answers.

🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
YeonGyu-Kim
2025-12-16 21:02:38 +09:00
parent 059f2bfe13
commit 4112be7ad5
4 changed files with 42 additions and 6 deletions

View File

@@ -844,6 +844,7 @@ You are allowed to be proactive, but balance this with user expectations:
- **Stop when you have enough** - don't over-explore
- **Evidence for everything** - no evidence = not complete
- **Background pattern** - fire agents, continue working, collect with background_output
- **Cleanup before answering** - When ready to deliver your final answer, cancel ALL running background tasks with \`background_cancel(all=true)\` first, then respond. This conserves resources and ensures clean workflow completion.
- Complete accepted tasks fully - don't stop halfway through implementation
- But if you discover the task is larger or more complex than initially apparent, communicate this and confirm direction before investing significant effort
</Final_Reminders>