fix: Hermes integration gaps + stale Claude Code task detection#549
Merged
fix: Hermes integration gaps + stale Claude Code task detection#549
Conversation
…istory - Create POST /api/hermes/events to receive hook events (session:start, agent:start, agent:end). The hook was silently failing because this endpoint didn't exist. - Events logged to activity table and broadcast to SSE clients - Agent status updated on agent:start/agent:end events - Add session.updated event type to event bus - Add runCount to HermesCronJob (counts all execution output files)
Claude Code team tasks written to ~/.claude/tasks/ often get stuck as in_progress when sessions crash or end without cleanup. Detect stale tasks by checking file mtime — if not modified in 60+ minutes while still in_progress, mark as stale. UI shows these dimmed with "stale" label instead of the misleading "in_progress" badge.
📸 Screenshot Drift CheckThis PR modifies UI source files. Please verify whether the README screenshots need refreshing:
Changed UI filesSee This comment is posted automatically and can be dismissed if no visual changes occurred. |
Jake-qp
referenced
this pull request
in Jake-qp/mission-control
Apr 3, 2026
Pre-existing route added in PR #549 without OpenAPI spec. Unblocks Docker publish for task resolution UI changes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two fixes from the Hermes integration audit and Claude Code tasks UI issue.
Hermes: Missing events endpoint
The MC hook (
~/.hermes/hooks/mission-control/handler.py) posts events to/api/hermes/events— but that endpoint didn't exist. Events were silently dropped.Fix: Created
POST /api/hermes/eventsthat:session.updatedeventHermes: Cron job run count
Added
runCounttoHermesCronJob— counts all execution output files in~/.hermes/cron/output/{job_id}/, giving visibility into total execution history (was only showing latest run).Claude Code: Stale task detection
Claude Code team tasks at
~/.claude/tasks/often get stuck asin_progresswhen sessions crash without cleanup. 45 of 125 tasks on the test system were stale.Fix: Check file
mtime— if task file not modified in 60+ minutes while stillin_progress, mark asstale. UI shows these dimmed with "stale" label instead of misleading "in_progress".Test plan
pnpm test— 892/892 pass