Skip to content

Commit 4c263ce

Browse files
committed
fix: provide valid mock config to fix GUI test failures
The added `!configResult.config` guard in ParallelListeners caused tests to bail early since MockIdeMessenger returned `config: undefined`.
1 parent ef04702 commit 4c263ce

1 file changed

Lines changed: 28 additions & 1 deletion

File tree

gui/src/context/MockIdeMessenger.ts

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,34 @@ const DEFAULT_MOCK_CORE_RESPONSES: MockResponses = {
8181
],
8282
profileId: "local",
8383
result: {
84-
config: undefined,
84+
config: {
85+
tools: [],
86+
slashCommands: [],
87+
contextProviders: [],
88+
mcpServerStatuses: [],
89+
usePlatform: true,
90+
modelsByRole: {
91+
chat: [],
92+
apply: [],
93+
edit: [],
94+
summarize: [],
95+
autocomplete: [],
96+
rerank: [],
97+
embed: [],
98+
subagent: [],
99+
},
100+
selectedModelByRole: {
101+
chat: null,
102+
apply: null,
103+
edit: null,
104+
summarize: null,
105+
autocomplete: null,
106+
rerank: null,
107+
embed: null,
108+
subagent: null,
109+
},
110+
rules: [],
111+
},
85112
errors: [],
86113
configLoadInterrupted: false,
87114
},

0 commit comments

Comments
 (0)