Skip to content

Commit 2fa5019

Browse files
committed
skip nil values
1 parent 662b6b1 commit 2fa5019

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ jobs:
3232
with:
3333
bun-version: 1.2.16
3434

35+
- name: Test npm auth
36+
run: npm whoami
37+
env:
38+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
39+
3540
- run: |
3641
bun install
3742
./script/publish.ts

packages/tui/internal/components/chat/message.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,9 @@ func renderArgs(args *map[string]any, titleKey string) string {
484484
title := ""
485485
parts := []string{}
486486
for key, value := range *args {
487+
if value == nil {
488+
continue
489+
}
487490
if key == "filePath" || key == "path" {
488491
value = relative(value.(string))
489492
}

0 commit comments

Comments
 (0)