pub struct AttentionEntry {
pub agent: String,
pub project: String,
pub cwd: String,
pub event: String,
pub tmux_pane: String,
pub ts: u64,
pub message: Option<String>,
pub pid: Option<u32>,
}Expand description
One entry stored per active agent session that is waiting on user attention.
Serialized as compact JSON to one file per session (keyed by session_id) under
${XDG_RUNTIME_DIR:-/tmp}/agent-status/. The field shape is wire-compatible with
the bash version of this tool.
Fields§
§agent: StringStable identifier of the agent that wrote this entry (e.g. "claude-code").
project: StringBasename of the project directory (typically the cwd’s last component).
cwd: StringAbsolute path of the project directory at the time the hook fired.
event: StringHook event label, for example notify or done.
tmux_pane: StringTmux pane id (such as %17), or empty if the hook fired outside tmux.
ts: u64Unix timestamp (seconds) when the entry was written.
message: Option<String>Optional last-message text from the agent (e.g. Claude Code Notification’s message
field). Absent in the JSON when None; absent on entries written by older binaries.
pid: Option<u32>PID of the agent process at the time the hook fired (typically getppid()
from inside the hook script — the claude/opencode/pi binary). Used to clean
up state files whose owning process has exited without firing its
session-end hook. Absent in entries written by older binaries; entries
without a pid are never auto-pruned.
Trait Implementations§
Source§impl Clone for AttentionEntry
impl Clone for AttentionEntry
Source§fn clone(&self) -> AttentionEntry
fn clone(&self) -> AttentionEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AttentionEntry
impl Debug for AttentionEntry
Source§impl<'de> Deserialize<'de> for AttentionEntry
impl<'de> Deserialize<'de> for AttentionEntry
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>,
Source§impl PartialEq for AttentionEntry
impl PartialEq for AttentionEntry
Source§fn eq(&self, other: &AttentionEntry) -> bool
fn eq(&self, other: &AttentionEntry) -> bool
self and other values to be equal, and is used by ==.