Skip to content

bun typecheck fails from opentui-spinner ColorGenerator type mismatch #26119

@gmnstr

Description

@gmnstr

Summary

bun typecheck in packages/opencode fails because packages/opencode/src/cli/cmd/tui/ui/spinner.ts imports ColorGenerator from opentui-spinner, which pulls in a different @opentui/core type graph than the rest of the repo.

Details

  • repo uses @opentui/core@0.2.2
  • opentui-spinner@0.0.6 is typed against @opentui/core@^0.1.49
  • Bun installs both versions, so ColorInput / RGBA identities stop matching

This breaks package typecheck even though runtime behavior is fine.

Repro

From packages/opencode:

bun typecheck

Expected

Typecheck passes.

Actual

Typecheck fails with an assignment error around ColorGenerator / ColorInput / RGBA in src/cli/cmd/tui/ui/spinner.ts.

Possible fix

Stop importing the ColorGenerator type through opentui-spinner in this file and use a local structural alias instead, or update the upstream package so its peer range matches the repo's @opentui/core version.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions