works.iterative.claude.zio.internal.cli.SessionArchiveHook
See theSessionArchiveHook companion object
final case class SessionArchiveHook(afterResult: SessionId => UIO[Unit], onClose: SessionId => UIO[Unit])
Hooks the session reader invokes to mirror the vendor transcript tree.
Both hooks are best-effort: they never fail, so mirroring can never break the session. A mirror failure is observable only as a logged warning.
afterResult returns as soon as a mirror is scheduled, running the copy on a background fiber so a slow tree copy never back-pressures the session reader. onClose waits for any in-flight mirror and then settles the archive to the full tree.
Value parameters
- afterResult
-
fired with the session id after each real (origin-absent) result
- onClose
-
fired with the session id when the session ends
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article