Repository navigation
Offer Resume writing at the panel field's end when a box keeps a draft - #6679
Merged
Merged
Conversation
When a comment box closes with unsent words, the panel's field said "Draft kept — g i resumes writing", with the key spelled out in the notice's words, while the field's right end, which #5630 made the place for a moment's next press and its key, kept showing Comment… c. The notice predates that press slot and was never moved onto it. The notice now says "Draft kept" and offers Resume writing as its press, so the field's end shows "Resume writing g i", and a click on it brings the box back as g i does. Like every notice that offers a press, it stands until the user's next input rather than for four seconds. The press needed keys for a Go-to destination: `noticePress` read only `activeCommandLabel`, which finds no key for `writing.resume` until `g` has opened the sequence. `keysNow` in floating-panel.js gives the command's own key, else its Go-to steps while `g` would open Go-to, and Open latest's `g V l` now reads its keys through it too. With the caret in another box, as after moving the comment box to another passage, the field shows "Draft kept" with no press at its end, as it shows none for any press while the user types. A refused send whose words came back to a box out of view still names "g i resumes writing" in its error, since an error offers no press. Tests: the composer test now brings the box back by the press and by g i, and the tests that read the notice expect "Draft kept".
leaf-agent
approved these changes
Nov 21, 2026
leaf-agent
added a commit
that referenced
this pull request
Nov 22, 2026
…ce (#6722) Three evals had drifted from the code they test. This brings each back in line. - **`control-legibility` couldn't start.** `views.py` exits when `actions.json` and `ACTIONS` in `browser/runtime/icon-paths.js` disagree. #6679 and #6687 added four presses to `ACTIONS` (`resume-writing`, `restore-edit`, `show-annotations`, `show-changes`) that `actions.json` didn't have. Each now has a line saying what pressing it does, taken from the notice that offers it (`drafts.js`, `thread/message-edit.js`, `annotation-layer.js`, `since-seen.js`). A Node comparison of the two key sets now comes back empty. - **Two rubrics failed pages that follow the shipped guidance.** `proposals-get-individual-decisions` (`recommendation-markers`) and `options-stay-words-for-wording` (`comparison-labels`) still asked for a "recommended small.lf-tag". Since #6289, the advice marker is the `recommended` attribute on the `lf-option`, which draws the badge; `authoring-on-me.md` and the `lf-option` registry entry both teach it. #6715's rename to `lf-tag` carried the stale requirement forward. Both rubrics now ask for `recommended`. This only corrects a fact, so there's no instruction scoring. The header of `proposals-get-individual-decisions` still calls compact recommendation markers a known failure, and that may have been this mismatch; the next run of the case will show whether it holds. - **`evals/README.md`** still described the JavaScript assertion that #6681 replaced. Complete authoring tasks now grade with the Python assertion `regrade.py:authoring`. No regression test is added. `views.py`'s own startup check is what reports `actions.json` drift, and a suite test would charge every new icon action for an experiment. `dev/tests/test_evals.py` passes and both case files parse. Co-authored-by: leaf-agent <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a comment box closes with unsent words, the panel's field said "Draft kept — g i resumes writing", spelling the key out in the notice's words while the field's right end, the place for a moment's next press and its key since #5630, still showed Comment…
c. The notice now says "Draft kept" and offers Resume writing as its press, so the field's end reads Resume writinggi, and a click on it brings the box back asg idoes.To weigh: like every notice that offers a press (Resolve's Next thread, Undo), "Draft kept" now stands until the user's next input rather than for four seconds.
noticePressread keys only fromactiveCommandLabel, which finds none for a Go-to destination untilgis pressed, sokeysNowinfloating-panel.jsadds the destination's Go-to steps whilegwould open Go-to; Open latest'sg V lnow reads its keys through it too. A refused send's error keeps "g i resumes writing" in its words, since an error offers no press. The since-seen notice ("3 changes since v12 — v shows them") still names its key in words, by an earlier choice recorded insince-seen.js.Max asked for this in a Claude Code session. Tests: the composer test brings the box back by the press and by
g i; the four tests that read the notice expect "Draft kept";pnpm run check:browserandpnpm run test:runtimepass.