Skip to content

fix(builder): show each recipe error once on Review, and no Ready beside a held Run - #323

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/review-errors-once
Nov 23, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/review-errors-once

Conversation

@harenome

@harenome harenome commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #298

What

On the Review step, a recipe error showed in the red box and again under Prerequisites, after "Missing something: Run waits". With a model key set, a standard recipe's errors showed a third time in place of Run. With no model key, Prerequisites said "Ready" above a disabled Run.

  • /new-run/prerequisites no longer returns a standard recipe's compile errors. It still asks no machine while the recipe has errors. The red box is the one place they are listed.
  • The Run box no longer repeats what the red box lists. A standard recipe still says "Compiling the recipe…" until the server answers. A Harbor recipe still shows its own Run messages, such as choosing a Harbor pin.
  • The Prerequisites head says "Ready" or "Missing something: Run waits" only when Run is shown and nothing else holds it. A Run held for a model key, or not shown because the recipe has errors, already says why below it. The machine rows and their marks are unchanged.

With a key and a valid recipe, the head, the rows and Run are as before.

Touches

static (app/static/builder/command-builder.js) · web (app/web/builder.py) · tests

Before and after

Before After
01-before-review-errors 01-after-review-errors
02-before-review-no-key 02-after-review-no-key
  1. Review, GSM8K with -3 in Number of problems and no model key. Before: the limit message in the red box and again under "Missing something: Run waits". After: once, in the red box; the Prerequisites head says nothing.
  2. Review, a valid GSM8K recipe and no model key. Before: "Ready" above a disabled Run. After: no status beside Prerequisites; the line below Run says the key is missing.

Verified

A Playwright check in Chromium, 1280 x 900, light theme, an empty profile, on upstream/main (38235bd0) and on this branch. Recipes were imported, Review opened, and Run never clicked. A dummy OPENAI_API_KEY was set for the cases with a key.

Acceptance upstream/main This branch
With recipe errors, each message shows once GSM8K -3 limit, no key: twice. With a key: three times (red box, Prerequisites, Run box). LoCoMo with no model, "Choose a model.": the same. A pinned Harbor recipe with errors, with a key: twice Once each, in the red box, in all five cases
With recipe errors, no "Missing something" Shown for GSM8K, LoCoMo and an unpinned Harbor recipe with errors. A pinned Harbor recipe with errors said "Ready" with no Run No status for any of them
With no model key, no "Ready" beside a disabled Run "Ready" beside a disabled Run No status; Run disabled with the key line below it
With a key and a valid recipe, as today GSM8K standard: "Ready", Run enabled. Harbor (terminal-bench, oracle, pinned; it needs no model): "Ready", Docker and uv rows, Run enabled The same

No page errors on either.

  • app/ui_tests/test_prerequisites_route.py: a standard recipe with errors gets no machines and no errors, and no machine is asked. Fails on upstream/main.
  • app/ui_tests/test_command_builder_providers.py: the Prerequisites head under Node, for a Run that is shown, held or absent, and while checking. Fails on upstream/main. A second test checks that a pinned Harbor recipe's Run messages are all listed by the red box, which the Run box relies on.
  • In a rootless podman python:3.12 container with Node:
    • python3 app/tests/parallel.py: 2779 tests in 170 modules, OK.
    • python3 app/tests/parallel.py app/ui_tests: 615 tests in 61 modules, OK.

Risk

  • When Run is held or absent, a machine that lacks something no longer says "Missing something" in the head. Its row still shows the cross and the fix.
  • The Run box of a recipe with errors can be empty. Run cannot start either way.
  • Undone by a revert. Nothing on disk changes.

…ide a held Run

Prerequisites no longer repeats the recipe's compile errors (the route asks no
machine and returns none), and the Run box no longer repeats what the red box
lists. The Prerequisites head says Ready or Missing something only beside a
Run that the machines alone hold; a Run held for a model key, or absent for
recipe errors, already says why.
@harenome
harenome merged commit f7c5b09 into ThinkFlowLab:main Nov 23, 2026
2 checks passed
@harenome
harenome deleted the fix/review-errors-once branch November 23, 2026 16:04
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.

Review: each recipe error shows twice, and Prerequisites says Ready while Run waits for a key

1 participant