Documentation
¶
Overview ¶
Package modestore keeps each session's routing mode override: one small file per Codex thread under <state>/codex-router/modes/<home id>/. The override then survives a launcher or brain restart and a Codex resume of the thread, and a new thread starts without one.
Index ¶
Constants ¶
const MaxAge = 30 * 24 * time.Hour
MaxAge is how long an override may go unused before Open deletes it. A load counts as use, so a thread still being resumed keeps its override.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is one home's overrides. Safe for concurrent use: each thread has its own file, written atomically.
func Open ¶
Open returns the store of home homeID under app (statedir.Dir), creating its dir private, and deletes overrides unused for MaxAge.