summaryrefslogtreecommitdiff
path: root/lib/hyperstack/ssh_runner.rb
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-25 10:42:53 +0300
committerPaul Buetow <paul@buetow.org>2026-05-25 10:42:53 +0300
commitdd146c20086e95d388e22cbca907dbf68364628b (patch)
treea7d7be73d3c2448aad53eb14a303dcc0f675c878 /lib/hyperstack/ssh_runner.rb
parent7e7f545112e918451320a87922ab6b34461ed3c5 (diff)
fix(loop-scheduler): defer agent_busy reset after agent_end instead of isIdle polling
The agent_end handler receives ExtensionContext, not the command variant, so ctx.waitForIdle() was never available (TypeError). The previous fix replaced it with an isIdle() polling loop, but isIdle() remains false while any agent_end listener is still executing (finishRun() completes only after listeners settle). This caused a 30-second busy-wait on every turn, leaving the UI stuck on 'Working...'. Defer resetting agentBusy and draining pending jobs via setTimeout(..., 0) so the work happens in a macrotask after finishRun() has completed and the agent is genuinely idle.
Diffstat (limited to 'lib/hyperstack/ssh_runner.rb')
0 files changed, 0 insertions, 0 deletions