slop-approve: Show the progress of running requests #26

Open
opened 2026-11-29 18:41:54 +00:00 by slop-cannon · 0 comments

slop-approve only sees pending requests: once a request is approved, it disappears, and there's no way to follow its build, copies and activation from the terminal. The web app shows all of that (since #22).

Proposal

  • The broker: a new ApproveRequest::Running, answered with the running requests from runs::Runs: id, requester, summary and each phase's latest Progress.
  • slop-approve list: running requests below the pending ones, each with its status line (Run::status), like building: 37/120 derivations (firefox-147.0), 4m 10s.
  • Interactive mode: while waiting for requests, show running ones with the bars from slop (terminal::Board), updated every second; a new pending request takes over as now.
  • Afterwards (maybe): slop-approve show <id> for a finished request, with how each phase ended, as the web app's request page shows it.

Open questions

  • Is polling once a second enough, or should the approver socket get a stream of changes like the web app's /events?
  • Should --json cover the running list?

Other gaps compared with the web app

Not part of this issue, but for reference:

  • Requests that need a passkey can't be answered from slop-approve.
  • Notifications are only the terminal bell while interactive mode is open.
  • show prints details as one block; the web app folds sections.

slop-approve stays a separate binary (slop-broker approve), not a slop subcommand: slop is the agents' tool.

`slop-approve` only sees pending requests: once a request is approved, it disappears, and there's no way to follow its build, copies and activation from the terminal. The web app shows all of that (since #22). ## Proposal - **The broker:** a new `ApproveRequest::Running`, answered with the running requests from `runs::Runs`: id, requester, summary and each phase's latest `Progress`. - **`slop-approve list`:** running requests below the pending ones, each with its status line (`Run::status`), like `building: 37/120 derivations (firefox-147.0), 4m 10s`. - **Interactive mode:** while waiting for requests, show running ones with the bars from `slop` (`terminal::Board`), updated every second; a new pending request takes over as now. - **Afterwards (maybe):** `slop-approve show <id>` for a finished request, with how each phase ended, as the web app's request page shows it. ## Open questions - Is polling once a second enough, or should the approver socket get a stream of changes like the web app's `/events`? - Should `--json` cover the running list? ## Other gaps compared with the web app Not part of this issue, but for reference: - Requests that need a passkey can't be answered from `slop-approve`. - Notifications are only the terminal bell while interactive mode is open. - `show` prints details as one block; the web app folds sections. `slop-approve` stays a separate binary (`slop-broker approve`), not a `slop` subcommand: `slop` is the agents' tool.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dev/slop-broker#26