BUG/ARCH: WebUI extension discovery ignores the active agent/project context #172
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/a0-symbolics#172
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
The backend extension resolver is designed to be context-aware:
helpers.extension.get_webui_extensions(agent, ...)andget_webui_extension_manifest(agent)both accept anAgent, andsubagents.get_paths(agent, ...)adds project/profile-specific roots when an agent is provided.But both WebUI discovery entry points currently hard-code
agent=None:helpers/ui_server.py::serve_index()embedsget_webui_extension_manifest(agent=None)intoruntimeInfo.webuiExtensions.api/load_webui_extensions.pycallsextension.get_webui_extensions(agent=None, ...)as its compatibility fallback.The frontend then prefers the bootstrap manifest whenever it exists.
manifestExtensionPaths()returns an empty list, notnull, for an extension point absent from that global manifest, so it will not even try the API fallback in that case.Result: profile/project-specific
extensions/webuiroots that the backend path model is capable of resolving cannot follow the selected chat/agent/project in the live WebUI.This is directly at odds with the goal that plugins/agents can fully modify the UI and will become more visible under the modern shell work (#23).
Direction
Make WebUI extension capability resolution explicitly scoped/versioned to the active UI context:
Do not fetch/execute arbitrary user paths from the browser; keep backend canonical path resolution.
Acceptance
x-extensionIDs remain compatible.Mirrored from
lost-rob0t/a0-symbolics#34via tracker sync.