Using --resume with --name should still accept session IDs (#4937)

thank you!
This commit is contained in:
Will Pfleger
2025-10-01 22:18:46 -04:00
committed by GitHub
parent 345cc65bd3
commit 52e4308564
3 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ async fn get_session_id(identifier: Identifier) -> Result<String> {
sessions
.into_iter()
.find(|s| s.description == name)
.find(|s| s.id == name || s.description.contains(&name))
.map(|s| s.id)
.ok_or_else(|| anyhow::anyhow!("No session found with name '{}'", name))
} else if let Some(path) = identifier.path {