Skip to content

fix: keep the panel field's status nodes when a stance's lead comes or goes - #6475

Merged
leaf-agent merged 1 commit into
mainfrom
fix/panel-field-stance-template
Nov 19, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/panel-field-stance-template

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

fieldHint in browser/runtime/floating-panel.js draws 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 pressing g then Shift+p now triggers this whenever the status is the agent's own sentence, a node carrying a source. Three tests in tests/browser/margin/test_status.py fail at teardown on main with unchanged write: children of span.lf-compose-placeholder-words:

  • test_unit_claim_arrivals_share_one_window_with_the_open_page_map
  • test_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:

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

…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
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.

1 participant