Repository navigation
fix: keep the panel field's status nodes when a stance's lead comes or goes - #6475
Merged
Merged
Conversation
…r goes `fieldHint` drew the field's words in two Lit shapes: the status parts alone, or a template holding the stance's lead and the status parts. A stance coming or going switched between them, so Lit took out the status's span and put back an equal one, a write that changed nothing. Since #6448 made an armed Go-to map a stance, `g` followed by `Shift+p` does that on every page whose status is the agent's sentence, and the write watch failed three tests in tests/browser/margin/test_status.py. Both cases now render one template, with the lead left empty when there is none, so the status's nodes update in place and only the lead's span is written. What the field says is unchanged. Refs #6418
This was referenced Nov 19, 2026
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.
fieldHintinbrowser/runtime/floating-panel.jsdraws the panel field's empty-state words in one of two Lit shapes. One is the status parts alone. The other is a template that holds the stance's lead (lf-fp-standing) and then the status parts. A stance coming or going switches between the two, so Lit removes the status's span and inserts an equal one. The write watch reports that as an unchanged write. #6448 made an armed Go-to map a stance, so pressinggthenShift+pnow triggers this whenever the status is the agent's own sentence, a node carrying a source. Three tests intests/browser/margin/test_status.pyfail at teardown onmainwithunchanged write: children of span.lf-compose-placeholder-words:test_unit_claim_arrivals_share_one_window_with_the_open_page_maptest_each_seat_agrees_with_the_page_map_on_a_controls_receipt[margin]test_each_seat_agrees_with_the_page_map_on_a_controls_receipt[page]Both cases now render one template, with the lead left empty when there is none. The status's nodes update in place, and only the lead's span is added or removed. What the field says is unchanged, and #6448's stance is kept as it is.
Verification:
e6bc8a1ef) and onmain(9192a5041), and pass on Make an armed Go-to map a stance, so the panel's field names it and offers Close #6448's parent.tests/browser/navigation/test_go_to.py, a stance, status, mode and search selection from the floating-panel, agent-replies and gate tests (25 tests),pnpm run check:browserandpnpm run test:runtime.g, the field's words used to take out and put back the whole status. Now the only write is theIn Go-to ·lead.This settles one of the two causes in run 44445204827. The other,
test_an_acknowledgment_uses_status_until_an_active_claim_restores_a_disclosure, belongs to #6452 and its open fix #6455.Refs #6418 — automated triage