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
Init-time fatal errors are not surfaced to the websocket #5782
When workflow execution initialization fails, the error is recorded into the execution metadata store but is never delivered to connected frontend clients — the user sees no error in the UI even though the execution failed to start.
Root cause
WorkflowService.initExecutionService wraps execution construction + start in a try/catch. The catch arm only calls errorHandler(e), which records a WorkflowFatalError into the execution metadata store. It does not push anything to errorSubject, the workflow-level websocket channel that connect() subscribers listen on.
For failures during new WorkflowExecutionService(...) — i.e. beforeexecutionService.onNext(execution) publishes the execution — no subscriber is ever attached to that execution's metadata store, so the recorded error stays invisible to the UI (it is only logged server-side).
init fails -> errorHandler records fatal error in metadata store
-> (no push to errorSubject)
-> frontend connect() subscriber receives nothing [X]
Expected
Init-time fatal errors should reach the frontend the same way other errors do:
It looks like the issue description doesn't quite follow our template yet:
The What happened? section is missing; please keep the template's headings.
The How to reproduce? section is missing; please keep the template's headings.
The Version/Branch section is missing; please keep the template's headings.
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
github-actions commentedon Jun 18, 2026
👋 Thanks for opening this issue, @aglinxinyuan!
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(execution-service): surface init-time fatal errors to the websock…
fix(execution-service): surface init-time fatal errors to the websock…