Skip to content

fix: store the popup results per tab in session storage#25

Merged
Linkid merged 1 commit into
mainfrom
fix-storage
Jul 5, 2026
Merged

fix: store the popup results per tab in session storage#25
Linkid merged 1 commit into
mainfrom
fix-storage

Conversation

@Linkid

@Linkid Linkid commented Jul 5, 2026

Copy link
Copy Markdown
Owner

The single global { tabId, prs } slot in storage.local is replaced by prs:${tabId} key in storage.session. Then, results are stored per tab, two forge tabs can't clobber each other, and the session area clears itself when the browser closes.
The stored value is { prs } on success or { error } on failure. This also lets the popup tell "failed" apart from "still loading". With this fix, the popup does not read all of storage.

The single global `{ tabId, prs }` slot in `storage.local` is replaced
by `prs:${tabId}` key in `storage.session`. Then, results are stored per
tab, two forge tabs can't clobber each other, and the session area
clears itself when the browser closes.
The stored value is `{ prs }` on success or `{ error }` on failure. This
also lets the popup tell "failed" apart from "still loading".
With this fix, the popup does not read all of storage.
@Linkid Linkid merged commit 6163201 into main Jul 5, 2026
2 checks passed
@Linkid Linkid deleted the fix-storage branch July 5, 2026 13:10
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