Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

Refactor settings page normalization; add test

6 months ago

e9da784
Authored
mweinbach4/18/2026, 11:28:09 PM
Split settings page normalization into normalizeKnownSettingsPageId (pure mapping of known IDs) and normalizeSettingsPageId (applies desktop feature gating for remoteAccess). Update the z.preprocess schema to use the pure normalizer so schema coercion is independent of runtime feature flags. Adjust the desktop commands mock to accept overrides for getDesktopFeatureFlags and add a test to verify remoteAccess is preserved when a persisted override enables it.

Parent50259dc

2 files changed
  • apps/desktop/src/app/store.actions/bootstrap.ts+14−11
  • apps/desktop/test/bootstrap-cache.test.ts+25−1