Documentation
¶
Overview ¶
Demonstrates Client.ForkSession and Client.ResumeSession.
- Fork creates a new session that inherits the parent's history up to the fork point. The fork has a different SessionId but carries any memory the parent had accumulated.
- Resume re-attaches to an existing session by id without replaying its history on the wire (unlike LoadSession).
Both wrap opencode's unstable session RPCs.
go run ./examples/fork_resume
Click to show internal directories.
Click to hide internal directories.