You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ae1384c
Browse filesBrowse the repository at this point in the historyBrowse files
mp
committed
fix(tasks): keep OpenCode subagent polls off the event loop and hold a turn its session was found late for
The merge pass's gate found three things in #1987.
A poll ran on the event loop and could wait there: on macOS each one ran
ps for the OpenCode service's start, and a store held by its writer
kept the read waiting its 250 ms busy timeout. The service's start is
now looked up once per service process, without waiting
(processStartUpperBoundAsync), and a poll's read waits on no writer:
a store busy for a moment leaves the counts as they were.
A child that still ran behind 1024 newer ended ones was neither
counted nor listed, as the cap applied before children were
classified. Every child whose run has not ended with an idle row is now
read; only the ended ones, read for the list, stay capped.
An OpenCode turn that followed another agent and ended on its subagent
before its session was found read DONE: the first session's reset
dropped the rest the turn was seen take, and so did Claude Code's
tracker letting go. Such a reset now keeps the rests seen since the
pane's first status event under its new agent
(BackgroundWait.resetBefore). A status event of an OpenCode pane whose
session is not known yet looks the pane up at once, so the turn is held
while its finish alert still waits, and the alert is called off.
0 commit comments