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
{{ message }}
Repository navigation
Agent service compile requests are rejected with 401 because no auth token is sent #9078
Root cause:agent-service/src/api/compile-api.ts#compileWorkflowAsync POSTs to ${WORKFLOW_COMPILING_SERVICE_ENDPOINT}/api/compile with only Content-Type. Since #5199 / #5404, WorkflowCompilationResource (@RolesAllowed(REGULAR, ADMIN)) sits behind JwtAuthFilter, which returns 401 when no Bearer token is present. The agent client (added in #4495) was never updated.
Before: agent prepareStep -> POST /api/compile (no Authorization) -> 401 -> null -> agent sees no schemas / compile errors
After: agent prepareStep -> POST /api/compile (Bearer <delegate token>) -> 200 -> schemas + operatorErrors in context
The failure is silent: it is logged as compilation failed and the agent proceeds without output schemas.
Expected: the compile call forwards the delegating user's token, the same way workflow-api.ts (createAuthHeaders) and the execution tool already do.
It looks like the issue description doesn't quite follow our template yet:
This issue doesn't appear to use one of our templates (Bug, Feature, or Task). Please open it using a template so the required details are captured.
Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.
You can find the template prompts by editing the description, or see CONTRIBUTING.md for the full contribution flow.
Activity
sshiv012 commentedon Oct 21, 2026
/take
fix(agent-service): send the delegate user's token on compile requests
github-actions commentedon Oct 22, 2026
👋 Thanks for opening this issue, @sshiv012!
It looks like the issue description doesn't quite follow our template yet:
Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.
You can find the template prompts by editing the description, or see CONTRIBUTING.md for the full contribution flow.
fix(agent-service): send the delegate user's token on compile requests (