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
ifecho"$pane_content"| grep -qiE '(Working|Thinking|Planning|Sending|esc to interrupt)';then
394
+
ifecho"$pane_content"| grep -qiE '(Working|Thinking|Planning|Sending|task is in progress|esc to interrupt|Compacting conversation|思考中|考え中|計画中|送信中|処理中|実行中)';then
394
395
return 0 # busy
395
396
fi
396
397
return 1 # idle
@@ -556,6 +557,15 @@ for s in data.get('specials', []):
556
557
local now
557
558
now=$(date +%s)
558
559
560
+
# When the agent is busy/thinking, do NOT escalate. Interrupting with Escape or /clear
561
+
# can terminate the current thought. Also pause the escalation timer while busy so we
562
+
# don't immediately jump to Phase 2/3 once it becomes idle.
563
+
if agent_is_busy;then
564
+
FIRST_UNREAD_SEEN=$now
565
+
echo"[$(date)] $normal_count unread for $AGENT_ID but agent is busy — pausing escalation timer">&2
0 commit comments