Quick Command shows the output right under the form #81

Merged
jared merged 1 commits from quick-inline-output into main 2026-11-23 15:53:36 -05:00
Owner

Closes #5. This is a UI change, so it needs your approval.

Single worker
Single worker, before and after

Several workers, one of which fails
Multi worker, before and after

Phone
Phone

What changes

After Execute, each worker gets a card showing Running…. When its result arrives, the card shows:

  • the status: Completed, Failed (exit N), Timed out, or Killed;
  • the duration;
  • stdout, then stderr in red;
  • a link to the full record in Executions.

With several workers you get one card per worker, under a "Sent to N workers" line.

How the result reaches the page

  • It comes from the live command_result event. The server's broadcast now includes duration.
  • A fast command's result can arrive before the request that started it returns. The page keeps such results briefly, so they aren't lost.
  • If the live connection misses the event, each card checks the execution every 5 s until it finishes.
  • Each stream shows up to 100,000 characters. Anything longer gets a note pointing to Executions for the rest.

Also fixed: both worker pickers showed in either mode

The single-worker dropdown and the multi-worker list were both visible all the time; you can see it in the before screenshots. web_template's .lt-form-group { display: flex } overrode the hidden attribute. Pulse's stylesheet now makes [hidden] always win.

Tests

  • Updated tests check the output inline:
    • the marker in stdout and "Completed";
    • exit 3 shows "Failed (exit 3)" with stderr;
    • three workers each show their own output.
  • New:
    • with the WebSocket blocked, the result still appears through polling;
    • only the chosen mode's worker picker is visible.
  • Locally: UI 44/44, integration 54/54, unit 149/149, lint and the innerHTML semgrep rule are clean.

🤖 Generated with Claude Code

Closes #5. **This is a UI change, so it needs your approval.** **Single worker** ![Single worker, before and after](https://code.lotusguild.org/LotusGuild/pulse/raw/branch/pr-assets/pr-81/qc-single.png) **Several workers**, one of which fails ![Multi worker, before and after](https://code.lotusguild.org/LotusGuild/pulse/raw/branch/pr-assets/pr-81/qc-multi.png) **Phone** <img src="https://code.lotusguild.org/LotusGuild/pulse/raw/branch/pr-assets/pr-81/phone-after.png" width="360" alt="Phone"> ## What changes After Execute, each worker gets a card showing **Running…**. When its result arrives, the card shows: - the status: Completed, Failed (exit N), Timed out, or Killed; - the duration; - stdout, then stderr in red; - a link to the full record in Executions. With several workers you get one card per worker, under a "Sent to N workers" line. ## How the result reaches the page - It comes from the live `command_result` event. The server's broadcast now includes `duration`. - A fast command's result can arrive before the request that started it returns. The page keeps such results briefly, so they aren't lost. - If the live connection misses the event, each card checks the execution every 5 s until it finishes. - Each stream shows up to 100,000 characters. Anything longer gets a note pointing to Executions for the rest. ## Also fixed: both worker pickers showed in either mode The single-worker dropdown and the multi-worker list were *both* visible all the time; you can see it in the before screenshots. `web_template`'s `.lt-form-group { display: flex }` overrode the `hidden` attribute. Pulse's stylesheet now makes `[hidden]` always win. ## Tests - **Updated tests check the output inline:** - the marker in stdout and "Completed"; - `exit 3` shows "Failed (exit 3)" with stderr; - three workers each show their own output. - **New:** - with the WebSocket blocked, the result still appears through polling; - only the chosen mode's worker picker is visible. - **Locally:** UI 44/44, integration 54/54, unit 149/149, lint and the `innerHTML` semgrep rule are clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jared added 1 commit 2026-11-23 15:29:16 -05:00
Quick Command shows the output right under the form (#5)
CI / Lint (eslint) (pull_request) Successful in 19s
CI / Test (jest) (pull_request) Successful in 30s
CI / Security (npm audit) (pull_request) Successful in 14s
CI / Integration (api) (pull_request) Successful in 2m35s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m52s
CI / UI (playwright) (pull_request) Successful in 2m31s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / UI screenshots (before/after) (pull_request) Successful in 2m35s
c01e3ead32
After Execute, each worker gets a card that says Running until its result
arrives, then shows the status (Completed, Failed (exit N), Timed out,
Killed), the duration, stdout, stderr in red, and a link to the full
record in Executions. Multi-worker runs get one card per worker.

- The result comes from the live command_result event; one that arrives
  before the POST returns is buffered. If the event is missed (e.g. the
  live connection dropped), the card polls the execution every 5 s.
- Each stream shows up to 100,000 characters, with a note pointing to
  Executions for the rest.
- The server's command_result broadcast now includes duration.
- [hidden] now always wins over component display rules: both worker
  pickers used to show in either mode because .lt-form-group sets
  display: flex.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jared merged commit 33a3f7c0b9 into main 2026-11-23 15:53:36 -05:00
jared deleted branch quick-inline-output 2026-11-23 15:53:45 -05:00
Sign in to join this conversation.