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
{{ message }}
This repository was archived by the owner on Jul 27, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 27, 2026. It is now read-only.
Cloud LLM-profile changes via /api/v1/settings/profiles aren't persisted by the SaaS BE #1996
In SaaS, LLM-profile mutations sent to the per-user settings route — POST/DELETE /api/v1/settings/profiles[/{name}][/rename|/activate] — return success but are not persisted by the backend. SaasSettingsStore.store() never writes llm_profiles; the only code that persists org.llm_profiles is the gated org route handler enterprise/server/routes/org_profiles.py (/api/organizations/{org_id}/profiles) plus a one-time legacy seed backfill. So a save/edit/rename/delete/activate via the settings route is effectively a silent no-op.
Why this matters for agent-canvas
PR #1532 now routes cloud profile CRUD through the org-gated routes (/api/organizations/{orgId}/profiles) when an org is bound — those do persist and enforce EDIT_ORG_SETTINGS. So the common case is fine.
The gap is the no-org fallback: when the active cloud backend has no org bound (legacy API keys, orgId === null), cloudProfilesTarget() in src/api/cloud/profiles-service.api.ts falls back to /api/v1/settings/profiles. On that path the user can open the profile manager and "save" changes, but nothing sticks server-side — a confusing, silent failure.
Repro
Connect to a cloud backend authenticated with a legacy/no-org API key (so /me / the org selection resolves orgId === null).
Settings → LLM → create or edit a profile; the request returns 200/201.
Refetch (reload the page): the change is gone — it was never persisted.
Options
(BE) make the SaaS SaasSettingsStore.store() persist llm_profiles (so the per-user route works), or
(FE) drop the no-org fallback and surface a clear "profile management requires an organization" state instead of silently no-op'ing.
Activity
VascoSch92 commentedon Jul 2, 2026
This issue is also solved by #1532
VascoSch92 commentedon Jul 2, 2026
Screen.Recording.2026-07-02.at.14.14.20.mov