- When running the dev server, ALWAYS use
pnpm dev:worktreeinstead ofpnpm tauri:dev dev:worktreeauto-detects a free port and isolates app data per worktreetauri:devis only for quick single-worktree use with hardcoded port 5173- When setting up a new worktree: run
pnpm installbefore anything else - Never hardcode port 5173 — use the
MAGIA_DEV_PORTenv var pattern
- Feature flags are a local developer tool for toggling WIP features — see
docs/feature-flags.md - Gated by
developerMode— flags have no effect when Developer Mode is off - Register flags in
FEATURE_FLAG_REGISTRY(src/lib/feature-flags.ts), they auto-appear in Settings UI