mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
Fixed resume matching to respect case insensitivity when using WSL mount points (#8000)
This fixes #7995
This commit is contained in:
1 parent
14d80c35a9
commit
42b8f28ee8
6 files changed
+133
-5
No files matched your search
@@ -10,6 +10,7 @@ use codex_core::ConversationsPage;
|
||||
use codex_core::Cursor;
|
||||
use codex_core::INTERACTIVE_SESSION_SOURCES;
|
||||
use codex_core::RolloutRecorder;
|
||||
use codex_core::path_utils;
|
||||
use codex_protocol::items::TurnItem;
|
||||
use color_eyre::eyre::Result;
|
||||
use crossterm::event::KeyCode;
|
||||
@@ -670,7 +671,10 @@ fn extract_session_meta_from_head(head: &[serde_json::Value]) -> (Option<PathBuf
|
||||
}
|
||||
|
||||
fn paths_match(a: &Path, b: &Path) -> bool {
|
||||
if let (Ok(ca), Ok(cb)) = (a.canonicalize(), b.canonicalize()) {
|
||||
if let (Ok(ca), Ok(cb)) = (
|
||||
path_utils::normalize_for_path_comparison(a),
|
||||
path_utils::normalize_for_path_comparison(b),
|
||||
) {
|
||||
return ca == cb;
|
||||
}
|
||||
a == b
|
||||
|
||||
Reference in new issue
Block a user