* fix(provider): keep models resolvable during reloads and report quota errors clearly
Cloud catalog syncs triggered by any directory change called
load_models_from_db(), which emptied every tenant's runtime model cache
before reloading Workspaces one by one. Messages arriving in that window
could not resolve their configured model, and LocalAgent failed with
"No authorized model for local-agent".
- Stage the reload in a separate manager and swap it in atomically;
adopt unchanged providers instead of retiring and rebuilding them.
- Isolate per-Workspace load failures so one tenant cannot leave later
Workspaces unloaded.
- Lazily load a persisted model on a cache miss (another replica,
failed startup load, keys invalidated by a racing write).
- Classify New API quota errors (insufficient_user_quota,
pre_consume_token_quota_failed, HTTP 402, quota wording) as
quota_exceeded with a clear message in the Workspace language
(English by default) instead of "Permission denied"/"API error".
- Read upstream codes from the response body and exception chain,
and append safe machine codes to otherwise generic API errors.
- Report a missing API key explicitly instead of a raw OpenAIError.
- Keep HTTP status and body in the leased LiteLLM HTTP handler, which
previously turned every HTTP error into "Connection failed".
Refs LANG-318
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* fix(local-agent): accept bare model UUIDs and explain missing models
- parse_model_config accepts the bare model UUID shape the Host
selector already accepts, instead of treating it as "no model".
- Replace "No authorized model for local-agent" with an actionable
message pointing at the pipeline's model selection.
- Bump LocalAgent to 0.2.8.
Refs LANG-318
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
Unified Workspace and execution APIs for LangBot (#2639).
- Versioned Application API shared by HTTP, MCP, the Workspace assistant
and plugins, with one authorization and error contract.
- Execution API facade for every plugin and Runner action.
- Plugin installation permissions: manifest declarations, member
confirmation, capability ceilings, compatibility mode, revocation and
audit. Typed Workspace API in the plugin SDK.
- Processor tool configuration: workspace operations, event and bot tools,
default tool sets for new Agents and Pipelines, and sensitive-tool
warnings.
- Plugin permission picker in the WebUI; LocalAgent declares every
plugin-callable permission.
- Documentation for plugin permissions and the Workspace API in English,
Chinese and Japanese.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>