You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
opentui: fatal: The "path" property must be of type string, got object #12589
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
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.
Activity
fix(tui): prevent path type error crash when plugins return objects
yxshee commentedon 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.
#12590
renich commentedon 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.