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
fix(#187 follow-up): conditional settings fetch + match enabled convention
Two findings from Copilot's re-review of PR #248:
- **fetchSettings on every render is noisy**: dropping it into the
Promise.allSettled batch meant SSE-driven re-renders hit /api/settings
every tick once the user had any activity. Restructured: only fetch
when the cheap prerequisites (`!tourMode && recentDecisions.length === 0`)
already point at first-run. After the user gets any decision the fetch
doesn't happen at all.
- **Provider-enabled check disagreed with Settings UI**: settings.js
treats providers as enabled unless `enabled === false` (`p.enabled !==
false`); my dashboard code only counted truthy values. An existing
user with providers stored without an explicit `enabled` field would
have been incorrectly shown the first-run banner. Aligned to
`p?.enabled !== false`.
Web build clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments