fix: show UUID in agent-loop resume command (#152) #176

Merged
guettlibot merged 3 commits from issue-152-fix into main 2026-05-23 13:20:10 +00:00
guettlibot commented 2026-05-23 13:16:47 +00:00 (Migrated from codeberg.org)

Summary

  • Adds _find_session_uuid() to look up a session's UUID from Claude's JSONL files
  • _run_loop() now shows claude --resume <uuid> (the actual UUID) when an agent is still running, rather than the session name which doesn't work with --resume
  • Falls back to pointing at scripts/agent_loop.py list when the UUID isn't resolved yet
  • _start_agent() no longer prints a broken resume command at startup (UUID not available immediately); directs user to list subcommand instead
  • Module docstring updated to document the correct UUID-based resume workflow
  • 13 new tests

Test plan

  • All 50 Python unit tests pass (python3 -m unittest scripts/test_agent_loop.py)
  • Pre-commit hooks pass (dart format, large-file check, etc.)
  • CI on the self-hosted runner

Fixes #152

## Summary - Adds `_find_session_uuid()` to look up a session's UUID from Claude's JSONL files - `_run_loop()` now shows `claude --resume <uuid>` (the actual UUID) when an agent is still running, rather than the session name which doesn't work with `--resume` - Falls back to pointing at `scripts/agent_loop.py list` when the UUID isn't resolved yet - `_start_agent()` no longer prints a broken resume command at startup (UUID not available immediately); directs user to `list` subcommand instead - Module docstring updated to document the correct UUID-based resume workflow - 13 new tests ## Test plan - [x] All 50 Python unit tests pass (`python3 -m unittest scripts/test_agent_loop.py`) - [x] Pre-commit hooks pass (dart format, large-file check, etc.) - [ ] CI on the self-hosted runner Fixes #152
Sign in to join this conversation.