Skip to content

fix(builder): count a dataset in the benchmark's unit, whoever runs it - #325

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/locomo-questions
Nov 25, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/locomo-questions

Conversation

@harenome

@harenome harenome commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #297

What

  • LoCoMo counts questions, its Original setup conversations. With the setup alone, the default, the Dataset card and Review read "LoCoMo-10 · 1540 conversations". It has 1540 questions in 10 conversations.
  • The Dataset card and the Review Dataset row now use the benchmark's noun, whoever runs it.
  • The Limits step and the Scope row keep the setup's noun when only the setup runs.

Before and after

Before After
01-before-dataset 01-after-dataset
02-before-review 02-after-review

Verified

  • New tests fail on main (f23c69f): the Review row, and the Dataset card under Node.
  • Backend 3045, routes 578.
  • Images predate the rebase; browser not rechecked.

Risk

  • A benchmark whose setup counts in another unit shows the benchmark's unit on its dataset cards. LoCoMo is the only bundled one.
  • The Scope row still has no count when only a setup runs.
  • Undo: revert.

Agents

  • Claude Code, Opus 5.5: code, tests

harenome added a commit that referenced this pull request Nov 23, 2026
…, or with Escape (#346)

Closes #345

## What

The search box of the table and card toolkit had no clear control of its
own: Chromium drew its native cancel button, in its own colour and
skipped by Tab.

- The controls macro writes a clear button inside the field, with the
sprite's `i-x` icon and `aria-label="Clear search"`. It is hidden while
the field is empty.
- A click on it, or Escape in a non-empty field, empties the field,
sends the same `input` event as typing, and leaves the focus in the
field. Escape used to clear the field without that event, so a page's
own listener did not hear it.
- The browser's own cancel button is hidden on the toolkit's search, so
one control shows in every browser.
- In the builder, the button's focus ring keeps style.css's 1 px offset,
so it stays inside the search box's own ring rather than running into
it.

Every page that uses the toolkit's search gets it with no change of its
own: Runs (All runs), Benchmarks, Agents, Capabilities, Kits, Workspaces
(cards and table), Launches and Recipes when they list something, and
the builder's Benchmark and Agent steps. The search boxes of Settings,
Settings' providers, Data providers, the host picker and Compare's run
menu are built apart from the toolkit and are unchanged.

## Touches

templates and static (`app/templates/_tables.html`,
`app/static/tables.js`, `app/static/style.css`,
`app/static/builder/command-builder.css`) · tests

## Before and after

| Before | After |
| --- | --- |
| <img width="2006" height="118" alt="01-before-runs"
src="https://github.com/user-attachments/assets/7983a89c-294e-4f3d-be5c-eba668c8b217"
/> | <img width="2006" height="118" alt="01-after-runs"
src="https://github.com/user-attachments/assets/afad3242-fb40-4008-aa2b-cf08248220b6"
/> |
| <img width="2006" height="208" alt="02-before-benchmarks"
src="https://github.com/user-attachments/assets/b9160e99-2093-416f-ad91-4ccc8bc7f79d"
/> | <img width="2006" height="208" alt="02-after-benchmarks"
src="https://github.com/user-attachments/assets/677b8a07-ad26-42cd-9da2-edbf762de62c"
/> |
| <img width="764" height="208" alt="03-before-agents-phone"
src="https://github.com/user-attachments/assets/0b91f160-a801-48f9-aa2d-a7498cab1386"
/> | <img width="764" height="208" alt="03-after-agents-phone"
src="https://github.com/user-attachments/assets/77c8094f-e139-4482-8bbe-6199db16536a"
/> |

1. Runs, All runs, light, 1280 px, a query typed. Before: Chromium's own
blue cross. After: the app's cross in the field.
2. Benchmarks, dark, 1280 px, the same.
3. Agents, light, 390 px, the same.

## Verified

A Playwright check in Chromium, an empty profile with one job tree, on
Runs (All runs), Benchmarks, Agents, Capabilities, Kits, Workspaces
(cards and table) and the builder's Benchmark step, light and dark, at
1280 and 390 px: 32 cases. In each, typing a word from the first item
narrows the list and shows the button inside the field; a click empties
the field, shows every row or card again, hides the button and leaves
the focus in the field; Escape does the same. No page errors.

- `app/ui_tests/test_tables.py`: the button under Node on the toolkit's
stand-in DOM: hidden at load, shown while typing, and a click or Escape
empties the field, shows every row, hides the button, keeps the focus
and is heard by a page's own `input` listener. Fails on upstream/main.
- `app/ui_tests/test_routes.py`: Runs, Benchmarks, Agents, Kits and
Workspaces render the button, hidden. Fails on upstream/main.
- 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`: 624 tests in 64 modules,
OK.
- In the builder, light and dark: Tab from a field with text lands on
the button, whose ring sits inside the box's ring.
- Merges without conflict with #325, #326, #328, #329 and #330.

## Risk

- A page that empties the search itself and then filters through Clear
filters hides the button again; one that empties it without filtering
again would leave the button showing until the next keystroke. Runs is
the only page that empties it, and it filters again.
- Undone by a revert. Nothing on disk changes.
@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Nov 25, 2026
LoCoMo-10 holds 1540 questions in 10 conversations. With only the
Original setup chosen, the Dataset card and the Review Dataset row put
the setup's noun beside the dataset's question count: "1540
conversations". The dataset's count now always takes the benchmark's
noun. The Limits step and the Scope row keep the setup's noun.
@harenome
harenome force-pushed the fix/locomo-questions branch from 2636723 to 38de169 Compare November 25, 2026 10:45
@github-actions github-actions Bot added needs review Tests pass, no conflict, no verdict on its latest commit and removed needs review Tests pass, no conflict, no verdict on its latest commit labels Nov 25, 2026
@harenome
harenome merged commit be14020 into ThinkFlowLab:main Nov 25, 2026
4 checks passed
@harenome
harenome deleted the fix/locomo-questions branch November 25, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Tests pass, no conflict, no verdict on its latest commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run builder: LoCoMo's dataset says "1540 conversations", but LoCoMo-10 has 1540 questions in 10 conversations

1 participant