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 9a3254d
Browse filesBrowse the repository at this point in the historyBrowse files
jet
committed
fix: use isActive+isStopped instead of isStreaming for steer message injection
Replace the overly restrictive isStreaming() guard in
queueEmbeddedPiMessage and queueReplyRunMessage with a precise
agent-loop lifecycle check. The old guard blocked steer messages
during tool execution (when isStreaming is false but the agent loop
is still running), preventing legitimate steer/interrupt delivery.
- Add isStopped() method to EmbeddedPiQueueHandle that returns true
when the agent loop is not actively running (before first prompt or
after prompt end). During these windows the steering queue is not
drained, so messages would be silently dropped.
- In attempt.ts, track agentLoopStarted (set immediately before
activeSession.prompt()) and agentLoopStopped (set in the prompt
finally block). isStopped = !started || stopped.
- queueEmbeddedPiMessage and queueReplyRunMessage now check isStopped()
instead of isStreaming(), correctly allowing steer during tool
execution while rejecting during startup and teardown windows.
- In agent-runner.ts, the steer guard uses isActive (run handle exists)
instead of isStreaming, matching the broader acceptance window.
- Add isStopped?() to ReplyBackendHandle interface.
- Remove the now-dead isStreaming param from runReplyAgent and its
destructuring in runPreparedReply.
- 6 new/updated tests covering: not-streaming+running (tool exec),
stopped (teardown), not-yet-started (startup), compacting, and
streaming cases.
Fixes#48003
Co-Authored-By: Cha <[email protected]> via OpenClaw
0 commit comments