Skip to main content

Module execution_attach

Module execution_attach 

Source
Expand description

Attach to a tracked detached execution (issue #162).

--stop/--terminate can already address a stored session name; --attach completes the set by re-entering the session’s terminal instead of only tailing its log. --attach --read-only follows the output without forwarding stdin, which is the safe default for supervisors that must not accidentally type into a long-running agent session.

Structs§

AttachPlan
A resolved way back into a running session.
AttachResultFields
Fields reported after an attach attempt.
ExecutionAttachResult
Result of attach_execution.
InteractiveRunOutput
Outcome of running an attach plan.
SystemInteractiveRunner
Runs the plan as a child process sharing this process’ terminal.

Traits§

InteractiveRunner
Runs an attach plan with the parent terminal wired up. Injectable so tests never spawn a real docker attach.

Functions§

attach_execution
Attach to a tracked execution by UUID or session name.
attach_execution_with_runners
Attach with injectable runners, so tests never touch a real session.
build_attach_plan
Build the attach plan for an execution record.
format_attach_result_as_links_notation
Format an attach result as links notation.