Skip to content

feat(claude): surface queued prompts and plan-mode-exit from attachments - #60

Merged
zawakin merged 1 commit into
mainfrom
feat/claude-attachment-events
Jun 1, 2026
Merged

feat(claude): surface queued prompts and plan-mode-exit from attachments#60
zawakin merged 1 commit into
mainfrom
feat/claude-attachment-events

Conversation

@zawakin

@zawakin zawakin commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to the v2.1 log-format audit (#57). The attachment record type (v2.1+) previously fell into Unknown and was discarded entirely. This recognizes it and surfaces the two timeline-relevant subtypes as Notification events, explicitly skipping the rest.

  • queued_command (commandMode prompt) → Notification (info): "Queued prompt: {prompt}". Background task-notification queue entries are skipped as noise (they make up the majority of queued_command records).
  • plan_mode_exitNotification (info): "Exited plan mode (plan: {path})" — marks a finalized plan.

All other attachment subtypes (task_reminder, skill_listing, deferred_tools_delta, edited_text_file, date_change, …) are intentionally not timeline events and fall into AttachmentData::Other (skipped).

Changes

  • claude/schema.rs: AttachmentRecord + AttachmentData enum (QueuedCommand, PlanModeExit, Other); add Attachment to ClaudeRecord.
  • claude/parser.rs: session-id extraction + match arm + 4 unit tests.

No snapshot changes.

🤖 Generated with Claude Code

@zawakin zawakin self-assigned this Jun 1, 2026
@zawakin
zawakin merged commit 2edf6e4 into main Jun 1, 2026
8 checks passed
@zawakin
zawakin deleted the feat/claude-attachment-events branch June 1, 2026 16:29
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