diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-30 00:35:31 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-30 00:35:53 +0300 |
| commit | c5c307597f623099a86d847d4d6abe3c81791292 (patch) | |
| tree | e4a17a9f5b6bbc7b065aa3da7f236b8729bb21fd /src/agent_resume.rs | |
| parent | 8b1d77acf6059e6688fb6a875c3176c95602b6c4 (diff) | |
fix: recover omp resume and blocked states
refs #879
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()) ); |
