diff options
Diffstat (limited to 'src/agent_resume.rs')
| -rw-r--r-- | src/agent_resume.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/agent_resume.rs b/src/agent_resume.rs index a157f06a..5c1001cb 100644 --- a/src/agent_resume.rs +++ b/src/agent_resume.rs @@ -71,7 +71,7 @@ pub fn session_ref_from_report( pub fn normalize_session_start_source(value: Option<String>) -> Option<String> { match value.as_deref().map(str::trim) { - Some(source @ ("startup" | "resume" | "clear" | "compact" | "new")) => { + Some(source @ ("startup" | "resume" | "clear" | "compact" | "new" | "fork")) => { Some(source.to_string()) } _ => None, @@ -525,6 +525,10 @@ mod tests { Some("new".into()) ); assert_eq!( + normalize_session_start_source(Some("fork".into())), + Some("fork".into()) + ); + assert_eq!( normalize_session_start_source(Some(" resume ".into())), Some("resume".into()) ); |
