| … | … | @@ -0,0 +1,1909 @@ | |
| 505 | + | ||
| 506 | + | const turnOn = async (provider: ServerProvider) => { | |
| 507 | + | if (serverConfig === null) return; | |
| 508 | + | const instance = serverConfig.settings.providerInstances[provider.instanceId] ?? { | |
🟠 High onboarding/WelcomePage.tsx:508
Clicking “Turn on” leaves an agent disabled when instance.config.enabled is false: turnOn sets only the top-level enabled flag, and resolveProviderInstanceEnabled treats either false flag as disabled. Set config.enabled to true in the upsert as well.
🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
| 1 | In file @apps/web/src/components/onboarding/WelcomePage.tsx around line 508: |
| 2 | |
| 3 | Clicking “Turn on” leaves an agent disabled when `instance.config.enabled` is `false`: `turnOn` sets only the top-level `enabled` flag, and `resolveProviderInstanceEnabled` treats either false flag as disabled. Set `config.enabled` to `true` in the upsert as well. |
Note
🤖 Claude Opus 5.5 responding on behalf of Theo
Fixed in be2e8d4a8ef. Turn on now also sets config.enabled: true when older settings keep it false (turnedOnInstance in apps/web/src/onboarding/welcomePage.logic.ts). Its new case in welcomePage.logic.test.ts fails with the old upsert and passes with the fix.