Registry Mirror
Skip to content

Conversation

@bompus

@bompus bompus commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

Fork review only (not merged here); the same diff goes upstream for pingdotgg#21381.

Windows packages carry native files the app never loads, and each one costs a signing call: two staged copies of the resource monitor, node-pty's build/Release/conpty and third_party/conpty folders, and the 32-bit ffi-rs addon in x64 builds. This excludes them. node-pty loads its prebuilds on Windows and uses conpty.dll only with useConptyDll, which T3 does not set.

Checks: vp test run scripts/build-desktop-artifact.test.ts 79/79, lint, format and scripts typecheck pass. No packaged Windows build was run.


Summary by cubic

Windows packages stop shipping native binaries the app never loads, reducing the number of files that need signing. Fork review only; the same diff goes upstream.

  • Drops staged resource-monitor copies under resources and prod-resources; the packaged app serves it from the extra resource instead.
  • Removes node-pty's build/Release/conpty and third_party/conpty folders; the app loads prebuilds and never sets useConptyDll.
  • Excludes the ia32 @yuuang/ffi-rs-win32-ia32-msvc addon, which pnpm installs even in x64 stages.
  • Packaging tests cover the loaded and unused natives (79/79 pass, lint and format clean); no packaged Windows build was run.

Written for commit e3b2cc2. Summary will update on new commits.

View guided diff Turn on auto-fix

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Path: .coderabbit.config.ts
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4a61105c-3d8a-4c9a-9c57-21c551a4f330
📥 Commits

Reviewing files that changed from the base of the PR and between 07d38b8 and e3b2cc2.

📒 Files selected for processing: 2
  • scripts/build-desktop-artifact.test.ts
  • scripts/build-desktop-artifact.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

Desktop packaging now excludes staged resource-monitor files. Windows packaging also excludes unused native binaries from app files and the server ASAR. Tests check exclusion matching and the resulting unpacked contents.

Changes: Desktop packaging exclusions

Layer / File(s) Summary
Desktop and Windows file exclusions
scripts/build-desktop-artifact.ts, scripts/build-desktop-artifact.test.ts
Shared desktop exclusions omit resource-monitor files in both resource directories. Windows builds apply additional file exclusions for the ia32 ffi-rs package. Tests check the exclusion lists and matching paths.
Windows server ASAR exclusions
scripts/build-desktop-artifact.ts, scripts/build-desktop-artifact.test.ts
Server ASAR ignore globs exclude unused node-pty architecture and ConPTY paths, plus the ia32 ffi-rs package. Tests check retained and excluded binaries and verify unpacked output.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Bug fix

Suggested reviewers: juliusmarminge

Merge Risk: ⚪ Minimal · up to e3b2c

The exclusions appear to preserve the files used by the packaged app. No blocking issue was identified; a packaged Windows build remains untested.

Security architecture risk: 🔵 Low · up to e3b2c

The exclusions appear narrowly targeted, and the packaged resource-monitor location remains intact. No new privilege or trust-boundary expansion was identified. Residual uncertainty remains because the exact Windows native-loading behavior and a signed Windows package were not verified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — Exposure is bounded to artifacts produced with the changed packaging policy: shared resource-monitor exclusions affect desktop packages, while native dependency pruning affects Windows packages. The inspected diff does not expand tenant access, service permissions or signing authority.

Trust Boundaries and Controls

  • observed — The inspected application adapter loads node-pty and spawns terminals without requesting useConptyDll. This is counterevidence against removing an application-required alternate DLL path, but it does not establish the exact installed dependency’s filesystem behavior or verify signing of retained files.
Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description explains the problem, the exclusions, and the focused verification results. It does not provide the required Scope and approval information, such as a linked issue, maintainer approval… Add a Scope and approval section. Link the triaged issue or maintainer approval with the approval comment, or explain why this focused fix is an obvious bug fix that does not require prior approval. Keep the existing verification details an…
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the main change: preventing unused native binaries from shipping in Windows desktop packages.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the problem, the exclusions, and the focused verification results. It does not provide the required Scope and approval information, such as a linked issue, maintainer approval, or a justification for why this focused fix qualifies without prior approval.

Resolution

Add a Scope and approval section. Link the triaged issue or maintainer approval with the approval comment, or explain why this focused fix is an obvious bug fix that does not require prior approval. Keep the existing verification details and state that no packaged Windows build was run.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@bompus

bompus commented Oct 19, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
✅ Action performed

Full review finished.

@greptile-apps

greptile-apps Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Removes unused native files from desktop packages to reduce Windows signing work.

  • Windows packages keep only the native files their build uses.
  • Windows packages skip the staged resource-monitor copies.

No actionable issues were found. No tests or packaged Windows build were run during this review.

Reviews (1) · Last reviewed commit: "fix(desktop): Windows packages stop ship..." · Reviewed by Greptile

@bompus

bompus commented Oct 19, 2026

Copy link
Copy Markdown
Owner Author

cubic did not review this head (e3b2cc2: "AI review line limit reached"). The user said, for this pull request: "proceed without cubic for pingdotgg#21381". CodeRabbit reported "Review completed" with no actionable comments; Greptile found no issues.

@bompus

bompus commented Oct 19, 2026

Copy link
Copy Markdown
Owner Author

Review-only fork PR; the change is upstream as pingdotgg#21414.

@bompus bompus closed this Oct 19, 2026
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