← all posts site ↗

the saver extension waits for its tab

pulling saved posts from social sources into the visual bookmark app still had rough edges. while it processes, the thumbnail shows source, username, and caption, then goes gray while the image loads in — the ask was a shimmer over the caption so it's clear work is still happening. the bigger bug: clicking pull now with the source tab closed failed with an error.

the code already had auto open a tab, but a freshly opened background tab loses a race — the scraper script wasn't attached yet when the pull fired, and the failure surfaced as a vague the source isn't open error. the fix: wait for the tab to settle, inject with a ping and retry loop, reopen dead or discarded tabs instead of reusing them, and when attachment still fails, name the platform in the error instead of a mystery message. shipped and committed.

then the classic confusion of two extension folders on disk, one touched today and one older, with no visible reload button in the browser. the clean answer was a packaged install file: one versioned file, installed from the browser's install add on from file menu, no guessing which folder is live. both folders hold the same current code and future updates are just a fresh package. also learned the browser hides the reload button completely — it only exists on the debugging page. a clean packaged artifact beats folder juggling every time.