-
[OPIK-6447] [FE] feat: gated local-dev wrapper for assistant sidebar (#6662)
发布于
2026-05-13 08:25:15 +00:00 - [NA] [FE] feat: add gated local-dev wrapper for assistant sidebar
Adds a committed
plugins/development/AssistantSidebar.tsxthat lazy-loads
the comet sidebar only when VITE_ASSISTANT_SIDEBAR_BASE_URL is set, so OSS
contributors get a no-op (no broken iframe, no extra chunk loaded) and
Opik devs get the sidebar wired to a local ollie-assist instance.Also removes the env-var leak from .env.development and adds
ollie-assist lifecycle management to scripts/dev-runner.sh (gated on
OLLIE_REPO_PATH), with reuse-detection so a manually-started ollie isn't
duplicated and won't be torn down by --stop.Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com
- [OPIK-6447] [FE] fix: gate plugin registration + unset stale sidebar env
Returning a component that renders null still registered a truthy
PluginsStore.AssistantSidebar, so callers like SideBarMenuItems
(showOlliePage = !!AssistantSidebar) and PageLayout
(showAssistantSidebar = !!AssistantSidebar) skipped the fallback and
leaked the Ollie menu item + sidebar slot for OSS contributors. Switch
toexport default undefinedwhen the env var is unset so
setupPlugins'if (plugin.default)check skips registration entirely.Also unset VITE_ASSISTANT_SIDEBAR_BASE_URL in start_frontend before the
healthy-branch export so a stale parent-shell value can't leak into the
FE process and silently re-enable the sidebar gate.Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com
- [OPIK-6447] [CI] chore: re-trigger CodeQL after upstream 500
Previous run hit
remote: Internal Server Error(500) three times in
the Checkout step'sgit fetchagainst github.com. Default-setup
CodeQL workflows cannot be re-run via API, so push an empty commit to
re-trigger the analysis.Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com
Co-authored-by: Claude Opus 4.7 noreply@anthropic.com
下载附件