Skip to content

Commit b7f4b58

Browse files
Fix setup app menu in createKernel by loading SetupPlugin first
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 236acff commit b7f4b58

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/studio/src/mocks/createKernel.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,14 @@ export async function createKernel(options: KernelOptions) {
8282
}
8383

8484
// Register services and plugins
85+
// SetupPlugin must load BEFORE other plugins that contribute navigation items
86+
// so that the setupNav service is available during their init() phase
87+
await kernel.use(new SetupPlugin());
8588
await kernel.use(new FeedServicePlugin());
8689
await kernel.use(new MetadataPlugin({ watch: false }));
8790
await kernel.use(new AIServicePlugin());
8891
await kernel.use(new AutomationServicePlugin());
8992
await kernel.use(new AnalyticsServicePlugin());
90-
await kernel.use(new SetupPlugin());
9193

9294
// Protocol service is registered automatically by ObjectQLPlugin.init()
9395
// via ObjectStackProtocolImplementation (which uses SchemaRegistry internally).

0 commit comments

Comments
 (0)