pub struct CodexAdapter { /* private fields */ }Expand description
The Codex adapter: a process is matched to the rollouts it holds open, and only where the platform cannot say to the cwd and activity heuristics. See DEC-006.
Trait Implementations§
Source§impl Default for CodexAdapter
impl Default for CodexAdapter
Source§fn default() -> CodexAdapter
fn default() -> CodexAdapter
Returns the “default value” for a type. Read more
Source§impl HarnessAdapter for CodexAdapter
impl HarnessAdapter for CodexAdapter
fn harness(&self) -> Harness
Source§fn rescan(&mut self, since: SystemTime)
fn rescan(&mut self, since: SystemTime)
Re-list the transcripts written since
since. Called every
fs_scan_interval, not every tick.Source§fn prepare(&mut self, roots: &[&ProcNode])
fn prepare(&mut self, roots: &[&ProcNode])
Called once per pass with this harness’s root processes, before any
of them is attributed. For work that must see every process at once:
Codex reads which rollouts each process holds open here, so that no
process’s fallback can claim a thread another is demonstrably writing.
Source§fn attribute(
&self,
root: &ProcNode,
_raw: Option<&RawProc>,
ctx: &AttributeContext<'_>,
) -> (Vec<PathBuf>, Attribution)
fn attribute( &self, root: &ProcNode, _raw: Option<&RawProc>, ctx: &AttributeContext<'_>, ) -> (Vec<PathBuf>, Attribution)
The transcripts this process is writing, newest activity first, and
how sure the adapter is. One per conversation: a Codex app-server hosts
many, a CLI runs one, a process with none gets an empty list.
Source§fn unowned(&self, attached: &HashSet<PathBuf>) -> Vec<PathBuf>
fn unowned(&self, attached: &HashSet<PathBuf>) -> Vec<PathBuf>
Recently written transcripts no process owns: the stopped list.
Source§fn open(&self, path: &Path, spans: SpanRetention) -> Box<dyn SessionTracker>
fn open(&self, path: &Path, spans: SpanRetention) -> Box<dyn SessionTracker>
A tracker for one transcript.
Auto Trait Implementations§
impl Freeze for CodexAdapter
impl RefUnwindSafe for CodexAdapter
impl Send for CodexAdapter
impl Sync for CodexAdapter
impl Unpin for CodexAdapter
impl UnsafeUnpin for CodexAdapter
impl UnwindSafe for CodexAdapter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more