opencode
opencode copied to clipboard
fix: restore session agent and model on subtask return
Problem: When using a subtask command, the session continues with the subtask's agent and model after it completes instead of returning to the original agent and model.
Solution: Restore the original agent and model when returning from a subtask.
Adding core fix Resolves https://github.com/sst/opencode/issues/4901