-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: CLI crashes when current working directory is deleted (uv_cwd error not handled) #73676
Copy link
Copy link
Closed
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingbug:behaviorIncorrect behavior without a crashIncorrect behavior without a crashclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingbug:behaviorIncorrect behavior without a crashIncorrect behavior without a crashclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.
Type
Fields
Priority
None yet
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
CLI exits with uv_cwd error when the current working directory is deleted, without handling or fallback.
Steps to reproduce
Create and enter a directory:
mkdir test-dir
cd test-dir
Delete the directory:
rm -rf ../test-dir
Run:
openclaw tui
Observe error
Expected behavior
CLI should handle missing working directory and provide a clear error or fallback.
Actual behavior
CLI exits with:
Error: ENOENT: no such file or directory, uv_cwd
OpenClaw version
2026.4.24
Operating system
macOS 15.4
Install method
npm global
Model
NOT_RELEVANT
Provider / routing chain
NOT_RELEVANT
Additional provider/model setup details
NOT_RELEVANT
Logs, screenshots, and evidence
Impact and severity
Affected: CLI users
Severity: Medium (command cannot run)
Frequency: Reproducible when cwd is removed
Consequence: Requires manual recovery (cd to another directory)
Additional information
This behavior also occurs with npm commands in the same environment.