[PR #10266] fix(timeline): errors when no timeline message options #13380

Closed
opened 2026-02-16 18:18:14 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/10266

State: closed
Merged: No


What does this PR do?

check if option is defined, fixes #10130 , found out that this also happens in theme and fork message so added fixes for those too. fixes #8873 as well

when using timeline jump to message and there are no message results, opencode errors, error message:
[11:13:12] [ERROR] Error: undefined is not an object (evaluating 'option.value')
TypeError: undefined is not an object (evaluating 'option.value')
at onMove (src/cli/cmd/tui/routes/session/dialog-timeline.tsx:44:36)
at moveTo (src/cli/cmd/tui/ui/dialog-select.tsx:96:11)
at (src/cli/cmd/tui/ui/dialog-select.tsx:78:9)

How did you verify your code works?

tested it locally

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10266 **State:** closed **Merged:** No --- ### What does this PR do? check if option is defined, fixes #10130 , found out that this also happens in theme and fork message so added fixes for those too. fixes #8873 as well when using timeline jump to message and there are no message results, opencode errors, error message: [11:13:12] [ERROR] Error: undefined is not an object (evaluating 'option.value') TypeError: undefined is not an object (evaluating 'option.value') at onMove (src/cli/cmd/tui/routes/session/dialog-timeline.tsx:44:36) at moveTo (src/cli/cmd/tui/ui/dialog-select.tsx:96:11) at <anonymous> (src/cli/cmd/tui/ui/dialog-select.tsx:78:9) ### How did you verify your code works? tested it locally
yindo added the pull-request label 2026-02-16 18:18:14 -05:00
yindo closed this issue 2026-02-16 18:18:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13380