From fb6cc8548b03b6a130b465903353e87f233654a9 Mon Sep 17 00:00:00 2001 From: Affaan Mustafa Date: Thu, 30 Apr 2026 05:48:31 -0400 Subject: [PATCH] fix: harden loop status transcript scanning --- commands/loop-status.md | 2 + scripts/loop-status.js | 130 ++++++++++++++++++++++++------ tests/scripts/loop-status.test.js | 40 +++++++++ 3 files changed, 146 insertions(+), 26 deletions(-) diff --git a/commands/loop-status.md b/commands/loop-status.md index f75ab70c..81dc9427 100644 --- a/commands/loop-status.md +++ b/commands/loop-status.md @@ -34,6 +34,8 @@ tool calls that have no matching `tool_result`. - `ecc loop-status --json` emits machine-readable status for recent local Claude transcripts. +- `ecc loop-status --home ` scans a different home directory when + inspecting another local profile or mounted workspace. - `ecc loop-status --transcript ` inspects one transcript directly. - `ecc loop-status --bash-timeout-seconds 1800` adjusts the stale Bash diff --git a/scripts/loop-status.js b/scripts/loop-status.js index 014794ee..6a3c4805 100644 --- a/scripts/loop-status.js +++ b/scripts/loop-status.js @@ -22,6 +22,7 @@ function usage() { ' --limit Maximum recent transcripts to inspect (default: 10)', ' --bash-timeout-seconds Age before a pending Bash call is stale (default: 1800)', ' --wake-grace-multiplier ScheduleWakeup grace multiplier (default: 2)', + ' --now