Closes#25. The error text in the form changes, so this needs your approval.
The fix
A definition with a bad goto or condition was rejected with only "Invalid workflow definition". The details were in a problems array that the UI never shows, because lt.api keeps only error.
The error now names the problems, for example Invalid workflow definition: step check: no step with id "notify". It lists up to five, then "and N more". problems is still returned for API clients.
The rest of #25 was already fixed by the UI rewrite
No native alert() or confirm() calls are left.
Errors from the server reach the user (e.message on every page).
A live-updates status indicator, plus a "reconnected" toast.
Modals trap focus and close on Escape.
Tests
Integration: the exact error message.
UI:
the server's reason shows in the Create form;
Escape closes the Run dialog.
Locally: integration 54/54, UI 40/40, unit 149/149, lint is clean.
Closes #25. **The error text in the form changes, so this needs your approval.**

## The fix
A definition with a bad `goto` or condition was rejected with only "Invalid workflow definition". The details were in a `problems` array that the UI never shows, because `lt.api` keeps only `error`.
The error now names the problems, for example `Invalid workflow definition: step check: no step with id "notify"`. It lists up to five, then "and N more". `problems` is still returned for API clients.
## The rest of #25 was already fixed by the UI rewrite
- No native `alert()` or `confirm()` calls are left.
- Errors from the server reach the user (`e.message` on every page).
- A live-updates status indicator, plus a "reconnected" toast.
- Modals trap focus and close on Escape.
## Tests
- Integration: the exact error message.
- UI:
- the server's reason shows in the Create form;
- Escape closes the Run dialog.
- Locally: integration 54/54, UI 40/40, unit 149/149, lint is clean.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
The server answered a bad goto or condition with "Invalid workflow
definition" and put the details in a problems array, which the UI never
shows (lt.api keeps only `error`). The error now names them, e.g.
"Invalid workflow definition: step check: no step with id "notify"" (up
to five, then "and N more"); problems stays for API clients.
The rest of #25 was already fixed by the UI rewrite; regression tests
now cover the server's reason in the form and Escape closing the Run
dialog.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jared
merged commit 424309e3c3 into main2026-11-23 14:06:48 -05:00
jared
deleted branch workflow-error-details2026-11-23 14:06:51 -05:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #25. The error text in the form changes, so this needs your approval.
The fix
A definition with a bad
gotoor condition was rejected with only "Invalid workflow definition". The details were in aproblemsarray that the UI never shows, becauselt.apikeeps onlyerror.The error now names the problems, for example
Invalid workflow definition: step check: no step with id "notify". It lists up to five, then "and N more".problemsis still returned for API clients.The rest of #25 was already fixed by the UI rewrite
alert()orconfirm()calls are left.e.messageon every page).Tests
🤖 Generated with Claude Code