Skip to content

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

Closed

Description

@renich

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/[email protected]/node_modules/solid-js/dist/dev.js:742:22)
    at updateComputation (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:724:3)
    at readSignal (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:660:67)
    at normalizeIncomingArray (../../node_modules/.bun/@[email protected]+eb3cc3a936ac23ec/node_modules/@opentui/solid/index.js:234:20)
    at insertExpression (../../node_modules/.bun/@[email protected]+eb3cc3a936ac23ec/node_modules/@opentui/solid/index.js:187:11)
    at <anonymous> (../../node_modules/.bun/@[email protected]+eb3cc3a936ac23ec/node_modules/@opentui/solid/index.js:188:44)
    at runComputation (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:742:22)
    at updateComputation (../../node_modules/.bun/[email protected]/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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Feb 7, 2026
  2. added a commit that references this issue on Feb 7, 2026
    22d8331
  3. yxshee commented on Feb 7, 2026

    @yxshee

    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.

    #12590

  4. renich commented on Feb 7, 2026

    @renich
    Author

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

    Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions