[PR #7470] fix(opencode): backward compatibility for old sessions with string an… #12413

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

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

State: closed
Merged: No


Fixes: #7454 #7438 #7433 #7392

What does this PR do?

  • Fixes a crash when opening sessions created before the multi-select question feature (#7386)
  • Adds backward compatibility for both old (string) and new (string[]) answer formats in the question tool

How did you verify your code works?

Created a session with question answers using an older version of opencode (before 1.1.8), then updated to 1.1.8 and confirmed the crash when opening the session. After checking out this branch, the session loads correctly.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7470 **State:** closed **Merged:** No --- Fixes: #7454 #7438 #7433 #7392 ### What does this PR do? - Fixes a crash when opening sessions created before the multi-select question feature (#7386) - Adds backward compatibility for both old (string) and new (string[]) answer formats in the question tool ### How did you verify your code works? Created a session with question answers using an older version of opencode (before 1.1.8), then updated to 1.1.8 and confirmed the crash when opening the session. After checking out this branch, the session loads correctly.
yindo added the pull-request label 2026-02-16 18:17:19 -05:00
yindo closed this issue 2026-02-16 18:17:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12413