opentui: fatal: The "path" property must be of type string, got object #8771

Closed
opened 2026-02-16 18:10:48 -05:00 by yindo · 2 comments
Owner

Originally created by @renich on GitHub (Feb 7, 2026).

Originally assigned to: @kommander on GitHub.

Description

TypeError: The "path" property must be of type string, got object
    at isAbsolute (unknown)
    at normalizePath3 (src/cli/cmd/tui/routes/session/index.tsx:2995:12)
    at runComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:742:22)
    at updateComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:724:3)
    at readSignal (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:660:67)
    at normalizeIncomingArray (../../node_modules/.bun/@opentui+solid@0.1.77+eb3cc3a936ac23ec/node_modules/@opentui/solid/index.js:234:20)
    at insertExpression (../../node_modules/.bun/@opentui+solid@0.1.77+eb3cc3a936ac23ec/node_modules/@opentui/solid/index.js:187:11)
    at <anonymous> (../../node_modules/.bun/@opentui+solid@0.1.77+eb3cc3a936ac23ec/node_modules/@opentui/solid/index.js:188:44)
    at runComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:742:22)
    at updateComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:724:3)...

Plugins

opencode-antigravity-auth@latest and tarquinen/opencode-dcp@latest

OpenCode version

1.1.53

Steps to reproduce

  1. Start a project using Kimi 2.5-thinking from Zen
  2. Have it do several things at once.

Screenshot and/or share link

Image

Operating System

Fedora 43 x86_64

Terminal

ptyxis

Originally created by @renich on GitHub (Feb 7, 2026). Originally assigned to: @kommander on GitHub. ### Description ``` TypeError: The "path" property must be of type string, got object at isAbsolute (unknown) at normalizePath3 (src/cli/cmd/tui/routes/session/index.tsx:2995:12) at runComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:742:22) at updateComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:724:3) at readSignal (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:660:67) at normalizeIncomingArray (../../node_modules/.bun/@opentui+solid@0.1.77+eb3cc3a936ac23ec/node_modules/@opentui/solid/index.js:234:20) at insertExpression (../../node_modules/.bun/@opentui+solid@0.1.77+eb3cc3a936ac23ec/node_modules/@opentui/solid/index.js:187:11) at <anonymous> (../../node_modules/.bun/@opentui+solid@0.1.77+eb3cc3a936ac23ec/node_modules/@opentui/solid/index.js:188:44) at runComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:742:22) at updateComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:724:3)... ``` ### Plugins opencode-antigravity-auth@latest and tarquinen/opencode-dcp@latest ### OpenCode version 1.1.53 ### Steps to reproduce 1. Start a project using Kimi 2.5-thinking from Zen 2. Have it do several things at once. ### Screenshot and/or share link <img width="1713" height="1327" alt="Image" src="https://github.com/user-attachments/assets/05e9c79f-b560-4dd0-9d8a-4191b47b2006" /> ### Operating System Fedora 43 x86_64 ### Terminal ptyxis
yindo added the opentuibug labels 2026-02-16 18:10:48 -05:00
yindo closed this issue 2026-02-16 18:10:48 -05:00
Author
Owner

@yxshee commented on GitHub (Feb 7, 2026):

I've fixed this issue. The root cause was that normalizePath in session/index.tsx called path.isAbsolute(input) without validating that input was a string. When plugins like opencode-antigravity-auth@latest returned objects (e.g., { path: string }) instead of raw strings, Node.js threw the TypeError.

Fix: Added a coerceFsPath utility that safely handles various path-like input shapes (objects, URLs, arrays) before calling Node.js path functions.

https://github.com/anomalyco/opencode/pull/12590

@yxshee commented on GitHub (Feb 7, 2026): I've fixed this issue. The root cause was that normalizePath in session/index.tsx called path.isAbsolute(input) without validating that input was a string. When plugins like opencode-antigravity-auth@latest returned objects (e.g., { path: string }) instead of raw strings, Node.js threw the TypeError. Fix: Added a coerceFsPath utility that safely handles various path-like input shapes (objects, URLs, arrays) before calling Node.js path functions. https://github.com/anomalyco/opencode/pull/12590
Author
Owner

@renich commented on GitHub (Feb 7, 2026):

Dude, that was fast. Almost as fast as the rate at which I burned through my $20 for today. ;D

Thanks a lot.

@renich commented on GitHub (Feb 7, 2026): Dude, that was fast. Almost as fast as the rate at which I burned through my $20 for today. ;D Thanks a lot.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8771