Skip to content
This repository was archived by the owner on Jul 27, 2026. It is now read-only.
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

Closed

Description

@VascoSch92

Summary

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

  1. Connect to a cloud backend authenticated with a legacy/no-org API key (so /me / the org selection resolves orgId === null).
  2. Settings → LLM → create or edit a profile; the request returns 200/201.
  3. 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.

(For org-bound backends nothing changes — the org routes already persist.)

References

Activity

  1. added
    enhancement
    on Jun 30, 2026
  2. self-assigned this
    on Jul 2, 2026
  3. VascoSch92 commented on Jul 2, 2026

    @VascoSch92
    MemberAuthor

    This issue is also solved by #1532

  4. VascoSch92 commented on Jul 2, 2026

    @VascoSch92
    MemberAuthor
    Screen.Recording.2026-07-02.at.14.14.20.mov
  5. transferred this issue fromOpenHands/OpenHandson Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions