[BUG] "Unhandled node type: string" on Bash tool confirmation prompt (regression in 2.1.89)

Status Fixed / completed
Reported on v2.1.83
Maintainer reply ✓ Yes — claude[bot]
Activity 5 comments · opened Apr 1, 2026 · closed May 17, 2026
💡 Likely answer: A maintainer (claude[bot], contributor) responded on this thread — see the highlighted reply below.

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

## Description

When a Bash tool call containing $() command substitution or backticks is presented in the confirmation prompt, the CLI displays Unhandled node type: string error message.

What Should Happen?

This is a regression — version 2.1.83 correctly displays Command contains $() command substitution, while 2.1.89 shows the error.

Error Messages/Logs

Steps to Reproduce

## Reproduction

Any Bash command with $() triggers this. Minimal example:

result=$(echo hello); echo "$result"

### 2.1.83 (correct behavior)
Bash command

result=$(echo hello); echo "$result"
Echo hello via variable

Command contains $() command substitution

Do you want to proceed?

### 2.1.89 (broken)
Bash command

result=$(echo hello); echo "$result"
Echo hello via variable

Unhandled node type: string

Do you want to proceed?

## Impact

  • The error message is cosmetic — selecting "Yes" still executes the command correctly.
  • Affects every Bash command containing $() or backticks.
  • Confirmed on two separate machines, both running 2.1.89 on Linux.

## Environment

  • Affected version: 2.1.89
  • Working version: 2.1.83
  • OS: Linux (Ubuntu 24.04, kernel 6.8.0-90-generic)
  • Node.js: v22

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.83

Claude Code Version

2.1.89

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

5 Comments

darrenmothersele · 4 months ago

I'm experiencing this in 2.1.107 Claude Code too

insanityinside · 4 months ago

Also occurs on 2.1.97 on FreeBSD (installed via npm, no native installer).

toby-dbv · 4 months ago

Using 2.1.117 on Linux, I get:

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 Bash command

   gofmt -w internal/service/agentsvc/agentsvc.go && go test -count=1 -run=^$ ./internal/service/agentsvc/... 2>&1 | tail -10
   Compile check agentsvc

 Unhandled node type: $

 Do you want to proceed?
 ❯ 1. Yes
   2. No

This is not cosmetic because it means that it can't proceed without manual intervention.

claude[bot] contributor · 3 months ago

This issue was fixed as of version 2.1.136.

github-actions[bot] · 1 month ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.