(
session_id: Option<String>,
thread_id: Option<String>,
raw: &Value,
)
| 165 | } |
| 166 | |
| 167 | fn extract_session_id( |
| 168 | session_id: Option<String>, |
| 169 | thread_id: Option<String>, |
| 170 | raw: &Value, |
| 171 | ) -> String { |
| 172 | session_id |
| 173 | .or(thread_id) |
| 174 | .or_else(|| value_string(raw, "conversation_id")) |
| 175 | .or_else(|| value_string(raw, "thread_id")) |
| 176 | .filter(|s| !s.is_empty()) |
| 177 | .unwrap_or_else(|| format!("codex-{}", uuid_short())) |
| 178 | } |
| 179 | |
| 180 | fn parse_json(&self, hook_type: HookType, input: &[u8]) -> AgentResult<Value> { |
| 181 | if input.is_empty() { |
nothing calls this directly
no test coverage detected