Files
donlucasandClaude Fable 5.1 5424570dc3 The hosted launcher replays the hooks that fired before its bind: event.ListenSince follows the spool from the launch, not from its end
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>
2026-09-18 22:03:40 -07:00
..