Skip to content

Offer Resume writing at the panel field's end when a box keeps a draft - #6679

Merged
max-sixty merged 2 commits into
mainfrom
resume-writing-hint
Nov 21, 2026
Merged

max-sixty merged 2 commits into
mainfrom
resume-writing-hint

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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 writing g i, and a click on it brings the box back as g i does.

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. noticePress read keys only from activeCommandLabel, which finds none for a Go-to destination until g is pressed, so keysNow in floating-panel.js adds the destination's Go-to steps while g would open Go-to; Open latest's g V l now 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 in since-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:browser and pnpm run test:runtime pass.

This was written by Claude Code on behalf of max-sixty

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 leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Heads-up on overlap: open #6675 adds expect_panel_says(page, "Draft kept — g i resumes writing") in a new test. Whichever of the two lands second needs that line changed to "Draft kept". Once this one lands, #6675's test would fail on main.

@max-sixty
max-sixty merged commit df036cb into main Nov 21, 2026
6 checks passed
@max-sixty
max-sixty deleted the resume-writing-hint branch November 21, 2026 21:07
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]>
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.

2 participants