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

Function extract_session_id

atomic-agent/src/hooks/claude_code/parse.rs:130–134  ·  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

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

Calls 1

is_emptyMethod · 0.45