Skip to content

Build devCoder on first use, not at import (#1439) - #1584

Merged
currentbits merged 1 commit into
mainfrom
fix/1439-lazy-devcoder
Oct 10, 2026
Merged

currentbits merged 1 commit into
mainfrom
fix/1439-lazy-devcoder

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Fixes #1439 (eject/sidebar CI test instability). That issue was closed, but its fix only ever landed as a local-only merge and never reached GitHub. This is a port onto current main.

export const devCoder = buildDevCoder() builds the dev fixture at import. That starts the seeded working threads' run intervals, so anything importing src/coderApi.ts (each renderer test file) stays alive after its work is done. Measured on main: importing src/devCoder.ts exits after ~3.6 s; with this change, ~0.1 s.

Tests: tsc --noEmit is clean. The renderer suite passes 2943/2943 in 29 s, and so does the full electron suite (4539/4539, combined with #1435 and #1436).

🤖 Generated with Claude Code

Building the dev fixture starts the seeded working threads' run
intervals, so importing src/devCoder.ts (via coderApi.ts) kept every
importer alive ~3.5s after its work was done: each renderer test file
and the CI eject/sidebar tests that timed out. devCoder is now a lazy
getter; import exits in ~0.1s. Production builds still drop it (#1475).

Ported from a local-only merge that never reached GitHub.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 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-10T09:51:15.609317Z 2e9976e 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.

@currentbits
currentbits merged commit 5abb693 into main Oct 10, 2026
6 checks passed
@currentbits
currentbits deleted the fix/1439-lazy-devcoder branch October 10, 2026 10:01
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.

Stabilize eject and sidebar CI tests

1 participant