fork_resume

command
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL