pub struct WorkbenchJob {Show 17 fields
pub session: String,
pub job: String,
pub agent: String,
pub task: String,
pub workspace: String,
pub cwd: String,
pub state: AgentState,
pub detail: Option<String>,
pub started_by: JobOrigin,
pub conversation: Option<String>,
pub run: Option<String>,
pub worktree: Option<WorktreeRef>,
pub reviewed: bool,
pub resumable: bool,
pub resumed_as: Option<String>,
pub created_unix_seconds: u64,
pub updated_unix_seconds: u64,
}Expand description
One background job, from the instance’s job ledger and, while it runs, its live state.
Fields§
§session: StringThe session that owns it.
job: StringIts handle in that session, such as job-3.
agent: StringThe agent that runs it, such as codex.
task: StringThe first line of its prompt, shortened.
workspace: StringThe session’s workspace.
cwd: StringWhere its agent runs: a directory in the workspace, or its worktree.
state: AgentStateWhat it is doing.
detail: Option<String>SCV’s words for that state.
started_by: JobOriginWho started it.
conversation: Option<String>The conversation it runs a turn of, such as codex-2, once known.
run: Option<String>The delegated run serving it now, or that served it last.
worktree: Option<WorktreeRef>The worktree SCV created for it.
reviewed: boolA reviewed job (review), whose journal holds its rounds.
resumable: boolThe owner can resume it from the workbench.
resumed_as: Option<String>The job it was resumed as, <session>/<job>, once it was.
created_unix_seconds: u64When it was started.
updated_unix_seconds: u64When its record last changed.
Trait Implementations§
Source§impl Clone for WorkbenchJob
impl Clone for WorkbenchJob
Source§impl Debug for WorkbenchJob
impl Debug for WorkbenchJob
Source§impl<'de> Deserialize<'de> for WorkbenchJob
impl<'de> Deserialize<'de> for WorkbenchJob
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WorkbenchJob
Source§impl PartialEq for WorkbenchJob
impl PartialEq for WorkbenchJob
Source§impl Serialize for WorkbenchJob
impl Serialize for WorkbenchJob
impl StructuralPartialEq for WorkbenchJob
Auto Trait Implementations§
impl Freeze for WorkbenchJob
impl RefUnwindSafe for WorkbenchJob
impl Send for WorkbenchJob
impl Sync for WorkbenchJob
impl Unpin for WorkbenchJob
impl UnsafeUnpin for WorkbenchJob
impl UnwindSafe for WorkbenchJob
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