fix(miner-extension): clear stale discovery index URL from chrome.storage.sync - #5495
fix(miner-extension): clear stale discovery index URL from chrome.storage.sync#5495JSONbored wants to merge 1 commit into
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-12 23:40:38 UTC
⏸️ Suggested Action - Manual Review Concerns raised — review before merging
📋 Copy for AI agents — paste into your coding agent
Review context
Contributor next steps
Signal definitions
[BETA] Chat with GittensoryAsk Gittensory a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/gittensory-commands Visual preview
Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5495 +/- ##
==========================================
- Coverage 94.40% 94.36% -0.04%
==========================================
Files 550 550
Lines 44119 44119
Branches 14632 14632
==========================================
- Hits 41652 41635 -17
- Misses 1792 1809 +17
Partials 675 675
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
Closing as a regression, not a fix.
This PR's fix reintroduces the literal string "discoveryIndexUrl" into The underlying concern (stale keys left in |
Motivation
discoveryIndexUrlUI left previously-synced values orphaned inchrome.storage.sync, creating a privacy/data-retention issue because omitted keys are not deleted bystorage.set.Description
removeLegacyDiscoveryIndexUrl()toapps/gittensory-miner-extension/options.jsthat callschrome.storage.sync.remove("discoveryIndexUrl").watchedRepos, so any stalediscoveryIndexUrlis cleared on load and on save without reintroducing the UI field.test/unit/miner-extension-content.test.tsto seed a stalediscoveryIndexUrl, assert it is removed on load, re-seed it, and assert it is removed again on save, and add a smallflushPromises()helper for async timing.Testing
npx vitest run test/unit/miner-extension-content.test.ts, and all tests in that file passed.npm run build:miner, which succeeded.npm run test:ci, but the run surfaced unrelated repo/environment issues (cf-typegendrift and annpm auditregistry error) that prevented a clean full-gate verification in this environment.Codex Task