@devries-cameron20 / t3code-1 / commits / beab6886f4
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): import dependency-heavy Open VSX themes (#7642)

Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com> Co-authored-by: maria <254055478+maria-rcks@users.noreply.github.com>

t3-code[bot] committed Aug 20, 2026 at 03:11 UTC beab6886f45bf42906d0bd01aefe5dfe9e66a867
2 files changed +7 -2
apps/web/src/openVsxThemes.test.ts
+5
@@ -293,6 +293,11 @@ describe("Open VSX themes", () => {
293 it("downloads a verified VSIX, reads JSONC includes, and pairs contributed variants", async () => {
294 const zip = new JSZip();
295 zip.file("extension/.gitkeep", "");
296 + // Theme extensions sometimes publish their development dependencies too.
297 + // Those unused files should not prevent importing the small theme payload.
298 + for (let index = 0; index < 3_000; index += 1) {
299 + zip.file(`extension/node_modules/package-${index}.js`, "");
300 + }
301 zip.file(
302 "extension/themes/base.jsonc",
303 `{
apps/web/src/openVsxThemes.ts
+2 -2
@@ -17,8 +17,8 @@ const MAX_DETAIL_BYTES = 256 * 1024;
17 const MAX_MANIFEST_BYTES = 256 * 1024;
18 const SEARCH_REQUEST_TIMEOUT_MS = 10_000;
19 const MAX_THEME_BYTES = 256 * 1024;
20 -const MAX_ZIP_ENTRIES = 2_000;
21 -const MAX_UNCOMPRESSED_BYTES = 50 * 1024 * 1024;
20 +const MAX_ZIP_ENTRIES = 5_000;
21 +const MAX_UNCOMPRESSED_BYTES = 100 * 1024 * 1024;
22 const MAX_COMPRESSION_RATIO = 200;
23 const MAX_THEMES_PER_EXTENSION = 40;
24 const MAX_INCLUDE_DEPTH = 8;