Skip to content

feat: emit session artifacts on task completion and shutdown (#40)#41

Merged
arniesaha merged 1 commit intomainfrom
feat/session-emit-hook
Apr 24, 2026
Merged

feat: emit session artifacts on task completion and shutdown (#40)#41
arniesaha merged 1 commit intomainfrom
feat/session-emit-hook

Conversation

@arniesaha
Copy link
Copy Markdown
Owner

Summary

  • Adds src/session-emit.ts wrapping max-session-emit.sh (execSync, non-fatal)
  • Wires emission into worker.ts success / LLM-error / catch paths
  • Wires emission into index.ts graceful shutdown before process.exit(0)

Closes #40

Test plan

  • npx tsc --noEmit clean
  • Real Telegram/A2A task produces an entry in agent-shared/wiki/meta/sessions/
  • Emit failure logs warn and does not throw

🤖 Generated with Claude Code

Wires max-session-emit.sh into worker task completion (success, LLM
error, and catch paths) and graceful shutdown. Emit failures are logged
as warn and never surface to the user.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@arniesaha arniesaha merged commit efe206c into main Apr 24, 2026
1 check passed
@arniesaha arniesaha deleted the feat/session-emit-hook branch April 24, 2026 01:10
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.

Wire session-emit hook into Pi-mono task completion and shutdown

1 participant