Captures in this browser: sent captures keep their whole reading for ever, and each log entry rewrites the whole log #54
Labels
No labels
bug
documentation
enhancement
performance
security
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo-chromium#54
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What exists today
On the forge's
main(678114c):src/lib/store.js:75-118: a capture record carriesreadanddata, both the full posting as read from the page (description included), apart from the page HTML. When it is sent,outbox.js:83-92sets the state and drops the page (dropPage), but the record keepsreadanddatain full. Nothing removes sent records except the person, one by one or with Clear sent (src/captures.js:198-205). The lists use onlydata.title,data.company_name,data.locationandreviewUrlof a sent record (captures.js:95-96, 114,lib/review.js:57-59).store.list()(store.js:52-59) reads every record, sent ones included, on each badge recount (PR10), eachdropPageand eachunsentFor.storage(src/manifest.json:15), so the 10 MB quota applies; a full quota makes Keep fail with "storage full" (#16, fixed as a message, not prevented).src/lib/log.js:14-25add: reads the whole log (up toLIMIT = 1000entries), appends one, writes it all back. A delivery logs about three entries per capture (outbox.js:53, 70, 74, 93, 98, 105, 109), so each capture costs three read-serialise-write cycles of the full log.What would change
readanddatawith the shown fields only (title,company_name,location,url), as the page is already dropped. Postulo has the reading; the extension keeps the way back (reviewUrl).addof several entries at the end (log.addMany), keeping the "never throws" rule; single events elsewhere stay as they are.What it saves or protects
small (reliability): a sent capture shrinks to the few fields the lists show, so months of use cannot fill
storage.local(10 MB in Chromium withoutunlimitedStorage, and a full store refuses new captures, #16); a delivery of N captures writes the log once instead of about 3N times, each rewrite being up to 1,000 entries (on the order of 100 kB of JSON)Accessibility
must be checked: Captures in this browser and the popup's list keep showing a sent capture's title, company, place and review link, and Clear sent keeps working and announcing; guarded by the tests of
captures.jsandlib/review.jsDecided by the maintainer (2026-10-31)
slim sent captures now and remove them after 30 days; batch the log writes; keep the 1,000-entry limit
Decisions
Found by the efficiency and reliability audit of 2026-10-30 (finding PR11; index postulo/postulo#1108). Checked against
mainatdaee30b15(2026-10-30).