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
Click to show internal directories.
Click to hide internal directories.