We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb8ecab commit 50fa076Copy full SHA for 50fa076
crates/atuin-desktop-runtime/src/context/resolution.rs
@@ -339,9 +339,9 @@ impl ContextResolver {
339
fn default_cwd() -> String {
340
// Check for PWD env var first (set by shell, reflects current directory)
341
// This allows CLI tools to inherit the user's current working directory
342
- // Falls back to home directory for desktop app / GUI contexts
+ // Skip "/" as it's not useful - macOS sets PWD="/" when launching GUI apps from Finder
343
if let Ok(pwd) = std::env::var("PWD") {
344
- if !pwd.is_empty() {
+ if !pwd.is_empty() && pwd != "/" {
345
return pwd;
346
}
347
0 commit comments