Skip to main content

Module session

Module session 

Source
Expand description

One attempt as an ACP session: the agent started in the worktree, initialize, session/new, its permission mode settled, one session/prompt, and every request it makes in between answered by the Governor — until the turn ends, the attempt’s time is up (session/cancel, then the process group is killed), or a call waits for a person nobody can ask.

Adapted from devplane’s acp::session (same owner, MIT OR Apache-2.0): the set-up, the mode request, the cancel and the sign-in reading; the watched sessions, questions and resume are left out — an attempt is one fresh session.

Structs§

Attempt
What an attempt is started with.
Finished
How the attempt ended.
SignIn
A way the agent says it can be signed in.

Constants§

CANCEL_GRACE
How long a cancelled turn has to acknowledge before the process group is killed anyway.

Functions§

run
Runs the attempt to its end.