Skip to content

A paused run reads as paused in the runs list and the palette, and its last step is short - #527

Merged
coderhelm[bot] merged 1 commit into
mainfrom
token-limit-paused-list
Dec 1, 2026
Merged

coderhelm[bot] merged 1 commit into
mainfrom
token-limit-paused-list

Conversation

@nambok

@nambok nambok commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

A run held by the team's monthly token limit now reads as paused in the runs list and the command palette, not as "Needs your answer". The run page says the full pause sentence once, in its outcome box. This follows #514, which merged before these changes, and pairs with CoderHelm/coderhelm-platform#937. That pull request adds pause to the runs list and the search results, and sends the new run.paused webhook event.

Changes

  • Runs list and command palette: a paused run shows "Paused, resumes <time in the viewer's zone>". A run waiting for room shows "Waiting for token room, starts ". The time is formatted in the viewer's own zone. Both read the new pause on RunSummary and on search results (runListLook). Runs that wait on a person keep their own words.
  • Run page: the last step reads only "Paused by the token limit", with its Waiting tag. The full sentence stays in the outcome box above it.
  • Types: RunListItem (a run with pause) is the runs list's type. openapi-fields.ts is regenerated from the platform pull request's head, so the type check holds pause to the gateway's RunSummary.
  • Webhooks docs: a section on run.needs_input and run.paused: which one needs a person, and which one goes on by itself.

Verification

  • e2e/token-limit-pauses.spec.ts has 10 tests, all passing. They add a list-row test (paused, waiting for room, and a person's wait), a command palette test, and a check that the run page shows the full pause sentence once while its last step says only "Paused by the token limit".
  • These specs also pass together: list-and-palette, run-steps, close-runs and webhooks (42 tests in all).
  • Dashboard: lint, typecheck, build and check:openapi pass.
  • Docs: unit tests, typecheck and build pass, and so does the webhooks page e2e test.
  • The after screenshots were taken again, dark theme, at 1440 and 390 widths.

…s last step is short

- The runs list and the command palette show "Paused, resumes <time in
  the viewer's zone>" (or "Waiting for token room, starts <time>") for a
  run held by the token limit, never "Needs your answer". They read the
  new pause on RunSummary and on search results.
- The run page's last step reads "Paused by the token limit" with its
  Waiting tag; the full pause sentence stays only in the outcome box.
- The webhooks docs explain run.paused next to run.needs_input.
- openapi-fields.ts regenerated from the platform pull request's head.

@coderhelm coderhelm Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved with notes 08d3c13 (merged)


/** The platform commit this was generated from. */
export const OPENAPI_REF = "4cf19f559b9e6e71206d42a6c5c6d02d2985dd57";
export const OPENAPI_REF = "c0206416f191a0c9bde29d3a6bb87622dd13a77a";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 FYI: Generated from an unmerged platform commit (question)

OPENAPI_REF points at the head of the open platform pull request. The regeneration also pulled in unrelated fields (own_review, RunOwnReview, UsageLimit.projected_at and warn_level). If that branch is squashed or force-pushed, the ref may stop resolving. It is worth checking that npm run openapi:fields is rerun against the merged platform commit once the paired pull request lands.

* the token limit reads "Paused, resumes <when, in the viewer's zone>", never
* "Needs your answer".
*/
export function runListLook(status: string | null | undefined, pause?: RunPause | null): RunLook {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 FYI: A parallel structure next to an existing one (scope, not verified)

dashboard/src/components/run-status.tsx adds runListLook next to the existing runStatusLook. Extend the existing one (add the entries or the parameter there) and remove the new one. If the ticket truly needs it, say why on a line Wider than the ticket: dashboard/src/components/run-status.tsx: <why>.

FYI, not a block: on the whole picture this is not a named correctness, security or data-loss problem to hold the merge on.

@coderhelm

coderhelm Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

🔴 Post-merge health check FAILED: the merge of 83e61fb has NEW failing checks that were not failing before the merge:

  • Audit (npm) (failure, started 2026-12-01T05:19:52Z)
    Failures that were already there before the merge were ignored. Rolling a deploy back needs the approval of whoever owns it: should 83e61fb be rolled back?
    Auto-merge
    The rest is in the pull request description.

@coderhelm
coderhelm Bot merged commit 83e61fb into main Dec 1, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ch-review CoderHelm reviews this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant