You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1e89eb7
Browse filesBrowse the repository at this point in the historyBrowse files
fix(queries): close six stale-data gaps found auditing the query layer
Each was verified against the mutation that changes the data and the keys that
expose it, not taken on report.
- Workspace usage/credits were invalidated nowhere in the app. Six sites already
refreshed subscriptionKeys after credits moved — post-run, post-wand, limit
edits, upgrades, top-ups — and none touched workspace usage, so the credits
chip and the run gate held their page-load values until a reload. Adds one
shared invalidateWorkspaceUsage and calls it from all six.
- Knowledge-base list doc counts went stale: document upload, delete, and bulk
delete invalidated only the detail key, though the list carries docCount.
- Plan switches that do not redirect refreshed only the host context, leaving
subscription and credit state showing the previous plan.
- The copilot tool-event handler invalidated a raw workflowKeys.list, which
covers only the active scope and skips the selector prefix; it now uses the
shared invalidateWorkflowLists like the other thirteen call sites.
- scheduleKeys.byId was a strict prefix of scheduleKeys.schedule, so the two
addressings aliased, and nothing invalidated byId. De-aliased and invalidated.
Not changed: the CSV preview key already folds in the file version and storage
key, so a content update addresses a different cache entry — version-in-key is
the mechanism there, not a missing invalidation.
Tests added for the usage and knowledge fixes, both proven to fail without them.
The other four live in files that cannot load in a git worktree (pre-existing
postcss resolution failure), so CI is where they first run.
0 commit comments