We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6f06af commit 75bd933Copy full SHA for 75bd933
1 file changed
apps/sim/app/api/mothership/execute/route.ts
@@ -152,7 +152,14 @@ export const POST = withRouteHandler(async (req: NextRequest) => {
152
lastUserMessage,
153
workspaceId,
154
effectiveChatId
155
- ).catch(() => []),
+ ).catch((error) => {
156
+ // Degrade to a context-less run rather than failing the whole execution,
157
+ // but surface the failure so a broken mention is diagnosable.
158
+ reqLogger.warn('Failed to resolve agent contexts for execution', {
159
+ error: toError(error).message,
160
+ })
161
+ return []
162
+ }),
163
])
164
const requestPayload: Record<string, unknown> = {
165
messages,
0 commit comments