Help us shape the future of Go! Take the 2026 Go Developer Survey

sessctx

package
v0.4.45 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package sessctx prepares shared execution context for any loop or agent.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CwdCommand

func CwdCommand(store agentkit.SessionStore, ws workspace.Service) agentkit.Command

CwdCommand exposes the same session/channel binding scopes as /agent and /model.

func NextTurn

func NextTurn(ctx context.Context) (context.Context, error)

NextTurn refreshes bindings for another turn dispatched by the same loop. Prepare stays idempotent within one turn. Custom loops draining follow-ups can call NextTurn before each additional turn just like loop/default.

func Prepare

Prepare fixes the context for one turn. Runner, local and remote agents share this entry point; an existing snapshot prevents duplicate work. Callers must serialize turns for a session, as they do for all other session events.

func Resolve

Resolve reads pending bindings and the durable context epoch without writing. Configuration commands use it; normal turns call Prepare.

Types

This section is empty.

Jump to

Keyboard shortcuts

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