File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 236236 [ " $status " -eq 0 ] # 0 = busy (cooldown overrides idle flag)
237237}
238238
239- # ─── T-008: nudge送信後にフラグ削除 ───
239+ # ─── T-008: nudge送信後もフラグ保持 (v4.0.1 cc234ed設計) ───
240240
241- @test " T-008: send_wakeup removes idle flag after sending nudge" {
241+ @test " T-008: send_wakeup preserves idle flag after sending nudge (v4.0.1) " {
242242 # Create idle flag (agent was idle)
243243 touch " $IDLE_FLAG_DIR /shogun_idle_test_idle_agent"
244244
@@ -252,8 +252,10 @@ YAML
252252 # Nudge was sent (send-keys)
253253 grep -q " send-keys.*inbox1" " $MOCK_LOG "
254254
255- # Flag should be removed after nudge (agent is now busy processing)
256- [ ! -f " $IDLE_FLAG_DIR /shogun_idle_test_idle_agent" ]
255+ # Flag should be PRESERVED after nudge (v4.0.1 design: cc234ed)
256+ # Removing flag here causes: agent_is_busy()=true → no further nudges → deadlock.
257+ # Flag is removed by stop_hook when agent actually goes idle (natural lifecycle).
258+ [ -f " $IDLE_FLAG_DIR /shogun_idle_test_idle_agent" ]
257259}
258260
259261# ─── T-009: shutsujin時に全フラグクリア ───
You can’t perform that action at this time.
0 commit comments