load_session

command
v0.0.2 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: 7 Imported by: 0

Documentation

Overview

Demonstrates Client.LoadSession — rehydrate a previous opencode session by id. Unlike ResumeSession, LoadSession replays the full message history as session/update notifications before it returns; the SDK buffers those replay events and delivers them on the returned Session's Updates() channel. Use LoadSession when you want the client UI to re-render the prior transcript; use ResumeSession when you just want to keep prompting without the replay traffic.

go run ./examples/load_session

Jump to

Keyboard shortcuts

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