Skip to content

Reproduce default build discovering work circuits - #4391

Open
ShiboSoftwareDev wants to merge 1 commit into
mainfrom
repro/default-build-discovers-work-circuits
Open

Reproduce default build discovering work circuits#4391
ShiboSoftwareDev wants to merge 1 commit into
mainfrom
repro/default-build-discovers-work-circuits

Conversation

@ShiboSoftwareDev

Copy link
Copy Markdown
Contributor

Problem

Running tsci build without a file argument scans every default board pattern before considering the detected main entrypoint. A project with index.circuit.tsx therefore also builds temporary diagnostic circuits under work/, expanding build time and producing unintended outputs.

Reproduction

The focused unit reproduction creates a project containing:

  • index.circuit.tsx, the conventional main entrypoint
  • work/diagnostic.circuit.tsx, an iterative diagnostic circuit

With no includeBoardFiles configuration and no explicit file/directory argument, getBuildEntrypoints currently returns both files and does not identify the main entrypoint.

The reproduction changes no CLI implementation.

Expected behavior

A no-argument build should use the conventional/configured main entrypoint when one exists. Multi-board discovery remains available through includeBoardFiles or an explicit directory argument.

Verification

  • bun test tests/cli/build/build-default-entrypoint-discovery.test.ts
  • bun run format:check

The fix will be proposed as a separate PR stacked on this branch.

@ShiboSoftwareDev
ShiboSoftwareDev marked this pull request as ready for review August 20, 2026 23:40
@github-actions

Copy link
Copy Markdown
Contributor

This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant