mirror of
https://github.com/donlucasx/xscapes.git
synced 2026-10-20 08:43:32 +02:00
Listen follows a session's spool from its END on purpose: an unlistened hour is history, and replaying it would rewrite its weather into the next two seconds. The hosted launcher is the other case. It binds to the session its agent announces, within a one-second poll, and the hooks that fire in that window spool: for a one-shot (`hermes chat -q`, `claude -p`) that is the session start and the first prompt, six milliseconds apart, and the scape applied only the session end (his hooks log, 2026-09-18). ListenSince(session, since) starts at the first spool line stamped at or after `since`; the launcher passes its launch time. Lines before it stay history; a line with no ts, or one that does not parse, is history too. TestABindReplaysWhatArrivedSinceTheLaunch: three spooled lines, one an hour old, two after the launch; the bus delivers the two and not the third. A/B on the real path with a fake one-shot agent firing the real hook command: v0.4.5 applied done, session_end; this build applies session_start, prompt, done, session_end. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>