Skip to content

chore(tui): make the render fingerprint exhaustive over its inputs - #131

Merged
lance0 merged 1 commit into
masterfrom
chore/exhaustive-render-fingerprint
Aug 24, 2026
Merged

lance0 merged 1 commit into
masterfrom
chore/exhaustive-render-fingerprint

Conversation

@lance0

@lance0 lance0 commented Aug 24, 2026

Copy link
Copy Markdown
Owner

Follow-up to #129. render_fingerprint now destructures every struct it reads (UiState, SettingsState, TargetInputState, ReplayState, CacheStatus, TargetInfo) without .., so adding a field to any of them fails to compile here until it is either fingerprinted or explicitly bound to _.

This closes the one maintenance gap left by the dirty-skip: the session side is already compiler-enforced via the SessionLock write guard; the UI side was a hand-maintained field list where a new render-relevant field would have rendered up to 2s late. No behaviour change.

render_fingerprint now destructures UiState, SettingsState,
TargetInputState, ReplayState, CacheStatus and TargetInfo without `..`,
so adding a field to any of them is a compile error in this function
until it is fingerprinted or explicitly bound to `_`. This gives the
UI side the same guarantee the SessionLock write guard gives the
session side: new render-relevant state cannot silently render late.
No behaviour change.
@lance0
lance0 merged commit d8bd8bc into master Aug 24, 2026
5 checks passed
@lance0
lance0 deleted the chore/exhaustive-render-fingerprint branch August 24, 2026 16:00
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