summaryrefslogtreecommitdiffhomepage
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
parent662b6b125833ace803ef33040b1343a43bd30b60 (diff)
downloadopencode-2fa50190e597a48abdfb99a33fdfec59df7dc757.tar.gz
opencode-2fa50190e597a48abdfb99a33fdfec59df7dc757.zip
skip nil values
-rw-r--r--.github/workflows/publish.yml5
-rw-r--r--packages/tui/internal/components/chat/message.go3
2 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index c5c8b4a88..c6cbdef22 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -32,6 +32,11 @@ jobs:
with:
bun-version: 1.2.16
+ - name: Test npm auth
+ run: npm whoami
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+
- run: |
bun install
./script/publish.ts
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))
}