Caught panic #713

Closed
opened 2026-02-16 17:28:00 -05:00 by yindo · 1 comment
Owner

Originally created by @joegearlesss on GitHub (Jul 15, 2025).

Caught panic:

interface conversion: interface {} is nil, not map[string]interface {}

Restoring terminal...

goroutine 1 [running]:
runtime/debug.Stack()
        /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/debug/stack.go:26 +0x64
github.com/charmbracelet/bubbletea/v2.(*Program).recoverFromPanic(0x140001dd400, {0x102f6a380, 0x140018f4510})
        /home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea/v2@v2.0.0-beta.4/tea.go:1139 +0x10c
github.com/charmbracelet/bubbletea/v2.(*Program).Run.func2()
        /home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea/v2@v2.0.0-beta.4/tea.go:872 +0xdc
panic({0x102f6a380?, 0x140018f4510?})
        /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/panic.go:792 +0x124
github.com/sst/opencode/internal/components/chat.renderToolDetails(_, {{0x14000688687, 0x1e}, {0x14000688727, 0x1e}, {0x140006886b4, 0x1e}, {0x140006886e1, 0x1e}, {{0x1400011520b, ...}, ...}, ...}, ...)
        /home/runner/work/opencode/opencode/packages/tui/internal/components/chat/message.go:340 +0x1ec8
github.com/sst/opencode/internal/components/chat.(*messagesComponent).renderView(0x14000ad9508, 0x50)
        /home/runner/work/opencode/opencode/packages/tui/internal/components/chat/messages.go:298 +0x1854
github.com/sst/opencode/internal/components/chat.(*messagesComponent).Update(0x14000ad9508, {0x102fc4380, 0x1400167ea88})
        /home/runner/work/opencode/opencode/packages/tui/internal/components/chat/messages.go:111 +0x460
github.com/sst/opencode/internal/tui.appModel.Update({0xef, 0x39, 0x14000347348, {0x0, 0x0}, {0x12a3d2680, 0x14000483280}, {0x10303cfe0, 0x140002c6a08}, {0x10303cc38, ...}, ...}, ...)
        /home/runner/work/opencode/opencode/packages/tui/internal/tui/tui.go:541 +0x299c
github.com/charmbracelet/bubbletea/v2.(*Program).eventLoop(0x140001dd400, {0x103034710?, 0x14000af0008?}, 0x14000022700)
        /home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea/v2@v2.0.0-beta.4/tea.go:768 +0x1438
github.com/charmbracelet/bubbletea/v2.(*Program).Run(0x140001dd400)
        /home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea/v2@v2.0.0-beta.4/tea.go:1024 +0xb10
main.main()
        /home/runner/work/opencode/opencode/packages/tui/cmd/opencode/main.go:110 +0x7c0

https://opencode.ai/s/OzAfgzqL

Originally created by @joegearlesss on GitHub (Jul 15, 2025). ``` Caught panic: interface conversion: interface {} is nil, not map[string]interface {} Restoring terminal... goroutine 1 [running]: runtime/debug.Stack() /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/debug/stack.go:26 +0x64 github.com/charmbracelet/bubbletea/v2.(*Program).recoverFromPanic(0x140001dd400, {0x102f6a380, 0x140018f4510}) /home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea/v2@v2.0.0-beta.4/tea.go:1139 +0x10c github.com/charmbracelet/bubbletea/v2.(*Program).Run.func2() /home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea/v2@v2.0.0-beta.4/tea.go:872 +0xdc panic({0x102f6a380?, 0x140018f4510?}) /opt/hostedtoolcache/go/1.24.4/x64/src/runtime/panic.go:792 +0x124 github.com/sst/opencode/internal/components/chat.renderToolDetails(_, {{0x14000688687, 0x1e}, {0x14000688727, 0x1e}, {0x140006886b4, 0x1e}, {0x140006886e1, 0x1e}, {{0x1400011520b, ...}, ...}, ...}, ...) /home/runner/work/opencode/opencode/packages/tui/internal/components/chat/message.go:340 +0x1ec8 github.com/sst/opencode/internal/components/chat.(*messagesComponent).renderView(0x14000ad9508, 0x50) /home/runner/work/opencode/opencode/packages/tui/internal/components/chat/messages.go:298 +0x1854 github.com/sst/opencode/internal/components/chat.(*messagesComponent).Update(0x14000ad9508, {0x102fc4380, 0x1400167ea88}) /home/runner/work/opencode/opencode/packages/tui/internal/components/chat/messages.go:111 +0x460 github.com/sst/opencode/internal/tui.appModel.Update({0xef, 0x39, 0x14000347348, {0x0, 0x0}, {0x12a3d2680, 0x14000483280}, {0x10303cfe0, 0x140002c6a08}, {0x10303cc38, ...}, ...}, ...) /home/runner/work/opencode/opencode/packages/tui/internal/tui/tui.go:541 +0x299c github.com/charmbracelet/bubbletea/v2.(*Program).eventLoop(0x140001dd400, {0x103034710?, 0x14000af0008?}, 0x14000022700) /home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea/v2@v2.0.0-beta.4/tea.go:768 +0x1438 github.com/charmbracelet/bubbletea/v2.(*Program).Run(0x140001dd400) /home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea/v2@v2.0.0-beta.4/tea.go:1024 +0xb10 main.main() /home/runner/work/opencode/opencode/packages/tui/cmd/opencode/main.go:110 +0x7c0 ``` https://opencode.ai/s/OzAfgzqL
yindo closed this issue 2026-02-16 17:28:00 -05:00
Author
Owner

@joegearlesss commented on GitHub (Jul 15, 2025):

fixed in 0.3.8

@joegearlesss commented on GitHub (Jul 15, 2025): fixed in 0.3.8
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#713