qwen-code/packages/cli
Shaojin Wen 8b0e8b8192
fix: add onCompromised handlers to proper-lockfile calls to prevent daemon crash (#8442)
* fix: add onCompromised handlers to proper-lockfile calls to prevent daemon crash

When a lock.lock directory is deleted while held (e.g. by another
process cleaning stale locks), proper-lockfile's updateLock timer
gets ENOENT on stat and calls the default onCompromised handler,
which throws and crashes the process.

Add onCompromised handlers that log instead of throw, consistent
with existing handlers in tasks.ts and mailbox.ts.

* fix: guard lock release after compromise and cover trusted folders (#8442)

* fix: guard mailbox/task lock release and cover compromise handlers with tests (#8442)

* test(core): add lock-compromise regression tests for mailbox and task guards (#8442)

* test: share lock-compromise simulation via test-utils helpers (#8442)

---------

Co-authored-by: 易良 <1204183885@qq.com>
Co-authored-by: qwen-code-dev-bot <qwen-code-dev@service.alibaba.com>
2026-08-05 03:05:28 +00:00
..
src fix: add onCompromised handlers to proper-lockfile calls to prevent daemon crash (#8442) 2026-08-05 03:05:28 +00:00
.gitignore feat(core): add opt-in built-in web_search backed by the DashScope Responses API (#7215) 2026-07-21 10:59:36 +00:00
index.ts fix(cli): add bootstrap fast paths (#6188) 2026-07-02 22:28:11 +00:00
package.json chore(release): v0.21.5 (#8505) 2026-08-04 02:30:44 +00:00
test-setup.ts feat(serve): persist dynamic workspace registrations (#6716) 2026-07-11 16:49:40 +00:00
tsconfig.json feat(serve): resolve and report the daemon memory budget (#8245) 2026-08-02 04:19:31 +00:00
vitest.config.ts feat(serve): add a required external tool guard provider (#8125) 2026-08-04 14:37:13 +00:00