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
Daemon: client request waits (approve_step, wait) join the run loop's wake-up schedule #406
While a client waits on a request, the daemon keeps something live for it. An approve_step request holds one small task until its step is decided. It also holds a timer while a gate's expiry is running. A client wait with a deadline holds a timer task of its own (handles.rsattach). The bot itself parks durably either way. But AGENTS.md says the run loop owns the one wake-up schedule, and per-request tasks and timers grow with the number of open requests.
Plan, as agreed with the owner: move both kinds of wait into the run loop. The schedule holds a request's deadline next to the turns' wakes. A decision or a lapse settles the waiting reply from there, so no request has a task or timer of its own. Session close and turn end go through the same path.
Activity
Daemon: client requests that wait keep no task or timer of their own