Skip to content

Commit 236acff

Browse files
Fix setup app menu by loading SetupPlugin before contributor plugins
Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/5a66f9ed-ffcd-4354-bde2-95cadad7e3ca Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
1 parent c9ff513 commit 236acff

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/studio/server/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ async function ensureKernel(): Promise<ObjectKernel> {
104104
}), 'turso'));
105105
await kernel.use(new AppPlugin(studioConfig));
106106

107+
// SetupPlugin must load BEFORE other plugins that contribute navigation items
108+
// so that the setupNav service is available during their init() phase
109+
await kernel.use(new SetupPlugin());
110+
107111
// Auth plugin — uses better-auth for real authentication
108112
// Prefer VERCEL_PROJECT_PRODUCTION_URL (stable across deployments)
109113
// over VERCEL_URL (unique per deployment, causes origin mismatch).
@@ -129,7 +133,6 @@ async function ensureKernel(): Promise<ObjectKernel> {
129133
await kernel.use(new AIServicePlugin());
130134
await kernel.use(new AutomationServicePlugin());
131135
await kernel.use(new AnalyticsServicePlugin());
132-
await kernel.use(new SetupPlugin());
133136

134137
// Broker shim — bridges HttpDispatcher → ObjectQL engine
135138
(kernel as any).broker = createBrokerShim(kernel);

0 commit comments

Comments
 (0)