Re-delivers the high-risk regression coverage from closed-unmerged PRs #294–#297 onto current main. No intentional production behavior changes beyond tiny existing testability seams (__internal / deferred-sync timeout hooks).
thread/list prune — live connected chats are not dropped from a stale list snapshot.setModel stale preferred-child reset — same-provider preferred child cleared when invalid for the new parent.newThread optimistic deferral — no optimistic bubble until attachment prep finishes; pre-resolved still early-optimistic; start-fail never queues IDs.ino===0 soft match.loadConfig preferred-child allowlist — invalid preferred child resets to first allowlisted ref while preserving mode/allowlist.shouldSendNotification and external sink routing/cleanup.fileChanged broadcasts.Also includes the #296 CI stabilizers: research-readiness desktop bridge install and mobile lockfile refresh for canary Bun.
apps/desktop/test/workspace-settings-sync.defaults.test.tsapps/desktop/test/new-chat-landing-abort.test.tsx (new)apps/desktop/test/workspace-startup.test.tsapps/desktop/test/control-socket.sessions.test.tsapps/desktop/test/research-readiness.test.tsxtest/coworkRuntime.test.tstest/session/agentSession.model.test.tstest/session.stream-pipeline.test.tstest/canvasDocumentPersistence.test.tstest/runtime.pi-rate-limit-retry.test.tstest/config/config.loadConfig.test.tstest/server.backpressure.test.tstest/jsonrpc.workspace-route.test.tsapps/desktop/src/app/store.actions/workspaceDefaults.ts, src/coworkRuntime/integrity.ts, src/server/canvasDocumentPersistence.tsThese paths sit on cold-start, chat creation, runtime trust, session list sync, model routing, streaming, and canvas persistence — failures look like data loss, ghost messages, silent settings drift, or trusting a mutated runtime. Prior daily coverage PRs that owned these gaps were closed without merge; this consolidates them with the known CI fixes.
bunx biome check on touched files: cleanbun run lint: cleanbun run typecheck: cleanbun run docs:check: OKbun run test: all 673 files passedCursor Agent and others added 16 commits ·
View commitsOnly the target repository owner can merge this pull request.
Sign in to comment.
Update README.md
#125 mobile-fixes ← main
Updated 2 months ago
test: re-deliver closed coverage gaps for regressions
#298 main ← cursor/missing-test-coverage-42e9
Updated 19 hours ago