Conversation
When users run /clear in Claude Code, it fires SessionStart with source='clear'. Without this matcher, cleared conversations aren't archived until the next full CLI restart. Fixes obra#50
📝 WalkthroughWalkthroughThe SessionStart hook matcher in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- Redirect embedding model log messages from stdout to stderr and suppress @xenova/transformers progress callbacks. Stdout is reserved for MCP JSON-RPC communication and any non-JSON output corrupts the protocol. (credit: obra#48) - Add 'clear' to the SessionStart hook matcher so conversations are archived when users run /clear, not just on startup/resume. (credit: obra#51) - Add SIGHUP handler and stdin close detection to the MCP server wrapper so child processes are cleaned up when the terminal closes or Claude crashes. (credit: obra#54)
Summary
clearto the SessionStart hook matcher so conversations are archived when users run/clearDetails
When users run
/clearin Claude Code, it fires:SessionEndwith reasonclearSessionStartwith sourceclearThe current matcher (
startup|resume) doesn't catchclear, so cleared conversations aren't archived until the next full CLI restart.This one-line change adds
clearto the matcher, making/clearbehave consistently with CLI restart for archiving purposes.Fixes #50
🤖 Generated with Claude Code
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.