Skip to content

[Fix] Tasks go idle while commands are still running - #1056

Draft
roomote-community[bot] wants to merge 1 commit into
developfrom
fix/keep-tasks-active-during-commands-1r0ornm3geu5w
Draft

[Fix] Tasks go idle while commands are still running#1056
roomote-community[bot] wants to merge 1 commit into
developfrom
fix/keep-tasks-active-during-commands-1r0ornm3geu5w

Conversation

@roomote-community

Copy link
Copy Markdown
Contributor

Created by Roomote. Follow up by mentioning @roomote, in the web UI, or in Discord.

What changed

OpenCode idle events now complete a turn only after the session confirms that command and assistant work has settled. Both session.status(idle) and session.idle remain non-terminal while a command is running, and an unavailable quiescence check keeps the task active rather than failing open.

Regression coverage verifies both idle event variants, normal completion after the command settles, and the verification-failure path.

Why this change was made

A stale OpenCode idle event could previously mark an active task idle and start its sandbox sleep countdown while a long-running command was still executing.

Impact

Tasks continue to show as active and retain their active execution deadline while commands run. The normal idle state and sleep countdown begin only after the current work has actually settled.

@roomote-community

roomote-community Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

No code issues found. See task

Reviewed f9adf47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant