Repository navigation
A promise's On it or Still to do opens its to-do's row in On Claude - #6557
Conversation
A reply that promises work (`thread reply --todo`) says Still to do in its head while the to-do stands open. From On <agent>, the to-do's Discuss reached the thread, but nothing led back. The word is now a press, with a chevron after it as the leaf's menu rows that open a list end in one: it opens On <agent> at the to-do's row with its card open, landing the keys on the row's line and leaving a pointer's focus on the view, as the panel's lists do. It is a Tab stop, since only a promise still open draws one, and it wears the inline face among the head's quieter words, so the head keeps its spacing and height and a hovering pointer underlines it. The thread surfaces reach the panel through a late-bound `showTodo`, as a margin card's Open in panel does. The press clips its words (`overflow: clip`): the head's meta hides each child's overflow, which made the press a scroll box that focus scrolled 3px up. Max picked the press on the user's Leaf page, then asked whether a symbol would do; the chevron after the word is my pick from three sketches (underlined word, chevron, a symbol in place of the word), and the face is still his call. Adds the stills state `plan-card-promise`.
…s List Review found two ways the press missed its row. Turning On <agent>'s tab refits the list, and fitOpened dropped its request while the list had no room yet, so on a list longer than the view the card stayed below it. It now waits for the refit's paint. And the Summary layout draws no rows, so the card never opened; the press turns it to List, as the chooser would. Probed with 30 to-dos ahead of the promise's: the card ends at the view's foot by pointer and keys, in both layouts.
…evron Main brings #6538, under which the word reads On it while the to-do runs; the press carries the to-do's id through that reading. Max picked the underlined word over the chevron after it and over a symbol in its place, on the Leaf page where the three were sketched. The press now draws only the word, underlined at rest at the offset a hovered inline press takes.
leaf-agent
left a comment
There was a problem hiding this comment.
The description still describes the chevron build, but d5bb14a replaced it with the underlined word, which the merge commit says Max picked. It still says "a press with a chevron after it", labels the chevron column "(built)", says "the face is still Max's call", and the hero image's alt text names a chevron. The squash merge uses the PR body as main's commit message, so as it stands that message would describe a chevron the code no longer draws and leave a settled decision looking open. Updating the body to match the underline (and replacing the hero image if it shows the chevron) would fix this.
I found nothing in the code itself. The merge carries the to-do's id through #6538's On it reading correctly ({ word: todoWord(todo.running), todo: todo.id }). test_an_answer_says_what_it_leaves_while_that_stands and pnpm run check:browser pass at d5bb14a.
test_a_press_wears_its_role_s_face_alone refused surfaces.css's receipt ink on the promise's press, since only controls.css draws a press's face. That ink never reached the press anyway: the hint variant's `color: inherit` won, so the word stood in the head's ink, as the sketch Max picked shows. The receipt's grey now names only the plain word, and the underline at rest is the inline role's `data-lf-link` variant, declared in controls.css and control-faces.js. The promise card's stills are pixel-identical to the last commit in Chromium and Firefox.
#6594) `test_a_pass_for_a_change_to_the_rows_seats_them_as_a_whole_pass_would` fails in two ways after a comment is sent from a selection. This PR removes the more frequent one. `locator.click()` on the sent card's Resolve makes Chromium scroll the document by about 444 px, even though Resolve is already in view (y 844–872 in a 900 px window). The anchored card follows that scroll a frame or two later. Playwright clicks the old point, which by then is the page's heading or article, and that press dismisses the card. That matches the reported call log: "article intercepts pointer events", then "element is inert", then "not visible" until the timeout. The test now presses through `press_visible` (`tests/render_harness.py`), which exists for this Chromium behavior and clicks the control where it stands. Under `leaf-dev suite flake <node> --cpu-throttle 8`, main failed 7/18 and 5/16 copies with that signature. With this change, 3 of 18 copies still fail, all at `press_visible`'s `to_be_in_viewport`, and none show the scroll signature. Those three are the second failure mode, which #6591 keeps open. In some copies, the frame the comment box hands its card at Send (`floating-response.js`, read from the field's `getBoundingClientRect()`) reads the box 297 px below where it paints, with the same inline style, no running animation and the same `scrollY`. The card adopts that offset (`comment-placement.js`, `initialHold`) and stands wholly below the window until a later scroll re-places it. That's a runtime bug I haven't explained yet. The issue's lead, `fitOpened` in #6557, is ruled out. Restoring its old unconditional `fitting = false` still failed 4/18. Refs #6591 — automated triage Co-authored-by: leaf-agent <[email protected]>
A reply that promises work (
thread reply --todo) says Still to do in its head while the to-do stands open, and On it while it runs (#6538, which shows a promised to-do's work as it runs). From On Claude, the to-do's Discuss reached the thread, but nothing led back. That word is now a press, underlined as a link is, which opens On Claude at the to-do's row with its card open, so the user sees what Claude is doing about it and where it stands among the rest. Keys land on the row's line; a pointer leaves focus on the view, as the panel's other lists do. The press is a Tab stop (only an open promise draws one) and wears the inline face among the head's quieter words, so the head keeps its spacing and height. On Claude's Summary layout draws no rows, so the press turns it to List, as its chooser would; that choice is kept across pages.Requested by Max, who picked the press over keeping the word plain, and the underline over a chevron after the word and over a symbol in its place. Codex reviewed it and found two ways the card missed (a list longer than the view, and the Summary layout), both fixed. Tests: the promise-head browser test now presses the word by keys and by pointer (it fails without the card opening),
pnpm run check, and the new stills stateplan-card-promisein Firefox.