Skip to content

fix(sessions): session trail — task_dispatch reads data.task, not empty id (v0.222.1)#370

Merged
vikasprogrammer merged 1 commit into
mainfrom
feat/trail-dispatch-fix
Jul 16, 2026
Merged

fix(sessions): session trail — task_dispatch reads data.task, not empty id (v0.222.1)#370
vikasprogrammer merged 1 commit into
mainfrom
feat/trail-dispatch-fix

Conversation

@vikasprogrammer

Copy link
Copy Markdown
Owner

Follow-up to the v0.221.0 session activity trail (#368), caught while testing it live.

task.dispatched audit events key the task id under data.task (see automations.ts), but the activity classifier read data.id — so a dispatched task resolved an empty id and the trail rendered it as deleted with a blank summary.

Fix:

  • Classifier reads data.task (fallback data.id) → the dispatch row shows the task title + its live status.
  • The /api/sessions/:id/activity route guards empty-id targets, so any missing id yields no status instead of a misleading "deleted".

Verification: scripts/session-trail-test.cjs extended to cover both an id-bearing dispatch (resolves to live status) and an orphan dispatch (no target, no status) — 15/15. npm run test:governance 68/68.

🤖 Generated with Claude Code

https://claude.ai/code/session_014fS9mHadnGxa2VKhEKn7a7

…ty id (v0.222.1)

task.dispatched keys the task id under data.task (automations.ts), but the
activity classifier read data.id — so a dispatched task resolved an empty id and
the trail rendered it as "deleted" with a blank summary. Read data.task (fallback
data.id) so the row shows the task title + live status, and guard empty-id targets
in the /api/sessions/:id/activity route so a missing id yields no status instead of
a misleading "deleted". Follow-up to v0.221.0. Verified via session-trail-test.cjs
(15/15) + governance (68/68).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014fS9mHadnGxa2VKhEKn7a7
@vikasprogrammer
vikasprogrammer merged commit 5fe89ba into main Jul 16, 2026
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