fix(desktop): stop generating declarations during bundling - #10679
Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a narrowly scoped desktop build cleanup that prevents declaration artifacts from being emitted while leaving executable bundles, source maps, and the separate typecheck unchanged. Its impact is confined to build output rather than product runtime behavior. You can add or adjust custom eligibility rules. Learn more. |
There was a problem hiding this comment.
All clear
Posted via Macroscope — Effect Service Conventions
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe desktop Vite configuration disables TypeScript declaration generation for the main Electron bundle and three preload bundles. ChangesElectron build configuration
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to Desktop bundles will stop emitting TypeScript declaration files while retaining the main and preload runtime bundles. The change is ready to merge. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
## What's Changed * fix(web): open proactive panels when entering threads by @maria-rcks in pingdotgg/t3code#10610 * fix(native): wait for the KDE feedback test listener by @juliusmarminge in pingdotgg/t3code#10645 * fix(desktop): resolve local media linked from remote threads by @maria-rcks in pingdotgg/t3code#10619 * fix(web): add bottom padding to project actions header by @flamboh in pingdotgg/t3code#10634 * fix(web): update machines together in auto balance by @maria-rcks in pingdotgg/t3code#10596 * fix(preview): transfer recordings to the agent environment by @maria-rcks in pingdotgg/t3code#10572 * fix(web): navigate markdown images as galleries by @maria-rcks in pingdotgg/t3code#10625 * chore: upgrade to TypeScript 7.0.2 by @juliusmarminge in pingdotgg/t3code#10663 * fix: hide email-bearing account labels in usage limits by @juliusmarminge in pingdotgg/t3code#10668 * fix(web): keep scroll-to-end button close to composer by @Bil0000 in pingdotgg/t3code#10543 * chore(deps): upgrade Effect to rc.112 and Alchemy to beta.76 by @juliusmarminge in pingdotgg/t3code#10652 * chore(refs): sync Effect reference to rc.112 by @juliusmarminge in pingdotgg/t3code#10653 * chore(refs): sync Alchemy reference to beta.76 by @juliusmarminge in pingdotgg/t3code#10654 * fix: generate thread titles with the selected model across connections by @Bil0000 in pingdotgg/t3code#10526 * fix(desktop): enable context menus in the browser by @juliusmarminge in pingdotgg/t3code#10670 * fix(desktop): stop generating declarations during bundling by @juliusmarminge in pingdotgg/t3code#10679 * fix(desktop): restore layout control hit targets by @juliusmarminge in pingdotgg/t3code#10673 **Full Changelog**: pingdotgg/t3code@v0.0.41-nightly.20260908.1377...v0.0.41-nightly.20260908.1387 Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.41-nightly.20260908.1387
Desktop builds enable declaration output implicitly through the composite tsconfig. The declaration compiler also includes
scripts/lib, which sits outside the desktop root, sovp packleaves 15 generated.d.tsfiles beside those sources. They can then be picked up by an unrelated commit.Disable declaration generation in all four desktop pack configurations. These bundles are executables and preloads with no declaration consumers.
Validation in an isolated worktree:
T3CODE_DESKTOP_DEV=0 vp packcompleted all four builds and produced the main process and three preload entry points..d.ts,.d.cts, or.d.mtsfiles underscripts/libandapps/desktopafterward.vp pack --no-write, targeted lint, andgit diff --checkpassed.Before: 15 source declarations appeared during desktop bundling. After: runtime bundles build without declaration output. This is a build configuration change, so screenshots are not applicable.
Model: GPT-6. Harness: Codex.
Note
Stop generating declaration for desktop Electron bundles
Sets
dts: falseon all four CommonJS pack configurations in vite.config.ts: the main Electron bundle, the preload bundle, and the two preview preload bundles. JavaScript output and source maps are unchanged.Macroscope summarized fb928c3.
Summary by CodeRabbit