feat(FN-3334): add auto-reload setting and fix worktree project resolution

Merged two features: FN-3334 introduces a new `autoReloadOnVersionChange` setting with a toggle in the Settings modal, version-check logic in the dashboard, and corresponding tests; FN-3335 fixes worktree project root resolution in `createFnAgent` and the skill resolver, with tests for both paths. S

Fusion-Task-Id: FN-3334
This commit is contained in:
Fusion
2026-05-03 16:26:47 -07:00
committed by gsxdsm
parent d7e2a3ec42
commit 8bc76ee52b
8 changed files with 216 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ export const DEFAULT_GLOBAL_SETTINGS = {
updateCheckEnabled: true,
fnBinaryCheckEnabled: true,
updateCheckFrequency: "daily",
autoReloadOnVersionChange: true,
showGitHubStarButton: true,
modelOnboardingComplete: undefined,
useClaudeCli: undefined,

View File

@@ -1365,6 +1365,11 @@ export interface GlobalSettings {
* - `weekly`: 7-day cache TTL
*/
updateCheckFrequency?: "manual" | "on-startup" | "daily" | "weekly";
/** When true (default), the dashboard automatically reloads when a new build
* version is detected via /version.json polling or service worker activation.
* Set to false to suppress automatic reloads — the user must manually
* refresh to pick up updates. */
autoReloadOnVersionChange?: boolean;
/** When true, indicates the user has completed the AI model onboarding flow
* (connected at least one provider and selected a default model). When
* false/undefined, the dashboard will auto-open the onboarding modal.