Documentation
¶
Overview ¶
Package codexsessions opens Codex CLI threads as Orb conversations, to read and continue with any model, and takes in the turns Codex adds afterwards.
Codex indexes its threads in state_5.sqlite; each thread's rollout JSONL is the record its own resume reads, so it is the source here: the items the model saw, with reasoning still encrypted for replay.
Index ¶
Constants ¶
const Name = "codex-sessions"
Name is the plugin switch that enables opening Codex threads.
Variables ¶
var ErrNoCodexSession = errors.New("no Codex session")
ErrNoCodexSession reports an ID that names no Codex thread.
Functions ¶
func Extension ¶
func Extension(env []string) extensions.Factory
Extension catches imported conversations up with their Codex threads when they open.
func ImportCodex ¶
func ImportCodex(id string, env []string, create func(cwd string) (*session.SessionManager, error)) (*session.SessionManager, error)
ImportCodex opens a Codex thread in a new Orb conversation. create makes the conversation in the thread's directory, under the thread's own ID so opening it again finds the Orb conversation.
Types ¶
This section is empty.