Skip to content

fix(deps): align @opentui peer range with @opencode/plugin 2.2.7 - #36

Merged
syn7xx merged 2 commits into
mainfrom
fix/deps-opentui
Nov 17, 2026
Merged

syn7xx merged 2 commits into
mainfrom
fix/deps-opentui

Conversation

@syn7xx

@syn7xx syn7xx commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Fixes the failing Check (format, lint, types, build) job on #32.

Why #32 fails

Dependabot's bump raises @opencode/plugin to 2.2.7. Its peer range is @opentui/core >= 0.8.1, but packages/plugin/package.json still pins @opentui/core and @opentui/solid to 0.8.0.

The tree then resolves two copies of @opentui/core:

  • 0.8.0 — the one our TUI code imports, from the pinned devDependency;
  • 0.8.1 — pulled in by @opencode/theme 2.2.7.

SyntaxStyle carries a private field lib, so the two copies are nominally distinct types and never assignable:

packages/plugin/src/tui/ui.tsx(57,3): error TS2322: ... Accessor<SyntaxStyle(0.8.1)> is not assignable to
  Accessor<SyntaxStyle(0.8.0)>. Types have separate declarations of a private property 'lib'.
packages/plugin/src/tui/ui.tsx(59,43): error TS2345: 'NativeScene' is not assignable to 'NativeResourceOwner'
  (RenderLib is missing sceneSetVideo, sceneSetCrop, videoOpen, videoCall, and 10 more).

That is why the type job fails while the three test jobs pass: tests never type-check ui.tsx.

Fix

Pin the peer packages to the version @opencode/plugin 2.2.7 requires (0.8.1), so the tree holds one copy. The peer ranges stay >= 0.8.0 — a consumer on a newer @opentui is still satisfied; only our own dev tree is pinned.

Verification

  • bun run typecheck — clean (was 3 errors in tui/ui.tsx)
  • bun run check — 427 tests, format/lint/types all green
  • bun run build — TUI, GUI and web bundles built, 18 protocol schemas checked
  • bun.lock regenerated: one @opentui/core at 0.8.1

Once this is merged into #32's branch (or #32 rebased on it), dependabot's PR should go green.

dependabot Bot and others added 2 commits November 17, 2026 18:44
Bumps the minor-and-patch group with 7 updates:

| Package | From | To |
| --- | --- | --- |
| [oxfmt](https://github.com/oxc-project/oxc/tree/HEAD/npm/oxfmt) | `0.76.0` | `0.78.0` |
| [oxlint](https://github.com/oxc-project/oxc/tree/HEAD/npm/oxlint) | `1.91.0` | `1.93.0` |
| [@opencode/plugin](https://github.com/anomalyco/opencode/tree/HEAD/packages/plugin) | `2.2.5` | `2.2.7` |
| [@opencode/client](https://github.com/anomalyco/opencode/tree/HEAD/packages/client) | `2.2.5` | `2.2.7` |
| [@opencode/theme](https://github.com/anomalyco/opencode/tree/HEAD/packages/theme) | `2.2.5` | `2.2.7` |
| [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) | `8.3.5` | `8.3.8` |
| [vite-plugin-solid](https://github.com/solidjs/solid-vite-plugin) | `2.11.15` | `2.11.16` |


Updates `oxfmt` from 0.76.0 to 0.78.0
- [Release notes](https://github.com/oxc-project/oxc/releases)
- [Changelog](https://github.com/oxc-project/oxc/blob/main/npm/oxfmt/CHANGELOG.md)
- [Commits](https://github.com/oxc-project/oxc/commits/oxfmt_v0.78.0/npm/oxfmt)

Updates `oxlint` from 1.91.0 to 1.93.0
- [Release notes](https://github.com/oxc-project/oxc/releases)
- [Changelog](https://github.com/oxc-project/oxc/blob/main/npm/oxlint/CHANGELOG.md)
- [Commits](https://github.com/oxc-project/oxc/commits/oxlint_v1.93.0/npm/oxlint)

Updates `@opencode/plugin` from 2.2.5 to 2.2.7
- [Release notes](https://github.com/anomalyco/opencode/releases)
- [Changelog](https://github.com/anomalyco/opencode/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/anomalyco/opencode/commits/v2.2.7/packages/plugin)

Updates `@opencode/client` from 2.2.5 to 2.2.7
- [Release notes](https://github.com/anomalyco/opencode/releases)
- [Changelog](https://github.com/anomalyco/opencode/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/anomalyco/opencode/commits/v2.2.7/packages/client)

Updates `@opencode/theme` from 2.2.5 to 2.2.7
- [Release notes](https://github.com/anomalyco/opencode/releases)
- [Changelog](https://github.com/anomalyco/opencode/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/anomalyco/opencode/commits/v2.2.7/packages/theme)

Updates `vite` from 8.3.5 to 8.3.8
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v8.3.8/packages/vite)

Updates `vite-plugin-solid` from 2.11.15 to 2.11.16
- [Release notes](https://github.com/solidjs/solid-vite-plugin/releases)
- [Changelog](https://github.com/solidjs/solid-vite-plugin/blob/main/CHANGELOG.md)
- [Commits](https://github.com/solidjs/solid-vite-plugin/compare/vite-plugin-solid@2.11.15...vite-plugin-solid@2.11.16)

---
updated-dependencies:
- dependency-name: oxfmt
  dependency-version: 0.78.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: oxlint
  dependency-version: 1.93.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: "@opencode/plugin"
  dependency-version: 2.2.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: "@opencode/client"
  dependency-version: 2.2.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: "@opencode/theme"
  dependency-version: 2.2.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: vite
  dependency-version: 8.3.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: vite-plugin-solid
  dependency-version: 2.11.16
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
`@opencode/plugin` 2.2.7 raised its peer range to `@opentui/core >= 0.8.1`,
while this package still pinned `@opentui/core`/`@opentui/solid` to 0.8.0.
Two copies of `@opentui/core` then resolved (0.8.0 for our TUI code, 0.8.1 via
`@opencode/theme`), and `SyntaxStyle` — which has the private field `lib` —
became two nominally distinct types that never assign:

  tui/ui.tsx(57,3): TS2322 Accessor<SyntaxStyle(0.8.1)> is not assignable to
    Accessor<SyntaxStyle(0.8.0)> (separate declarations of a private property 'lib')
  tui/ui.tsx(59,43): TS2345 'NativeScene' is not assignable to 'NativeResourceOwner'

The test jobs passed because tests never type-check `ui.tsx`; only the
format/lint/types/build job failed.

Pin the devDependencies to 0.8.1 so the tree holds one copy. The peer RANGES
stay `>= 0.8.0`, so a consumer on a newer `@opentui` is still satisfied — only
our own dev tree is pinned.

Verified: `bun run typecheck` clean, `bun run check` 427 tests, `bun run build`
(TUI + GUI + web, 18 protocol schemas) all pass.
@syn7xx
syn7xx changed the base branch from dependabot/bun/minor-and-patch-2619601a86 to main November 17, 2026 15:44
@syn7xx
syn7xx merged commit 9dd425a into main Nov 17, 2026
4 checks passed
@syn7xx
syn7xx deleted the fix/deps-opentui branch November 17, 2026 15:46
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