Skip to content

feat: graceful shutdown for relay watch#57

Merged
Manavarya09 merged 1 commit intomainfrom
feat/graceful-watch-shutdown
Apr 15, 2026
Merged

feat: graceful shutdown for relay watch#57
Manavarya09 merged 1 commit intomainfrom
feat/graceful-watch-shutdown

Conversation

@Manavarya09
Copy link
Copy Markdown
Owner

Summary

  • Add ctrlc signal handler to relay watch daemon
  • Ctrl-C now exits cleanly with a session summary (uptime, handoff count) instead of abrupt termination
  • Tracks handoff count and watch start time throughout the session

Before

^C
(process killed, no output)

After

^C
  Watch stopped.
  Uptime: 42m 15s | Handoffs: 3

Test plan

  • cargo check compiles cleanly
  • All 62 tests pass
  • relay watch responds to Ctrl-C with summary

🤖 Generated with Claude Code

Add signal handling (Ctrl-C) to the watch daemon so it exits cleanly
with a summary of uptime and handoff count instead of just dying.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Manavarya09 Manavarya09 merged commit baa1038 into main Apr 15, 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