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 ffbf4347..e2fc47e9 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" | "fork")) => { + Some(source @ ("startup" | "resume" | "clear" | "compact" | "new" | "fork" | "select")) => { Some(source.to_string()) } _ => None, @@ -609,6 +609,10 @@ mod tests { Some("fork".into()) ); assert_eq!( + normalize_session_start_source(Some("select".into())), + Some("select".into()) + ); + assert_eq!( normalize_session_start_source(Some(" resume ".into())), Some("resume".into()) ); |
