MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / extract_session_id

Function extract_session_id

atomic-agent/src/hooks/claude_code/parse.rs:133–137  ·  view source on GitHub ↗

Extract the session_id from parsed input, returning a default if missing.

(session_id: Option<String>)

Source from the content-addressed store, hash-verified

131
132/// Extract the session_id from parsed input, returning a default if missing.
133fn extract_session_id(session_id: Option<String>) -> String {
134 session_id
135 .filter(|s| !s.is_empty())
136 .unwrap_or_else(|| "unknown".to_string())
137}
138
139fn parse_session_start(
140 agent_name: &str,

Calls 1

is_emptyMethod · 0.45