Skip to content

fix(status): ignore terminal workers in stale fallback#185

Merged
hadamrd merged 1 commit into
trunkfrom
retro/status-terminal-worker-fallback
Jun 3, 2026
Merged

fix(status): ignore terminal workers in stale fallback#185
hadamrd merged 1 commit into
trunkfrom
retro/status-terminal-worker-fallback

Conversation

@hadamrd
Copy link
Copy Markdown
Owner

@hadamrd hadamrd commented Jun 3, 2026

Summary\n- prevent forge-loop status --json from resurrecting a worker from stale state.json.dispatched after a terminal worker event has already been observed\n- add a regression for the stale stale_unconfirmed monitor noise seen while dogfooding #165/#168\n\n## Verification\n- env -u VIRTUAL_ENV uv run --extra dev pytest tests/test_cli.py::test_status_json_reports_active_workers_from_events tests/test_cli.py::test_status_json_falls_back_to_dispatched_state_when_worker_events_missing tests/test_cli.py::test_status_json_does_not_resurrect_terminal_worker_from_dispatched_state -q -> 3 passed\n- env -u VIRTUAL_ENV uv run --extra dev pytest tests/test_cli.py -q -> 33 passed\n- env -u VIRTUAL_ENV uv run --extra dev ruff check src/forge_loop/cli_status_commands.py tests/test_cli.py -> passed\n- env -u VIRTUAL_ENV uv run --extra dev ruff format --check src/forge_loop/cli_status_commands.py tests/test_cli.py -> passed\n- env -u VIRTUAL_ENV uv run --extra dev mypy src/forge_loop/cli_status_commands.py -> passed\n- env -u VIRTUAL_ENV uv run --extra dev pyright src/forge_loop/cli_status_commands.py tests/test_cli.py -> 0 errors\n- env -u VIRTUAL_ENV uv run forge-loop status --json -> active_workers [] in dogfood checkout

@hadamrd hadamrd merged commit 4227a60 into trunk Jun 3, 2026
2 checks passed
@hadamrd hadamrd deleted the retro/status-terminal-worker-fallback branch June 3, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant