Skip to content

fix(desktop): stop generating declarations during bundling - #10679

Merged
juliusmarminge merged 1 commit into
mainfrom
fix-desktop-bundle-declarations
Sep 8, 2026
Merged

fix(desktop): stop generating declarations during bundling#10679
juliusmarminge merged 1 commit into
mainfrom
fix-desktop-bundle-declarations

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Sep 8, 2026

Copy link
Copy Markdown
Member

Desktop builds enable declaration output implicitly through the composite tsconfig. The declaration compiler also includes scripts/lib, which sits outside the desktop root, so vp pack leaves 15 generated .d.ts files 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 pack completed all four builds and produced the main process and three preload entry points.
  • Confirmed zero .d.ts, .d.cts, or .d.mts files under scripts/lib and apps/desktop afterward.
  • vp pack --no-write, targeted lint, and git diff --check passed.

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: false on 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

  • Chores
    • Adjusted desktop application packaging configuration to prevent declaration files from being generated for Electron bundles.

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Sep 8, 2026
@macroscopeapp

macroscopeapp Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at fb928c3

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.

@macroscopeapp macroscopeapp Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All clear

Posted via Macroscope — Effect Service Conventions

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 13.6 KiB 13.6 KiB +6 B (+0.0%) 15.1 KiB
Codex Thread snapshot wire 7.0 KiB 7.0 KiB 0 B (0.0%) 7.3 KiB
Codex Live turn WebSocket wire 6.6 KiB 6.6 KiB +6 B (+0.1%) 7.8 KiB
Codex Live turn WebSocket decoded 57.1 KiB 57.1 KiB 0 B (0.0%) 66.4 KiB
Codex Live turn messages 10 10 0 (0.0%) 21
Claude Total thread wire 13.6 KiB 13.6 KiB +32 B (+0.2%) 15.1 KiB
Claude Thread snapshot wire 7.0 KiB 7.1 KiB +3 B (+0.0%) 7.3 KiB
Claude Live turn WebSocket wire 6.5 KiB 6.5 KiB +29 B (+0.4%) 7.8 KiB
Claude Live turn WebSocket decoded 57.8 KiB 57.9 KiB +44 B (+0.1%) 66.4 KiB
Claude Live turn messages 9 10 +1 (+11.1%) 21

Baseline: b5f7fa0 · PR result: fb928c3 · Source CI: success

Scenario and decoded snapshot size

10 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.

  • Codex decoded thread snapshot: 113.9 KiB
  • Claude decoded thread snapshot: 114.6 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@coderabbitai

coderabbitai Bot commented Sep 8, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: e9069e1c-ae55-4480-b775-4bf9de196879

📥 Commits

Reviewing files that changed from the base of the PR and between b5f7fa0 and fb928c3.

📒 Files selected for processing (1)
  • apps/desktop/vite.config.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The desktop Vite configuration disables TypeScript declaration generation for the main Electron bundle and three preload bundles.

Changes

Electron build configuration

Layer / File(s) Summary
Disable declaration generation
apps/desktop/vite.config.ts
The main, preload, preview picker preload, and preview PIP preload configurations set dts: false.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to fb928

Desktop bundles will stop emitting TypeScript declaration files while retaining the main and preload runtime bundles. The change is ready to merge.

Suggested reviewers: bil0000

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: disabling declaration generation during desktop bundling.
Description check ✅ Passed The description explains what changed, why it changed, the validation performed, and why UI evidence is not applicable. It is sufficiently complete for the template, although it does not include an ex…
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
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.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-desktop-bundle-declarations

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

@juliusmarminge
juliusmarminge merged commit bc88fdf into main Sep 8, 2026
22 checks passed
@juliusmarminge
juliusmarminge deleted the fix-desktop-bundle-declarations branch September 8, 2026 05:23
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Sep 8, 2026
## 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant