panic: interface conversion: opencode.PartUnion is opencode.StepStartPart, not opencode.ToolPart #1370

Closed
opened 2026-02-16 17:30:39 -05:00 by yindo · 2 comments
Owner

Originally created by @joshuadavidthomas on GitHub (Aug 19, 2025).

Originally assigned to: @adamdotdevin on GitHub.

panic: interface conversion: opencode.PartUnion is opencode.StepStartPart, not opencode.ToolPart

Version: v0.5.7
OS: Linux
Terminal: Ghostty 1.1.3-arch1

Sorry, this will not be the best bug report as I'm not sure what's going on. I've been giving the Backlog.md tool a trial run and as part of it have configured a custom "backlog" subagent using the agent prompt they have for Claude Code.

The above panic log is all I have to go on at the moment. There was a bit more context dumped to the terminal, but I had some difficulty trying to capture it. As I've tried to scroll when selecting the text, my shell history scrolled instead? Unsure what's going on but the panic has happened twice and both times it scrolls the shell history instead of the terminal window.

I've tried to reproduce it again, but have been unsuccessful. If it pops up again, I'll try and capture as much of the text of the panic as I can.

Originally created by @joshuadavidthomas on GitHub (Aug 19, 2025). Originally assigned to: @adamdotdevin on GitHub. `panic: interface conversion: opencode.PartUnion is opencode.StepStartPart, not opencode.ToolPart` Version: v0.5.7 OS: Linux Terminal: Ghostty 1.1.3-arch1 Sorry, this will not be the best bug report as I'm not sure what's going on. I've been giving the [Backlog.md](https://github.com/MrLesk/Backlog.md) tool a trial run and as part of it have configured a custom "backlog" subagent using the agent prompt they have for Claude Code. The above panic log is all I have to go on at the moment. There was a bit more context dumped to the terminal, but I had some difficulty trying to capture it. As I've tried to scroll when selecting the text, my shell history scrolled instead? Unsure what's going on but the panic has happened twice and both times it scrolls the shell history instead of the terminal window. I've tried to reproduce it again, but have been unsuccessful. If it pops up again, I'll try and capture as much of the text of the panic as I can.
yindo closed this issue 2026-02-16 17:30:39 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 19, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #1797: Similar Go runtime crash (segmentation fault) - both involve runtime panics in the Go TUI process
  • #1840: OpenCode crashes when using many agents/sub-agents - similar to your custom subagent setup that triggered this panic
  • #1841: Process crashes with specific directory configurations - shows similar pattern of runtime failures in specific contexts

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Aug 19, 2025): This issue might be a duplicate of existing issues. Please check: - #1797: Similar Go runtime crash (segmentation fault) - both involve runtime panics in the Go TUI process - #1840: OpenCode crashes when using many agents/sub-agents - similar to your custom subagent setup that triggered this panic - #1841: Process crashes with specific directory configurations - shows similar pattern of runtime failures in specific contexts Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Aug 19, 2025):

thx for reporting, made a fix should go out tmr

@rekram1-node commented on GitHub (Aug 19, 2025): thx for reporting, made a fix should go out tmr
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1370