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: undefined is not an object (evaluating 'agents()[0].name') #5830
TypeError: undefined is not an object (evaluating 'agents()[0].name')
at <anonymous> (src/cli/cmd/tui/context/local.tsx:53:27)
at init (src/cli/cmd/tui/context/local.tsx:50:19)
at provider (src/cli/cmd/tui/context/helper.tsx:8:26)
at untrack (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:475: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 devComponent (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:593:3)
at children (src/cli/cmd/tui/context/helper.tsx:18:24)
at <anonymous> (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:1057:29)
at runComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:742:22)...
Both issues suggest that the problem is in src/cli/cmd/tui/context/local.tsx where agents()[0].name is accessed without checking if agents array is empty or defined. This happens when no agents are available to the current session.
Feel free to ignore if your specific case is different from these scenarios (e.g., remote connection or disabled agents).
Activity
github-actions commentedon Dec 20, 2025
This issue might be a duplicate of existing issues. Please check:
Both issues suggest that the problem is in
src/cli/cmd/tui/context/local.tsxwhereagents()[0].nameis accessed without checking if agents array is empty or defined. This happens when no agents are available to the current session.Feel free to ignore if your specific case is different from these scenarios (e.g., remote connection or disabled agents).
rekram1-node commentedon Dec 20, 2025
@tsopito can u share:
opencode debug configrekram1-node commentedon Dec 20, 2025
It looks like all ur primary agents are disabled, Ill adjust the code so we have cleaner error for this but this is a config issue on ur end
rekram1-node commentedon Dec 20, 2025
Should fix it (as in better error):
d61b04a