You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_writing_reaches_the_field_however_the_panel_stands: g i resumes writing while Go-to's stance still shuts the field #6513
Since #6461, Resume writing through Go-to (g then i) raises "That writing place is unavailable", even though the reply field does get focus and its draft. test_writing_reaches_the_field_however_the_panel_stands catches it at test_render_floating_panel.py:6011 (get_by_text("That writing place is unavailable") count 1, expected 0).
Runs: first failed in run 44490813822 (7d301aa7a), the first push run to include #6461. It fails locally on #6461 (b579db687) and on current main (2cd1bda49), and passes on #6461's parent (e81413d38).
Mechanism.#6461 made a stance shut the panel's field. Go-to's armed sequence is a stance. The field's closed is stanceStands, which reads statusContextReading().stance, a copy that paintStatusContext refreshes only in the repaint frame (repaint.js). The paint is also the one writer of the field's readOnly (input.js:638). When i completes the sequence, the destination's runKey calls setGoToSequence(false) and then runs writing.resume in the same task (go-to-sequence.js:655). The repaint hasn't run yet, so when resumeAt checks the field (drafts.js:1299, !field.readOnly), it still reads as shut, and the command raises the error.
A probe in resumeAt just before that check logged {readOnly: true, takesNoWords: true}. Two frames later it logged {readOnly: false, takesNoWords: false}.
Where a fix could go.floating-panel.js:1234-1236 states the decision to read the frame's copy "so the field and the row's ✕ change in the same paint". So the fix should keep that for the paint and let same-task behavior see a stance that has already ended. Two candidates: closed (behavior) reads the live stance (innermostStance()) while the painted still keeps the frame's copy, and resumeAt asks takesNoWords rather than the painted readOnly; or resumeAt waits for the repaint before judging the box. Any other command that a Go-to destination runs and that writes into the field can hit the same lag.
I've opened #6514 with the first candidate from the issue. The field's closed now reads the live stance from the dispatcher, while the painted still and the writing posture keep the repaint frame's copy. resumeAt now asks takesNoWords rather than the painted readOnly, so a command that runs in the task that ends Go-to sees the field open. test_writing_reaches_the_field_however_the_panel_stands fails on main and passes on the branch, and the runtime tests and check:browser pass too. One side effect: Resume writing now reaches a box with an image upload in flight, which readOnly used to refuse. The PR's CI and landing are with tend-land now.
Activity
leaf-agent commentedon Nov 19, 2026
I've opened #6514 with the first candidate from the issue. The field's
closednow reads the live stance from the dispatcher, while the paintedstilland the writing posture keep the repaint frame's copy.resumeAtnow askstakesNoWordsrather than the paintedreadOnly, so a command that runs in the task that ends Go-to sees the field open.test_writing_reaches_the_field_however_the_panel_standsfails onmainand passes on the branch, and the runtime tests andcheck:browserpass too. One side effect: Resume writing now reaches a box with an image upload in flight, whichreadOnlyused to refuse. The PR's CI and landing are with tend-land now.