web: a failed read in the card picker and the roles read says so instead of showing nothing
tsk-ampersnvpg34 Done Maity Coder Claude 005
Follow-up from tsk-pzx7bdc3a3d1 (finding 38). On main, the card picker read in web/js/project-message.js and the roles read in web/js/board-edit.js treat a failed request like an empty answer, so the person sees an empty list. Show the failure as the other views do, with a retry, and keep an empty answer distinct. Smoke cases for both, with revert counter-checks.
Notes
Maity Test Team · Dec 6, 2026, 01:41 UTC
Tester result for #2437 at head 56223751 (562237514): PASS.
- Web smoke on the exact head:
smoke.jsrc=0 with 3824 ok and 0 FAIL ("all ok"). - Revert counter-check: I kept the new smoke cases and put back main's
web/js/project-message.js,web/js/board-edit.jsandweb/js/app.js(origin/main f0bb9797).smoke.jsran rc=1 with 3819 ok and 5 FAIL. Each new case fails exactly once, and nothing else fails:
- message: a failed read of the cards is said under the picker, the form still sends without a card: 1 FAIL
- message: a second failed read keeps the line with the new reason and Try again usable: 1 FAIL
- message: Try again reads the cards alone and offers them, the typed text kept: 1 FAIL
- new card: a failed read of the roles is said under Needs, Try again adds the project's roles, the choice kept: 1 FAIL
- card panel: a failed read of the roles is said under Needs, Try again adds the project's roles, and Save still sends: 1 FAIL
- The 2 guards pass on both head and revert: "message: a project with no open cards says nothing under the picker" and "needs: no project roles says nothing".
I restored the files afterwards and the worktree is clean.
- Web smoke on the exact head:
Maity Test Team · Dec 6, 2026, 02:41 UTC
Tester result for #2437 round 2 at head 04452a6e (04452a6e8f69c33eb4437701ed5567e85a137edc): head PASS, revert counter-check FAIL (the smoke aborts).
- Web smoke on the exact head:
smoke.jsrc=0 with 3827 ok and 0 FAIL ("all ok"). - Revert counter-check: I kept the new smoke cases and put back main's
web/js/project-message.js,web/js/board-edit.jsandweb/js/app.js(origin/main d7f08b17, which matches f0bb9797 for these files).smoke.jsrc=1 but aborted after 1083 ok:
- FAIL: message: a failed read of the cards is said under the picker, the form still sends without a card
- FAIL: message: a second failed read keeps the line with the new reason and Try again usable
- Then the process dies on an unhandled rejection,
ApiError: cards late down(503 unavailable), thrown fromfrLateat web/tools/smoke.js:7806, called at 7813, which is the new case "a failed Try again leaves the focus in the message the reader moved to". On main there is no Try again button, so the rejected read is never caught and Node exits. - Because of the abort, the remaining new cases, both guards ("message: a project with no open cards says nothing under the picker", "needs: no project roles says nothing") and the rest of the suite (~2700 cases) never ran. The counter-check therefore can't show "all new cases FAIL, nothing else, guards green".
- Suggested fix (a hunch for the coder to verify): the new focus cases should catch or await the rejected read, so that without the fix they report FAIL instead of crashing the run.
I restored the files afterwards and the worktree is clean. Logs: t2437r2-smoke-head.log and t2437r2-smoke-revert.log on my box.
- Web smoke on the exact head:
Maity Test Team · Dec 6, 2026, 04:03 UTC
Tester result, #2437 round 3 at 5af5f70b94d6be78e223ea546e6bad949484153a (order lotse 284304, correction 284332): PASS.
- Head smoke:
node tools/smoke.js .rc=0, 3838 ok, 0 FAIL, "all ok". - Revert check, with main 08eadb51's web/js/project-message.js, board-edit.js and app.js: rc=1, 3830 ok, 8 FAIL. The suite ran to the end with no throw, no ApiError and no unhandled rejection. Each of the 8 new cases fails once and nothing else fails:
- message: failed card read said under picker, form still sends
- message: second failed read keeps line, Try again usable
- message: failed Try again leaves focus in message
- message: failed Try again returns focus to button
- message: Try again reads cards alone, text kept
- message: successful Try again leaves focus, cards offered
- new card: failed roles read under Needs, Try again
- card panel: failed roles read under Needs, Save still sends
- Both empty-list guards stay green: "a project with no open cards says nothing under the picker" and "needs: no project roles says nothing".
- Files restored afterwards. Worktree is clean.
- Head smoke: