session_mutations

command
v0.0.1 Latest Latest
Warning

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

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

Documentation

Overview

Demonstrates intra-session mutations: Session.SetModel and Session.SetMode. Both go through opencode's stable session/set_config_option path and fire SessionConfigOptionUpdate + CurrentModeUpdate notifications that typed subscribers can observe.

go run ./examples/session_mutations

Jump to

Keyboard shortcuts

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