claude-code - 💡(How to fix) Fix Approval dialog unscrollable when Bash command contains large payload [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48248Fetched 2026-04-15 06:29:01
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

When a Bash tool call contains a large inline payload (e.g. a JSON file written via heredoc for a Jira REST API call with ADF content), the approval dialog renders the entire command verbatim. There is no scroll capability on the dialog, so the Approve/Deny buttons are pushed off-screen and unreachable.

Root Cause

When a Bash tool call contains a large inline payload (e.g. a JSON file written via heredoc for a Jira REST API call with ADF content), the approval dialog renders the entire command verbatim. There is no scroll capability on the dialog, so the Approve/Deny buttons are pushed off-screen and unreachable.

RAW_BUFFERClick to expand / collapse

Description

When a Bash tool call contains a large inline payload (e.g. a JSON file written via heredoc for a Jira REST API call with ADF content), the approval dialog renders the entire command verbatim. There is no scroll capability on the dialog, so the Approve/Deny buttons are pushed off-screen and unreachable.

Steps to reproduce

  1. Use Claude Code (Desktop app, Windows)
  2. Trigger a Bash tool call that writes a large JSON file (e.g. ~200+ lines) via heredoc and then runs curl
  3. The approval prompt appears with the full command text
  4. The Approve/Deny buttons are below the visible area with no way to scroll down

Expected behaviour

The approval dialog should either:

  • Be scrollable so the user can reach the Approve/Deny buttons
  • Truncate/collapse the command preview with an expand option
  • Float the Approve/Deny buttons at the bottom of the dialog regardless of content length

Screenshot

User-provided screenshot shows the dialog filled entirely with raw JSON, buttons not visible or reachable.

Environment

  • Claude Code Desktop app (Windows 11)
  • Large Bash command with heredoc JSON payload (~4KB ADF content)

extent analysis

TL;DR

The approval dialog's lack of scroll capability or truncation for large Bash tool calls with inline payloads causes the Approve/Deny buttons to be unreachable.

Guidance

  • Verify that the issue is specific to the Claude Code Desktop app on Windows 11 and the large JSON payload via heredoc.
  • Consider modifying the Bash tool call to reduce the payload size or use an alternative method to pass the JSON data.
  • Check if there are any existing configuration options or updates for the Claude Code app that address dialog rendering or scrolling for large commands.
  • Test if using a smaller payload or a different method of passing the JSON data (e.g., using a file instead of heredoc) resolves the issue.

Example

No specific code example can be provided without modifying the existing Bash tool call, but reducing the payload size or using a file-based approach might look like:

# Instead of using heredoc with a large JSON string
curl -X POST -H "Content-Type: application/json" -d @path/to/json/file https://jira-rest-api.com

Notes

The solution may depend on the specific requirements of the Jira REST API call and the ADF content. Reducing the payload size or using a file-based approach might not be feasible in all cases.

Recommendation

Apply a workaround, such as reducing the payload size or using a file-based approach, as it seems to be a more feasible and immediate solution to the issue, given the current limitations of the Claude Code app's approval dialog.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Approval dialog unscrollable when Bash command contains large payload [1 comments, 2 participants]