Skip to main content

Module pty_resume

Module pty_resume 

Source
Expand description

Node session registry: PTY sessions the user opened survive a node restart. Each live PTY session is journalled (provider, provider session id, workspace, model/effort, instance number); on node start every journalled session is spawned again with the provider’s own resume flag, under the same instance number, so HQ shows the same chat. Off with HATCHERY_SESSION_RESUME=0.

Structs§

Entry

Functions§

enabled
launch_args
Launch args: resume a known id, or pin a fresh one so it can be resumed later.
load
new_session_id
note_account_ref
Records that the child of session_key carries account_ref as its M4A_SESSION_ID.
path
refresh
remove
set_session_id
Set the provider session id of an entry that has none yet.
set_session_key
Record the m4a session key an entry’s runtime got (a resume reuses the old one), so the session keeps its account and nick across node restarts.
supported
Providers whose CLI accepts a caller-chosen session id plus a resume flag.
upsert