Conversation
OpenCode background subagents stay busy after the parent turn settles, but they never emit task events, so the reaper treated the thread as idle and stopped the provider session. Related child session.status is now quiet liveness for that reaper check. busy and retry hold the session; idle and deletion release it. The signal stays inside the reaper and leaves task activity unchanged. Fixes pingdotgg#13514
Owner
Author
|
Opened upstream. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What Changed
Related OpenCode child
session.statusis quiet liveness for the provider-session reaper.busyandretryhold that thread's binding;idle, deletion, and session teardown release the child. While any related child is still live, an inactivity sweep leaves the OpenCode session running. The idle clock is not reset, so the next sweep can reap once the last child is gone and user-facing activity is already past the window. Other providers are unchanged.Why
Fixes pingdotgg#13514
On a headless OpenCode session, long-running background subagents keep the provider process busy after the parent turn settles. They do not emit
task.*events, so the reaper treated that silence as inactivity and stopped the session withinactivity_threshold, which cancels the tracked sessions. Inactivity has to ignore that clock while a related child session is still alive, because stopping the session aborts those children.The hold stays inside the reaper. Task activity is unchanged, so the sidebar liveness pill, thread settlement, and storage cleanup keep their existing task-event behavior.
Checklist