fix: use env var instead of tmux check for Stop hook scoping

The tmux display-message approach had edge cases: it could succeed outside
tmux, fail on first iteration, or behave differently depending on tmux
socket state.

Replace with AGENT_LOOP_ACTIVE env var exported by loop.sh. CC sessions
spawned by the loop inherit it; interactive CC sessions don't. Simple,
no external dependencies, no race conditions.
This commit is contained in:
2026-04-02 10:42:46 -04:00
parent bab002b927
commit a1a3dfbd63
4 changed files with 7 additions and 7 deletions

View File

@@ -10,7 +10,7 @@
"name": "agent-loop",
"source": "./",
"description": "Autonomous generator-evaluator agent loop for long-running coding tasks. Plan interactively, then execute with full visibility.",
"version": "0.10.0",
"version": "0.10.1",
"author": {
"name": "Sheldon"
},

View File

@@ -1,6 +1,6 @@
{
"name": "agent-loop",
"version": "0.10.0",
"version": "0.10.1",
"description": "Autonomous generator-evaluator agent loop for long-running coding tasks. Run /agent-loop:run to start.",
"author": {
"name": "Sheldon"