Repository navigation
Commit 4038a55
committed
fix(opencode): add null-safety to agent.current() calls
Fixes anomalyco#8648
The agent.current() function can return undefined when:
- The agent list is empty
- No matching agent is found for the stored name
Added null checks at all call sites to prevent TypeErrors when
accessing .name property on undefined.
Verified by running 'bun dev' - the TUI starts without crashes.1 parent a72ee71 commit 4038a55
1 file changed
Lines changed: 401 additions & 0 deletions
0 commit comments