Skip to content

fix: resolve Vite audit failure and blocked content script loading - #51

Merged
KazKozDev merged 1 commit into
mainfrom
codex/fix-extension-loading-and-audit
Oct 23, 2026
Merged

KazKozDev merged 1 commit into
mainfrom
codex/fix-extension-loading-and-audit

Conversation

@KazKozDev

Copy link
Copy Markdown
Owner

The nightly audit has failed since October 21 because Vite 8.3.2 is affected by newly disclosed security advisories. Upgrade Vite to 8.3.4 and run the audit on dependency and audit-workflow changes in pull requests and on main, while retaining the nightly schedule. This includes the Vite update proposed in #48.

Content scripts now build as standalone IIFEs instead of loading an extension module through dynamic import(), which was blocked on YouTube. Update programmatic injection to use the emitted standalone file and cover missing and existing receivers with tests.

Validation: the full scripts/check.sh gate passed on a clean main checkout (321 unit tests, fixture/security/bridge/MCP smoke checks, typecheck, lint, dead-code scan, shellcheck and production build); coverage thresholds passed; npm audit reports zero vulnerabilities. Browser smoke checks in Brave Nightly passed on live YouTube and strict-CSP fixtures, including iframe injection, snapshots and programmatic injection.

Repository inspection found no open issues or unresolved review threads on the five existing open dependency PRs; their check and CodeQL runs are successful. No open CodeQL or secret-scanning alerts were returned. Dependabot alerts are disabled in repository settings.

Unrelated work in the existing local checkout is excluded.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T13:28:28.063928Z 3b4e871 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3b4e87187f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread core/src/lib/messaging.ts
await chrome.scripting.executeScript({
target: { tabId },
files: ['assets/content-script.ts-loader.js'],
files: ['src/content/content-script.js'],

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Inject the emitted standalone bundle path

When the receiver is absent—such as on a tab left open across an extension install or reload—the standalone entry is emitted according to entryFileNames: 'assets/[name].js', making this bundle assets/content-script.js; the build does not create src/content/content-script.js. Consequently, chrome.scripting.executeScript rejects instead of restoring the content script, so subsequent tab operations fail. Reference the actual emitted filename (preferably via the bundler's IIFE/script import mechanism) rather than this source-like path.

Useful? React with 👍 / 👎.

@KazKozDev
KazKozDev merged commit 2feadf2 into main Oct 23, 2026
5 checks passed
@KazKozDev
KazKozDev deleted the codex/fix-extension-loading-and-audit branch October 23, 2026 13:29
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