summaryrefslogtreecommitdiff
path: root/lib/hyperstack
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-24 12:32:18 +0300
committerPaul Buetow <paul@buetow.org>2026-05-24 12:32:18 +0300
commit76b1cc008afc878e7edbd46feb6680ccab6880f0 (patch)
treeee094e5be77092ba74177cbaf6345e9665c5a91b /lib/hyperstack
parent5a7fd46fc5bc113719b2ee2871d751b0986de2f5 (diff)
fix(loop-scheduler): reset agentBusy when drainPending detects idle context
The agentBusy flag could get stuck if an agent_start event fired but no matching agent_end followed (e.g. crash or forced shutdown). The scheduler would then show 'pending' forever even though the agent was completely idle. Now drainPendingJobs() and drainPendingWatchJobs() ask the ExtensionContext's isIdle() as a ground-truth fallback whenever agentBusy is true. If the context reports idle, we reset agentBusy = false and proceed to dispatch pending jobs instead of bailing out.
Diffstat (limited to 'lib/hyperstack')
0 files changed, 0 insertions, 0 deletions