panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x10424a318]
goroutine 1 [running]:
github.com/docker/docker-agent/pkg/tui.(*appModel).restoreTabs(0xe4920f8c848, {0x1077a7200, 0xe4920c13400}, 0xe4920482ca0, 0xe4920d50230, 0xe4920a4d350, 0xe49205282a0, {0xe4920c6e780, 0x24}, {0xe49203a8094, ...})
github.com/docker/docker-agent/pkg/tui/tabs.go:68 +0x68
github.com/docker/docker-agent/pkg/tui.New({0x1077a7200, 0xe4920c13400}, 0xe4920a4d350, 0xe49205282a0, {0xe49203a8094, 0x23}, 0xe4920458b40, {0x0, 0x0, 0x10219943c?})
github.com/docker/docker-agent/pkg/tui/tui.go:468 +0xc68
github.com/docker/docker-agent/cmd/root.runTUIWrapped({0x1077a7200, 0xe4920c13400}, {0x1077f31c0, 0xe4920ba4a08}, 0xe4920d5f0e0, 0xe4920a4d350, 0xe4920458b40, {0x0, 0x0, 0x0}, ...)
github.com/docker/docker-agent/cmd/root/new.go:128 +0x214
github.com/docker/docker-agent/cmd/root.runTUI(...)
github.com/docker/docker-agent/cmd/root/new.go:94
github.com/docker/docker-agent/cmd/root.(*runExecFlags).runOrExec.func5(...)
github.com/docker/docker-agent/cmd/root/run.go:493
github.com/docker/docker-agent/cmd/root.(*runExecFlags).runOrExec(0xe4920b4ae08, {0x1077a7200, 0xe4920c13400}, 0xe4920c03698, {0x0, 0x0, 0x0}, 0x1)
github.com/docker/docker-agent/cmd/root/run.go:494 +0xb88
github.com/docker/docker-agent/cmd/root.(*runExecFlags).runRunCommand(0xe4920b4ae08, 0xe4920e38908, {0x0, 0x0, 0x0})
github.com/docker/docker-agent/cmd/root/run.go:304 +0x5b8
github.com/docker/docker-agent/cmd/root.NewRootCmd.func3(0xe4920e38308, {0x107d3a900?, 0x4?, 0x1043b4910?})
github.com/docker/docker-agent/cmd/root/root.go:128 +0x154
github.com/spf13/cobra.(*Command).execute(0xe4920e38308, {0xe492039a070, 0x0, 0x0})
github.com/spf13/[email protected]/command.go:1015 +0x814
github.com/spf13/cobra.(*Command).ExecuteC(0xe4920e38308)
github.com/spf13/[email protected]/command.go:1148 +0x350
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/[email protected]/command.go:1071
github.com/docker/docker-agent/cmd/root.Execute({0x1077a7200, 0xe4920c13400}, {0x107767f48, 0xe492034a050}, {0x107767f68, 0xe492034a058}, {0x107767f68, 0xe492034a060}, {0xe492039a070, 0x0, ...})
github.com/docker/docker-agent/cmd/root/root.go:214 +0x3d4
main.main()
github.com/docker/docker-agent/main.go:18 +0xd4
version: v1
aliases:
default:
path: /Users/blabla/dev/tools/cagent/agent.yaml
settings:
theme: catppuccin-mocha
hooks:
on_user_input:
type: command
command: terminal-notifier -title "🔔 Docker Agent" -message "Docker Agent needs your input"
stop:
type: command
command: terminal-notifier -title "✅ Docker Agent" -message "Docker Agent completed his task"
Description
It seems to be related to my configuration:
Expected Behavior
No panic
Actual Behavior
No response
Steps to Reproduce
No response
Docker Agent version
No response
OS & terminal
No response
Model used
No response
Error output
Screenshots
No response
Additional context
No response