Recent desktop fixes (merged in #349) left a few fail-closed branches untested:
state.json still resets when the corrupt file cannot be renamed aside.apps/desktop/test/jsonrpc-single-connection.test.tsapps/desktop/test/workspace-directory-watcher.test.tsapps/desktop/test/launchable-files.test.tsapps/desktop/test/local-logs.test.tsapps/desktop/test/persistence-state-sanitization.test.tsapps/desktop/test/bootstrap-cache.test.tsThese paths decide whether a rename clobbers a newer title, a closed workspace keeps a filesystem watcher, a folder open is treated as executing a program, crash logs leak or vanish, corrupt desktop state is discarded, and one large chat blows the warm-start cache. The new tests fail if those guards are removed. No production behavior changed.
bun run test on the six touched files: 155 pass, 0 fail. Biome check on those files is clean.
Sign in to comment.
Update README.md
#125 mobile-fixes ← main
Updated 4 months ago
test: cover desktop rename, log, and cache fail-closed gates
#351 main ← cursor/missing-test-coverage-ab14
Updated 3 days ago