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.
Summary
bun typecheckinpackages/opencodefails becausepackages/opencode/src/cli/cmd/tui/ui/spinner.tsimportsColorGeneratorfromopentui-spinner, which pulls in a different@opentui/coretype graph than the rest of the repo.Details
@opentui/core@0.2.2opentui-spinner@0.0.6is typed against@opentui/core@^0.1.49ColorInput/RGBAidentities stop matchingThis breaks package typecheck even though runtime behavior is fine.
Repro
From
packages/opencode:bun typecheckExpected
Typecheck passes.
Actual
Typecheck fails with an assignment error around
ColorGenerator/ColorInput/RGBAinsrc/cli/cmd/tui/ui/spinner.ts.Possible fix
Stop importing the
ColorGeneratortype throughopentui-spinnerin this file and use a local structural alias instead, or update the upstream package so its peer range matches the repo's@opentui/coreversion.