Abhinav
7999b0f60f
Support clear SessionStart source ( #17073 )
...
## Motivation
The `SessionStart` hook already receives `startup` and `resume` sources,
but sessions created from `/clear` previously looked like normal startup
sessions. This makes it impossible for hook authors to distinguish
between these with the matcher.
## Summary
- Add `InitialHistory::Cleared` so `/clear`-created sessions can be
distinguished from ordinary startup sessions.
- Add `SessionStartSource::Clear` and wire it through core, app-server
thread start params, and TUI clear-session flow.
- Update app-server protocol schemas, generated TypeScript, docs, and
related tests.
https://github.com/user-attachments/assets/9cae3cb4-41c7-4d06-b34f-966252442e5c
2026-04-10 16:05:21 -07:00
..
2026-04-09 21:15:17 -07:00
2026-03-28 11:23:07 -06:00
2026-04-10 13:24:07 -07:00
2026-04-10 14:05:47 -07:00
2026-04-09 11:01:30 -07:00
2026-04-10 14:05:47 -07:00
2026-04-08 18:49:31 -07:00
2026-04-08 13:09:28 -07:00
2026-04-07 08:03:35 -07:00
2026-04-07 08:03:35 -07:00
2026-04-09 11:01:30 -07:00
2026-04-09 21:15:17 -07:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-04-09 18:10:38 -03:00
2026-04-09 21:15:17 -07:00
2026-04-01 13:03:59 -07:00
2026-04-09 21:15:17 -07:00
2026-04-01 22:00:27 -06:00
2026-04-10 16:05:21 -07:00
2026-04-10 16:05:21 -07:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-04-10 14:05:47 -07:00
2026-04-03 11:26:45 -07:00
2026-04-09 18:10:38 -03:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-04-02 18:07:05 -03:00
2026-03-28 11:23:07 -06:00
2026-04-08 15:47:29 -07:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-04-10 14:05:47 -07:00
2026-04-02 18:07:05 -03:00
2026-03-28 11:23:07 -06:00
2026-04-09 21:15:17 -07:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-04-07 00:32:41 +00:00
2026-03-28 11:23:07 -06:00
2026-04-06 08:52:18 -07:00
2026-04-06 08:52:18 -07:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-04-07 08:03:35 -07:00
2026-04-03 00:33:34 -07:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-04-03 00:33:34 -07:00
2026-03-28 11:23:07 -06:00
2026-04-06 08:51:13 -07:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-04-09 18:10:38 -03:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-04-07 21:20:22 +00:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-04-09 15:17:06 +01:00
2026-04-08 21:50:02 -07:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-04-08 22:26:05 -07:00
2026-03-28 11:23:07 -06:00
2026-03-29 00:20:25 +00:00
2026-03-28 11:23:07 -06:00