[PR #7206] feat(tui): fire-and-forget async subagent tasks #12298

Open
opened 2026-02-16 18:17:13 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7206

State: open
Merged: No


Summary

  • Add fire-and-forget async subagent tasks with parent notifications and status tracking.
  • Surface background task state in the TUI and system prompt, including subtask reminders and navigation.
  • Add async task limits and async-only permission rules for tighter control.
  • <task_tool_agents> system reminder similar to <skills_available> with a list of currently running async subagents.

Config

  • experimental.async_task_limit (default 3)
  • experimental.async_task_permissions
  • permission.task_async

UX

  • Sidebar shows background tasks with status.
  • Session view renders subtask completion reminders and links to subagent sessions.
  • Compaction includes running async tasks to preserve context.

Testing

  • I have tested it as thoroughly as I can, but there's only so much I can do myself (my imagination ran out of edge case scenarios). Hope it at least helps as a stub if a similar feature is planned.
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7206 **State:** open **Merged:** No --- ## Summary - Add fire-and-forget async subagent tasks with parent notifications and status tracking. - Surface background task state in the TUI and system prompt, including subtask reminders and navigation. - Add async task limits and async-only permission rules for tighter control. - <task_tool_agents> system reminder similar to <skills_available> with a list of currently running async subagents. ## Config - `experimental.async_task_limit` (default 3) - `experimental.async_task_permissions` - `permission.task_async` ## UX - Sidebar shows background tasks with status. - Session view renders subtask completion reminders and links to subagent sessions. - Compaction includes running async tasks to preserve context. ## Testing - I have tested it as thoroughly as I can, but there's only so much I can do myself (my imagination ran out of edge case scenarios). Hope it at least helps as a stub if a similar feature is planned.
yindo added the pull-request label 2026-02-16 18:17:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12298