Skip to content

Sdd/dev#26108

Closed
sdevare-nv wants to merge 4 commits intoanomalyco:devfrom
sdevare-nv:sdd/dev
Closed

Sdd/dev#26108
sdevare-nv wants to merge 4 commits intoanomalyco:devfrom
sdevare-nv:sdd/dev

Conversation

@sdevare-nv
Copy link
Copy Markdown

No description provided.

sdevare-nv and others added 3 commits May 6, 2026 15:58
The opencode CLI registers TUI subcommands (Attach, TuiThread) via eager
imports in index.ts. Loading them transitively imports cli/cmd/tui/app.tsx,
whose JSX is meant to compile against @opentui/solid (per the package
tsconfig's jsxImportSource) but is incorrectly resolved against
react/jsx-dev-runtime when Bun runs the un-bundled .ts file at runtime —
react isn't a dep of packages/opencode, so the bench harness crashes at
startup before the run command ever executes.

The bench harness (packages/opencode/src/bench/cli.ts) only ever spawns
\`bun src/index.ts run\` as a subprocess; it never invokes the TUI. Remove
the imports + command registrations entirely so the cli/cmd/tui/ subtree
is unreachable from the bench code path.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

Hey! Your PR title Sdd/dev doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label May 7, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

The following comment was made by an LLM, it may be inaccurate:

Based on my search, the only PR found with the exact title "Sdd/dev" is PR #26108 itself (the current PR being checked).

No duplicate PRs found

Running opencode's CLI un-bundled (`bun src/index.ts run`) triggers
cascading runtime-resolution failures: tsconfig's `jsxImportSource`
isn't honored for inline `.tsx` JIT compilation (we already removed the
TUI commands to dodge that), and bun's isolated install layout under
`node_modules/.bun/<pkg>@<ver>/...` breaks `..`-relative `.mjs` imports
inside packages like @anthropic-ai/sdk (the `internal/to-file.mjs`
import from `core/uploads.mjs` fails to traverse the symlink the way
Node does at runtime).

opencode is meant to be shipped as a pre-bundled single file (their own
`bin/opencode` is built the same way) — `bun build` resolves every
transitive import statically and inlines the result, so runtime never
has to. The companion gym `setup_scripts/opencode.sh` now invokes
`bun build packages/opencode/src/index.ts --outdir .bench-build
--entry-naming opencode.js`. This commit teaches `bench/cli.ts` to
prefer that bundle when it exists, and falls back to `src/index.ts` for
dev / when the build step hasn't run.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label May 7, 2026
@github-actions github-actions Bot closed this May 7, 2026
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