Skip to content

feat(web): show this machine's referee load in the thread details - #32

Draft
mayberuk wants to merge 1 commit into
mainfrom
rucode-referee-load
Draft

mayberuk wants to merge 1 commit into
mainfrom
rucode-referee-load

Conversation

@mayberuk

@mayberuk mayberuk commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Problem

Heavy checks on a machine are paced by the dispatch referee (dp referee, which decides which test and build jobs may run). RuCode shows nothing about it, so a thread that is waiting for its turn looks stuck.

Change

  • A server service reads dp referee status --json every 5 seconds, only while some client is watching, trims it to a small payload and streams it over a new referee.subscribe RPC.
  • The right panel's Machine load block gets a Referee row: free, busy, "No new jobs" in the referee's held mode, "Not on this Mac" on macOS, or unavailable.

It does not piggyback on subscribeServerConfig: every client keeps that stream open for every environment, which would poll dp whenever anyone is connected.

Scope

Requested by the maintainer of this fork.

Verification

  • Focused server and browser tests were added for the reader, the trimmed payload and the row.
  • The final check run (changed-file checks and the unit suite) passed on this tree, with one waived finding: the contract check does not count two exported names that the plan declares by reference.
  • A whole-branch review reported no critical, high or security findings.
  • Checked in the running app against a stand-in referee command (held mode, one job queued): the row matches its neighbours in T3 Chat light and dark and in Grove light and dark.
  • Not checked: the macOS label on a real Mac; the tooltip was not confirmed visually.
  • Screenshots are not attached: there is no command-line way to upload them to the pull request without publishing them somewhere else.

Open points (not blocking)

  • Medium: a failed read logs only "unreadable", with no timeout / exit code / schema detail (apps/server/src/referee/RefereeReader.ts).
  • Medium: the Mac path is covered by separate server and UI tests, not end to end.
  • A long command such as dp referee mode set auto is truncated in the panel; the shared command block was not restyled.
  • With an advisory referee the tooltip says "only on Linux" even on Linux.
  • The "queued behind N jobs" state is probably unreachable.
  • Some translations were shortened to keep the row on one line.

Built with Claude Code (Claude Sonnet and Opus models); review by Codex.

🤖 Generated with Claude Code

Streams a trimmed dp referee status only while a client watches, and shows it as a Referee row in the Machine load block.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant