Skip to content

fix(desktop): dev runs the core from dist/client.js, not the removed dist/index.js - #630

Merged
raymondfeng merged 1 commit into
mainfrom
fix/desktop-core-entry-tests
Oct 10, 2026
Merged

raymondfeng merged 1 commit into
mainfrom
fix/desktop-core-entry-tests

Conversation

@raymondfeng

Copy link
Copy Markdown
Contributor

The desktop app's dev fallback in coreEntryCandidates still pointed at dist/index.js. That file was removed when the server moved into @agentgem/app; the entry is now dist/client.js, which is also what bundle-core.mjs bundles. Because of this:

  • pnpm -C desktop dev failed with "AgentGem core not found".
  • 8 tests in desktop/src/__tests__/server.test.ts failed with the same error. CI doesn't run the desktop suite, so nothing caught it.

Packaged apps are unaffected, because they load resources/core/index.mjs.

Fix: the dev candidate is now dist/client.js. I updated core.test.ts first and watched it fail.

Verified: the desktop suite passes (76/76). That includes the test that starts the real core from the dev candidate, gets the page, and checks the port is released afterward. Desktop tsc is clean.

🤖 Generated with Claude Code

…dist/index.js

coreEntryCandidates' dev fallback still pointed at the repo's dist/index.js,
which stopped existing when the server moved into @agentgem/app (the entry
is dist/client.js, the same file bundle-core.mjs bundles). So
`pnpm -C desktop dev` failed with "AgentGem core not found", and 8
server.test.ts tests failed the same way. CI does not run the desktop
suite, so nothing flagged it. Packaged apps were unaffected: they load
resources/core/index.mjs.

Updated core.test.ts's expected candidate first (red), then the path.
Desktop suite 76/76, including the test that boots the real core from the
dev candidate, fetches the UI, and checks the port is released. Desktop
tsc clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@raymondfeng
raymondfeng merged commit 35ec553 into main Oct 10, 2026
1 check passed
@raymondfeng
raymondfeng deleted the fix/desktop-core-entry-tests branch October 10, 2026 22:56
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