You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -19,12 +20,21 @@ export async function ensureWorkflowAccess(
19
20
action,
20
21
})
21
22
23
+
// Classified, not bare Errors: the copilot error projection passes a
24
+
// classified message through to the model verbatim, while an unclassified
25
+
// throw collapses into the generic "system error, please retry".
22
26
if(!result.workflow){
23
-
thrownewError(`Workflow ${workflowId} not found`)
27
+
thrownewOrchestrationError(
28
+
'not_found',
29
+
`Workflow not found: ${workflowId}. Pass the workflow's canonical id (copy it from workflows/**/meta.json or the tool result that created it) — a workflow name or @-mention is not an id.`
? `Workflow not found: ${workflowId}. Pass the workflow's canonical id (copy it from workflows/**/meta.json or the tool result that created it) — a workflow name or @-mention is not an id.`
0 commit comments