{"record":{"id":"48cddd336d4cef1d","repo":"Budibase/budibase","slug":"escalate-missing-workspace-context","errorCode":null,"errorMessage":"escalate: missing workspace context","messagePattern":"escalate: missing workspace context","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/server/src/ai/tools/budibase/escalate.ts","lineNumber":93,"sourceCode":"      summary: z\n        .string()\n        .describe(\n          \"A one-line summary of what the user wants, written for the human \" +\n            \"reviewer, e.g. 'Jeff wants to request 1500 pens'\"\n        ),\n      reason: z.string().describe(\"Why this needs human review\"),\n    }),\n    execute: async ({ title, summary, reason }) => {\n      await authorizeAgentToolCall({\n        authorization: ESCALATE_TOOL_AUTHORIZATION,\n        input: { title, summary, reason },\n        executionContext,\n        principal: executionPrincipal,\n      })\n      const appId = context.getWorkspaceId()\n      const tenantId = context.getTenantId()\n      if (!appId) {\n        throw new Error(\"escalate: missing workspace context\")\n      }\n\n      const { escalationId } = await escalationProcessor.create({\n        source: EscalationSource.OPERATION,\n        appId,\n        tenantId,\n        message: summary,\n        title,\n        summary,\n        delay: delayMs,\n        recipients,\n        resolutionStrategy: resolutionStrategyBinding(\n          ResolutionStrategy.FIRST_RESPONSE\n        ),\n        agentId,\n        operationId,\n        requestId: getRequestId(),\n        context: {","sourceCodeStart":75,"sourceCodeEnd":111,"githubUrl":"https://github.com/Budibase/budibase/blob/a81a902e9a8fe55b467d106765f6638f12e35c49/packages/server/src/ai/tools/budibase/escalate.ts#L75-L111","documentation":"Error \"escalate: missing workspace context\" thrown in Budibase/budibase.","triggerScenarios":"Thrown at packages/server/src/ai/tools/budibase/escalate.ts:93 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a81a902e9a8fe55b467d106765f6638f12e35c49","analyzedAt":"2026-08-29T01:03:10.972Z","schemaVersion":2},"datasetVersion":"2026-08-29T02:17:18.158Z"}