Unhandled node type: string error appears during git commit/push (cosmetic, non-blocking)

Resolved 💬 4 comments Opened Apr 3, 2026 by trubane Closed May 13, 2026

Summary

A recurring error message Unhandled node type: string appears in the Claude Code terminal output when running git commit or git push via the Bash tool. The git operations complete successfully — this is cosmetic/noise, not a functional failure.

Steps to Reproduce

  1. Use Claude Code to run git commit or git push via the Bash tool
  2. Observe error in output

Expected Behavior

No error message. Git operations complete silently or with normal git output only.

Actual Behavior

Unhandled node type: string

appears in the terminal alongside (or after) the git command output.

Environment

  • Platform: macOS Darwin 25.4.0
  • Shell: zsh
  • No custom git hooks configured (core.hooksPath not set, all hooks are .sample)
  • No Claude Code hooks that fire on Bash tool calls

Notes

This appears to be an internal JavaScript AST traversal error within the Claude Code CLI (Node.js). The error text suggests a switch/visitor pattern that does not have a handler for the "string" node type. Likely triggered when Claude Code processes or parses git output internally.

🤖 Filed via Claude Code

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗