When clicking redo on a message, the system would fail with 'Command exited with code 1' if there were previous opencode messages but none of them produced any output. Now we check if previous messages actually had output (reply or partialOutput) before attempting to undo, preventing the error when there's nothing to undo. Fixes issue where redo button fails when previous messages had no output.
174 KiB
174 KiB