fix(app): keep attention dismissals in this client's own storage namespace

This commit is contained in:
2026-10-21 22:17:20 +01:00
parent 11440efd90
commit 224f8eec07
3 changed files with 9 additions and 6 deletions
@@ -21,10 +21,11 @@ enum AttentionKind {
final String wireName;
}
/// The local storage key shared with the browser client: one JSON array of
/// `{runId}:{kind}` strings. A stored dismissal itself never expires; the
/// surface's local-day window is applied when entries are read, not here.
const attentionStorageKey = 'pipelines.web.attention.v1';
/// This client's own storage key, namespaced like the rest of the app
/// (`pipelines.next.*`). The identity format matches the browser's, but a
/// dismissal set is deliberately not shared with the legacy web app: the two
/// clients must never rewrite each other's local state on a shared origin.
const attentionStorageKey = 'pipelines.next.attention.v1';
/// The run id a summary or pushed frame carries, or null when it is malformed.
/// The server ids are positive integers; anything else cannot identify an entry.