summaryrefslogtreecommitdiffhomepage
path: root/packages/tui
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-06-12 13:13:27 -0400
committerDax Raad <[email protected]>2025-06-12 13:13:34 -0400
commit2fa50190e597a48abdfb99a33fdfec59df7dc757 (patch)
tree261bfcc3ac0922b1c8a3a847041361cc131b0d2d /packages/tui
parent662b6b125833ace803ef33040b1343a43bd30b60 (diff)
downloadopencode-2fa50190e597a48abdfb99a33fdfec59df7dc757.tar.gz
opencode-2fa50190e597a48abdfb99a33fdfec59df7dc757.zip
skip nil values
Diffstat (limited to 'packages/tui')
-rw-r--r--packages/tui/internal/components/chat/message.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/tui/internal/components/chat/message.go b/packages/tui/internal/components/chat/message.go
index 8a6d7c20f..131898c84 100644
--- a/packages/tui/internal/components/chat/message.go
+++ b/packages/tui/internal/components/chat/message.go
@@ -484,6 +484,9 @@ func renderArgs(args *map[string]any, titleKey string) string {
title := ""
parts := []string{}
for key, value := range *args {
+ if value == nil {
+ continue
+ }
if key == "filePath" || key == "path" {
value = relative(value.(string))
}