Commit 27ffd75
committed
fix: #140 isolate test cwd + env in punctuation_bearing_single_token test
Previously this test inherited the cargo test runner's CWD, which could contain
a stale .claw/settings.json with "permissionMode": "acceptEdits" written by
another test. The deprecated-field resolver then silently downgraded the
default permission mode to WorkspaceWrite, breaking the test's assertion.
Fix: wrap the assertion in with_current_dir() + env_lock() so the test runs in
an isolated temp directory with no stale config.
Full workspace test now passes except for pre-existing resume_latest flake
(unrelated to #140, environment-dependent, tracked separately).
Closes ROADMAP #140.1 parent 0cf8241 commit 27ffd75
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10061 | 10061 | | |
10062 | 10062 | | |
10063 | 10063 | | |
10064 | | - | |
| 10064 | + | |
| 10065 | + | |
| 10066 | + | |
| 10067 | + | |
| 10068 | + | |
| 10069 | + | |
| 10070 | + | |
| 10071 | + | |
10065 | 10072 | | |
10066 | | - | |
| 10073 | + | |
| 10074 | + | |
| 10075 | + | |
| 10076 | + | |
10067 | 10077 | | |
10068 | 10078 | | |
10069 | 10079 | | |
| |||
0 commit comments