pub struct CodexJob {
pub id: String,
pub title: String,
pub kind_label: String,
pub workspace_root: PathBuf,
pub status: String,
pub started_at_ms: Option<i64>,
pub updated_at_ms: Option<i64>,
pub pid: Option<u32>,
}Expand description
One row from a codex-companion workspace’s state.json::jobs[]. The
companion writes one workspace directory per repo, each with a single
state.json carrying the full job history — we filter to the still-
active ones so the dashboard isn’t dominated by completed tasks.
Fields§
§id: StringStable per-job identifier (used as the cursor anchor key, so navigation survives across refreshes).
title: String§kind_label: String§workspace_root: PathBufAbsolute workspace path the job was launched against.
status: String§started_at_ms: Option<i64>§updated_at_ms: Option<i64>updatedAt epoch-millis. Used as a freshness signal: a running
job whose updatedAt is hours old is almost certainly a zombie
(codex-companion crashed without flipping the status).
pid: Option<u32>PID the codex-companion recorded for this job. None for jobs
where the field was absent or null (typical for terminal states).
Implementations§
Trait Implementations§
impl Eq for CodexJob
impl StructuralPartialEq for CodexJob
Auto Trait Implementations§
impl Freeze for CodexJob
impl RefUnwindSafe for CodexJob
impl Send for CodexJob
impl Sync for CodexJob
impl Unpin for CodexJob
impl UnsafeUnpin for CodexJob
impl UnwindSafe for CodexJob
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more