Fetch integrations with callOpenCode instead of a dedicated backend route,
drop the unused provider credentials list query, label an existing key as
"Edit API key", and keep the loaded provider list when a background
refetch fails.
Make the shared package public and publish it from the existing release workflow alongside ocm-cli so the mobile app can install it from npm instead of a pinned git commit.
Returning every agent permission to Default now removes the permissions key, and clearing the last sampling value removes the request key, instead of leaving an empty array or an empty body in the config. Found while testing the Settings dialog in a browser.
ensureAssistantMode now checks whether opencode.json exists after taking the file lock, so a conversion that ran in between cannot leave it acting on a stale result.
The browser event stream again delivers a message frame that carries a typed event without the directory envelope, as it did before the client migration, instead of dropping it silently.
With allowJs enabled and no exclude list, tsc --noEmit included backend/dist/index.js after a build, which crashed the checker with a stack overflow. CI type-checks before building, so the exclusion keeps local runs consistent with CI.
Adds JSDoc comments to the functions this branch adds or changes, so the touched-code docstring coverage clears the review threshold. Comments only; no code, formatting or import changes.
The Assistant v1-to-v2 conversion now skips the write when OpenCode returns no converted assistant agent for a customized v1 one, or when the converted config fails validation, and it shares a file lock with ensureAssistantMode so the two never overwrite each other.
A new agent wildcard permission rule is inserted after the last catch-all * * rule instead of before it, so the catch-all cannot override it. The event subscription also counts each received event as stream activity.
A raw editor save now refetches the managed view like a structured save does, so the Settings lists never hand a stale agent, command or provider to the next entity patch when the event stream does not deliver config.updated.
The agent dialog no longer writes temperature 0.7 and top_p 1 on every save. The fields start empty with a Default placeholder when the agent stores no value; an empty field is omitted, or removed with a merge-patch null when the agent stored it, so the provider default applies.
Each agent permission select now offers Default, shown when the agent has no wildcard rule for the action. Choosing Allow, Ask or Deny writes an agent rule even when it matches the inherited effect; choosing Default removes the agent's wildcard rules so the global permission applies.
The local OpenCode proxy drops the browser's Cookie header, as the linked-server proxy already does.
PATCH /opencode-config refuses only patches that name an agent, command, provider or MCP server while a restart is pending; other keys still apply. The assistant API reference documents the new 409.
The agent dialog adds a wildcard permission rule only for an action whose effect the user changed, so saving an agent no longer overrides an inherited global ask or deny.