opencode icon indicating copy to clipboard operation
opencode copied to clipboard

fix(opencode): backward compatibility for old sessions with string an…

Open bagatka opened this issue 6 days ago • 1 comments

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.

bagatka avatar Jan 09 '26 11:01 bagatka