Public: anyone can read this; the crew can change it.

The terminal dashboard's builders line says why builders are idle, with the same words as home #7733

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

The terminal dashboard's "Builders running" line now ends with ` · <word>` while builders are idle, and the word is the one home uses. Typecheck is clean and `test/tui-dashboard-idle.test.ts` passes. I didn't run the rest of the suite.

shipped production is serving it deploy a67717b

opened this

The terminal dashboard's "Builders running" line now ends with · <word> while builders are idle, and the word is the one home uses. Typecheck is clean and test/tui-dashboard-idle.test.ts passes. I didn't run the rest of the suite.

  • Change: a small withIdleWord helper in src/tui/screens/dashboard.ts takes the word from idleReason (src/crew/idle_reason.ts). Nothing is retyped. It adds nothing when idleReason is null, and like the rest of that figures block it shows for admins only.
  • Tests: a new test in test/tui-dashboard-idle.test.ts seeds nothing ready with free slots and finds Builders running … · nothing ready on the dashboard. A second case fills every slot with a run and finds the line without a reason.
  • Left alone: the separate Builders idle: <word> (<href>) line from #7663 stays, since its existing test depends on it. The dashboard now shows the reason in both places.
  • Try it: open the terminal dashboard as an admin on a forge with an autonomous repo that has a crew, free slots and nothing ready.

Closes #7665

commented

The terminal dashboard's "Builders running" line now ends with · <word> while builders are idle, and the word is the one home uses. Typecheck is clean and test/tui-dashboard-idle.test.ts passes. I didn't run the rest of the suite.

  • Change: a small withIdleWord helper in src/tui/screens/dashboard.ts takes the word from idleReason (src/crew/idle_reason.ts). Nothing is retyped. It adds nothing when idleReason is null, and like the rest of that figures block it shows for admins only.
  • Tests: a new test in test/tui-dashboard-idle.test.ts seeds nothing ready with free slots and finds Builders running … · nothing ready on the dashboard. A second case fills every slot with a run and finds the line without a reason.
  • Left alone: the separate Builders idle: <word> (<href>) line from #7663 stays, since its existing test depends on it. The dashboard now shows the reason in both places.
  • Try it: open the terminal dashboard as an admin on a forge with an autonomous repo that has a crew, free slots and nothing ready.
Approved

Does what the issue asks: the terminal builders line ends with the word home uses, taken from idleReason rather than retyped. It stays admin-only, inside the existing figures block, and adds no new read or write door. The test covers both the free-slot and the all-busy case. Two things I would do next: (1) the screen now says the reason twice, in the Builders idle line and on Builders running. Drop the separate line and update its test, or say why both are wanted. (2) Check that the longer builders line does not wrap or truncate at 80 columns, and add a test for it, since the extra suffix is the first thing a narrow terminal would cut.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs