Editor cannot select models in Agent Editor when storage-engine-config returns 403 #2753
Unanswered
xincew404-lang
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Editor cannot select models in Agent Editor when
storage-engine-configreturns 403Environment
Problem
An Owner user can create/edit an Agent and select Chat / ReRank models normally.
However, an Editor user can open the Agent editor, but the model selectors are empty and no model can be selected.
After promoting the same Editor user to Admin, the models immediately become selectable.
This appears to be related to an Admin-only integration configuration request failing during Agent Editor initialization.
Reproduction Steps
Configure several models in the workspace, for example:
qwen3:8bqwen3.5:27bqwen3.6:latestbge-reranker-v2-m3Log in with an Owner account.
Open:
Agents -> Create/Edit Agent -> Model ConfigurationThe Chat Model and ReRank Model dropdowns work normally.
Log out and log in with an Editor account.
Open the same Agent editor.
Open Model Configuration.
The model dropdown is empty and the Editor cannot select a model.
Important Network Comparison
Editor account
The models API succeeds:
The response contains valid active models, for example:
{ "id": "<model-id>", "tenant_id": 10000, "name": "qwen3:8b", "type": "KnowledgeQA", "source": "local", "status": "active" }The response also contains an active ReRank model:
{ "name": "bge-reranker-v2-m3", "type": "Rerank", "status": "active" }Therefore, the Editor account can successfully read the model list.
However, another request made while initializing the Agent editor fails:
Response:
{ "error": { "code": 1002, "details": null, "message": "integration configuration requires admin access" }, "success": false }After this error, the model dropdown remains empty even though
/api/v1/modelssuccessfully returned the models.Owner account
The same
storage-engine-configrequest succeeds:{ "data": { "default_provider": "minio", "local": { "path_prefix": "" }, "minio": { "mode": "remote" } }, "success": true }The Agent model selectors also work normally.
A/B Test
We tested the exact same user account with different roles.
As Editor
After promoting the same user to Admin
No model configuration was changed during this test.
Only the user's permission level was changed from Editor to Admin.
Expected Behavior
If an Editor is allowed to edit/build an Agent, an Admin-only integration configuration request should not prevent unrelated resources such as the model list from being initialized.
For example:
Alternatively, if selecting a model is intentionally restricted to Admin users, the UI should explicitly state that Admin permission is required instead of showing an empty model dropdown.
Actual Behavior
An Admin-only request fails with:
and the Agent Editor subsequently does not display models that were already successfully returned by
/api/v1/models.This makes the UI look as if no models are configured, even though the models API returned valid models.
Suspected Root Cause
Based on the v0.7.0 frontend initialization flow, Agent Editor dependencies appear to be loaded together.
A likely failure chain is:
In particular, if these dependencies are initialized through
Promise.all(), an expected403from an Admin-only storage configuration API may reject the whole initialization even though the models request has already succeeded.This would also explain why:
/api/v1/modelsstill returns valid models for Editor.Suggested Fix
Admin-only integration configuration failures should be isolated from Agent model initialization.
Possible approaches:
Catch
403 / code 1002from Admin-only configuration requests and treat them as unavailable optional capabilities.Load model / KB / integration dependencies independently.
Use failure isolation such as
Promise.allSettled()where appropriate.Do not block model rendering when unrelated Admin-only integration configuration cannot be read.
Conceptually:
Security Consideration
I do not think the appropriate fix is to grant Editor users access to sensitive storage configuration.
storage-engine-configcontains configuration structures for MinIO, S3, COS, OSS, TOS, OBS, etc., so requiring Admin permission for this API appears reasonable.The issue is that failure to access this Admin-only resource seems to unintentionally affect unrelated Agent model selection.
Summary
The issue can be reproduced consistently:
Please confirm whether an Organization Editor is expected to be able to select existing workspace models while editing an Agent.
If yes, this appears to be a frontend initialization / permission-degradation issue in v0.7.0.
All reactions