GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(tui): fire-and-forget async subagent tasks by IgorWarzocha · Pull Request #7206 · anomalyco/opencode

Conversation

@IgorWarzocha

@IgorWarzocha IgorWarzocha commented Jan 7, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

arsham, asokawotulo, and acastro2 reacted with thumbs up emoji
All reactions
  • 👍 3 reactions
OpenCode Agent
feat(tui): fire-and-forget async subagent tasks
5d278d8
@github-actions

github-actions Bot commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@arsham

arsham commented Jan 7, 2026

Copy link
Copy Markdown

I absolutely love this!

I know this is not the scope of this PR, but I was wondering if we could slip in optional model to the task tool. Ignore if this is out of scope.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@IgorWarzocha

IgorWarzocha commented Jan 7, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Author

I absolutely love this!

I know this is not the scope of this PR, but I was wondering if we could slip in optional model to the task tool. Ignore if this is out of scope.

@arsham Thank you. I decided to keep it minimal to make it a. easier to integrate b. more likely to merge.

I have a more complex version that restores input prompt box to subagents, allows to pass a summary back to main agent via /finished if you ever interact with a subagent, can purge subagent sessions via /wipe (current) or /wipeout (all)... And another one that allows a skill to be an argument of a task tool, where it basically injects the skill immediately before the subagent starts doing anything.

It's all doable but overcomplicates a single pr.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@arsham

arsham commented Jan 7, 2026

Copy link
Copy Markdown

@IgorWarzocha those are great ideas. Do you have them on your fork by any chance?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@IgorWarzocha

IgorWarzocha commented Jan 7, 2026

Copy link
Copy Markdown
Author

@arsham WIP. need proper testing etc, and all are based on pre 1.1.1. Unsure why started with async one, it just felt right. https://github.com/IgorWarzocha/opencode/pulls

arsham reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Jan 12, 2026
fix: restore main session model on subtask completion - CONFLICTED #7909
Closed
fix(task): respect agent task permission for nested sub-agents #8111
Merged
@github-actions github-actions Bot mentioned this pull request Jan 22, 2026
fix(tui): preserve agent state after compaction #10101
Closed
@R44VC0RP R44VC0RP mentioned this pull request Jan 25, 2026
feat: Support reminders, so actions can be done automatically in delayed manner. #2828
Closed
@thdxr
thdxr force-pushed the dev branch from cbab81f to 2d3c7a0 Compare January 30, 2026 04:50
@opencode-agent
opencode-agent Bot force-pushed the dev branch from 00637c0 to 71e0ba2 Compare January 30, 2026 14:32
@thdxr
thdxr force-pushed the dev branch 3 times, most recently from f1ae801 to 08fa7f7 Compare January 30, 2026 14:37
This was referenced Feb 6, 2026
[EPIC] Fork Realignment — Minimize Divergence, Automate Sync randomm/opencode#158
Open
[WS1] Refactor async task tool to minimal-invasion pattern randomm/opencode#159
Closed
[WS5] Contribute async task refactor to upstream (PR #7206 / issue #5887) randomm/opencode#163
Open
@github-actions github-actions Bot mentioned this pull request Feb 12, 2026
feat(opencode): Support background subagents #13261
Closed
3 of 6 tasks
@github-actions github-actions Bot mentioned this pull request Mar 2, 2026
feat(tui): add Subagents section to session sidebar #15738
Closed
3 of 6 tasks
@github-actions

github-actions Bot commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot closed this Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@IgorWarzocha @arsham
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.