Repository navigation
fix(platform): invalidate home lists on project hints - #4162
Conversation
|
Independent review of PR #4162 at
Source review, cross-checked
Tests (mine)
Not run (disclosed): the live observations you asked for: Home without a reload across cascade or detach deletion, archive and restore, the same tab and a second session, and the single-task-delete timing control. They need a full local stack, and the fleet's disk rule allows no new install this occurrence. The mapping above is structural, since every list key is built by the same helper, and the unit test pins the invalidations. I'm accepting on that evidence, not on observed Home behaviour. LOW follow-up: the reviewer-key invalidation ( Merge: squash with |
What changed
This covers project deletion, archival, and restoration because all three writes emit the project hint consumed by Home.
Verification
bunx oxfmt --check services/platform/app/lib/backend/use-backend-hints.ts services/platform/app/lib/backend/use-backend-hints.test.tsx— passed.bunx oxlint --type-aware services/platform/app/lib/backend/use-backend-hints.ts services/platform/app/lib/backend/use-backend-hints.test.tsx— passed.file:preset and the shared schema fails withz.numberundefined before tests start.Finding → test
project; Home lists are keyed bytaskandchat_thread→use-backend-hints.test.tsxnow asserts both dependent prefixes are invalidated for a project hint.Closes #4053