Commit db5ab7b
fix(ui): remove assistant_mode backfill to preserve historical mode labels
The backfill loop was seeding from state.current_mode and stamping all
historical assistant messages without assistant_mode, causing every
message to show the current mode's name on restart rather than the mode
used at that point in time.
Removed lines 35-46 (backfill loop). Historical messages without
assistant_mode now display as generic 'ASSISTANT' via existing fallback
logic in _format_message_header (lines 299-304).
This preserves immutability of stored assistant_mode values and prevents
cross-session pollution.1 parent 9a59aaf commit db5ab7b
1 file changed
Lines changed: 0 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 35 | | |
49 | 36 | | |
50 | 37 | | |
| |||
0 commit comments