feat(app): dismiss recorded local chat notices in the thread
Show dismissible notices for refused history reads, refused live watches and a running compaction. A dismissal lasts only while the recorded condition is unchanged; a syncToken gap hides pre-gap notices until fresh state arrives.
This commit is contained in:
@@ -137,11 +137,15 @@ String chatActivityState(JsonMap record) {
|
||||
return '';
|
||||
}
|
||||
|
||||
/// The web's `Compacting context…` phase words. Both this activity line and the
|
||||
/// local compaction notice use this one constant, so their wording cannot drift.
|
||||
const String chatCompactionPhaseLabel = 'Compacting context…';
|
||||
|
||||
/// The running-phase words shared verbatim with the web's `turnPhaseLabel`.
|
||||
/// The web clears a compaction on completion/failure, so there is no web copy
|
||||
/// for a terminal record: those keep the label the server recorded.
|
||||
const _chatActivityRunningWords = <String, String>{
|
||||
'compaction': 'Compacting context…',
|
||||
'compaction': chatCompactionPhaseLabel,
|
||||
'thinking': 'Thinking…',
|
||||
'tool': 'Running a tool…',
|
||||
'waiting': 'Waiting…',
|
||||
|
||||
Reference in New Issue
Block a user