Skip to content

Commit ad6ec12

Browse files
committed
Clear agent status buffer when transitioning to idle
- Prevents stale "esc to " pattern from persisting in the rolling buffer and blocking future idle detection after stop
1 parent db620e8 commit ad6ec12

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

agent_status.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ func (d *Daemon) scanAgentStatus(data []byte) {
129129
d.agentIdleTimer = time.AfterFunc(AgentIdleDebounce, func() {
130130
d.agentBusy = false
131131
d.agentIdleTimer = nil
132+
d.agentStatusBuf = d.agentStatusBuf[:0]
132133
d.sendControlMessage("agent-status:idle")
133134
})
134135
}

0 commit comments

Comments
 (0)