Skip to content

Commit 297f388

Browse files
rysweetUbuntu
andauthored
Revert "Revert "fix(statusline): Normalize JSON input by removing newlines"" (#1642)
This reverts commit dc8ff7d. Co-authored-by: Ubuntu <azureuser@amplihack2.yb0a3bvkdghunmsjr4s3fnfhra.phxx.internal.cloudapp.net>
1 parent dc8ff7d commit 297f388

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.claude/tools/statusline.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
# "command": "$CLAUDE_PROJECT_DIR/.claude/tools/statusline.sh"
1010
# }
1111

12-
# Read JSON from Claude Code
13-
input=$(cat)
12+
# Read JSON from Claude Code and normalize (remove newlines for reliable parsing)
13+
input=$(cat | tr -d '\n\r')
1414

1515
# Extract values without jq (portable)
1616
extract_json() {

0 commit comments

Comments
 (0)