Files
apes-sidebar/tests
ymac 8a43f13528 fix(native): draw a file tab's glyph from its address, not its record
The chip resolved a file tab's icon from the plugin-side record only. That
record is minted by the tab BODY's render — one commit AFTER the chip first
draws — and it is dropped again when the body unmounts, so every newly
activated file tab rendered its descriptor's generic glyph (for the editor
that is the folder artwork) while the inactive tabs, re-rendered later with
the record in place, showed the right file icon: selecting a tab flipped it
to the folder glyph, selecting the next one restored the previous tab's
icon. Measured on a real `dsh web` + the reporter's profile, chip inner
HTML: the selected file chip carried `<FileTypeIcon kind="folder">`, an
inactive one carried the host's file artwork.

The title registration now receives the same address-derived `paramsOf` the
body gets, and the chip reads `record.tab.path ?? paramsOf(info)?.path`:
the record still wins (an in-place switch stores the path there, and a
page kind's address cannot carry it), while a file address makes the glyph
independent of the record's lifetime.

Verified: tests/native-tab-chip-icon.spec.ts (new) is red against the
unfixed code on the address case and green with the fix; the existing
native-surface chip tests (19) and service (60) still pass.
2026-09-13 18:36:46 +08:00
..
2026-09-09 11:15:30 +08:00