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
=== FATAL ERROR OCCURRED ===
Console cache:
2025-10-26T19:53:17.012Z ERROR TypeError: undefined is not an object (evaluating 'x3.data.providers')
Error details:
undefined is not an object (evaluating 'x3.data.providers')
TypeError: undefined is not an object (evaluating 'x3.data.providers')
at (src/cli/cmd/tui/context/sync.tsx:134:11)
at processTicksAndRejections (native:7:39)
This issue might be a duplicate of existing issues. Please check:
Collected Feedback for OPENTUI #3232: Similar FATAL ERROR with TypeError evaluating undefined objects in opentui - shows "undefined is not an object (evaluating 'store.prompt.input')" which is very similar to your "undefined is not an object (evaluating 'x3.data.providers')" error
I think to fully address this issue, we need to do a thorough implementation of proper error handling in sync.tsx. For one, #3447 fixes this for invalid model in an agent *.md file (e.g. if you specify model: 1)
If you want you can offload this task to me - I can tackle it tomorrow.
@rekram1-node That's a good point for this case, but I was talking more generally. For example, I see a lot of ! assertions in sync.tsx that seem fragile to me. That's why I suggest a proactive approach instead of a diagnostic approach.
But yes, I agree, this proactive approach should not be confined to just sync.tsx.
Activity
rekram1-node commentedon Oct 26, 2025
This happened because of an invalid agent definition, if I run old opencode it will give a better error:
github-actions commentedon Oct 26, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
veracioux commentedon Oct 26, 2025
I think to fully address this issue, we need to do a thorough implementation of proper error handling in
sync.tsx. For one, #3447 fixes this for invalid model in an agent*.mdfile (e.g. if you specifymodel: 1)If you want you can offload this task to me - I can tackle it tomorrow.
rekram1-node commentedon Oct 27, 2025
@veracioux should it be handled in sync.tsx? I would think that a validation error for invalid config should stop before it even spawns the tui
veracioux commentedon Oct 27, 2025
@rekram1-node That's a good point for this case, but I was talking more generally. For example, I see a lot of
!assertions insync.tsxthat seem fragile to me. That's why I suggest a proactive approach instead of a diagnostic approach.But yes, I agree, this proactive approach should not be confined to just
sync.tsx.