Repository navigation
Closed
Labels
bugSomething isn't workingSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui
Description
Description
TypeError: undefined is not an object (evaluating 'color.buffer')
at setCursorColor (../../node_modules/.bun/@[email protected]+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:11120:51)
at setCursorColor (../../node_modules/.bun/@[email protected]+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:15239:14)
at <anonymous> (src/cli/cmd/tui/component/prompt/index.tsx:501:14)
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 runTop (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:833:7)
at runUserEffects (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:943:36)
at runUpdates (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:849:17)
at completeUpdates (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:900:17)
at runUpdates (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:850:5)
at move (src/cli/cmd/tui/context/local.tsx:73:11)
at onSelect (src/cli/cmd/tui/app.tsx:301:19)
at <anonymous> (src/cli/cmd/tui/component/dialog-command.tsx:22:16)
at emit (node:events:95:22)
at emitWithPriority (../../node_modules/.bun/@[email protected]+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:2350:38)
at processInput (../../node_modules/.bun/@[email protected]+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:2321:14)
at <anonymous> (../../node_modules/.bun/@[email protected]+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:14967:13)
at emit (node:events:95:22)
at process (../../node_modules/.bun/@[email protected]+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:5940:12)
at <anonymous> (../../node_modules/.bun/@[email protected]+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:14909:23)
at emit (node:events:95:22)
at addChunk (internal:streams/readable:264:47)
at readableAddChunkPushByteMode (internal:streams/readable:242:18)
at internalRead (native:38:40)
at processTicksAndRejections (native:7:39)...
OpenCode version
1.0.108
Steps to reproduce
- I have a custom tutor agent with the following:
---
description: "Global, read-only Tutor that teaches concepts, checks understanding, and helps you plan and build when ready."
mode: primary
tools:
write: false
edit: false
patch: false
bash: false
read: true
grep: true
glob: true
todoread: true
webfetch: true
permission:
write: deny
edit: deny
patch: deny
bash: deny
webfetch: ask
---
You are a friendly and insightful coding tutor.
Your job is to **teach, ask, and guide**, not to code.
You never modify files or run commands.
You pause often to check the user’s familiarity before moving forward.- Pressing
tabto switch to it crashed it
This happened previously in issue #4648
- Additional Info:
I cannot switch to the tutor agent in 1.0.110 anymore. I can only cycle between Plan and Build
Screenshot and/or share link
No response
Operating System
MacOS
Terminal
Ghostty and Zed Integrated Terminal
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui
Activity
github-actions commentedon Nov 25, 2025
This issue is a duplicate of an existing issue. Please check:
Both issues report the identical error when pressing tab to switch agents, particularly with custom agent configurations. Your report even mentions issue #4648 explicitly. Consider consolidating discussion there to help the maintainers track the problem more effectively.
rekram1-node commentedon Nov 25, 2025
ahh okay
rekram1-node commentedon Nov 25, 2025
@shahshlok can you show me
opencode debug configshahshlok commentedon Nov 25, 2025
Sure,
shahshlok commentedon Nov 25, 2025
@rekram1-node one more thing,
taballows me to switch from Build to Plan but then pressingtabafter that does not switch, it gets frozen on Plan mode.I am happy to give you any data that you want to help you better understand the issue
shahshlok commentedon Nov 25, 2025
I hope this helps
Screen.Recording.2025-11-24.at.10.47.48.PM.mp4
shahshlok commentedon Nov 27, 2025
@rekram1-node I think I found the issue, i had a custom theme file which mimicked the VSCode Modern Theme. Upon removing that custom theme, everything seems to be working fine
rekram1-node commentedon Dec 3, 2025
@shahshlok any chance u can send the custom theme, want to make sure we handle this gracefully