Commit ef6ac03
fix: remove redundant fast-path queue check, harden pending-writes path
- /silent-save: drop the lock-free fast-path queue check (lines removed).
The semaphore-protected re-check inside _write_sem is the correct gate;
the fast-path was redundant and misleading about thread safety.
- _pending_writes_path: replace `or "/tmp"` fallback with
`or os.path.expanduser("~")` — avoids world-writable /tmp if
palace_path is ever malformed.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>1 parent 161b3ef commit ef6ac03
1 file changed
Lines changed: 3 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
| 605 | + | |
605 | 606 | | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
| 607 | + | |
624 | 608 | | |
625 | 609 | | |
626 | 610 | | |
| |||
0 commit comments