mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
## Summary - Add appearance mutation context so optimistic cache updates can be rolled back on failure. - Restore previous appearance settings, or remove the optimistic cache entry when no previous data exists. - Merge successful server responses back into the appearance cache while preserving request fields when responses are partial. ## Dependencies - Stacked on #25076 because the tests and generated types use the new appearance theme mode fields. ## Validation - `pnpm -C site exec vitest run --project=unit src/api/queries/users.test.ts` - `pnpm -C site lint:types` - Pre-commit hook passed on the branch commit.