gemini-cli - ✅(Solved) Fix Edit and WriteFile tools not showing file being modified [1 pull requests, 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
google-gemini/gemini-cli#24936Fetched 2026-04-09 08:17:08
View on GitHub
Comments
1
Participants
2
Timeline
14
Reactions
0
Assignees
Timeline (top)
referenced ×4labeled ×3added_to_project_v2 ×1assigned ×1

Fix Action

Fixed

PR fix notes

PR #24974: fix(cli): restore file path display in edit and write tool confirmations

Description (problem / solution / changelog)

Summary

This PR fixes a UI regression where the target file path was missing from the Edit and WriteFile tool confirmation prompts.

Details

PR #24376 introduced a new UI layout for tool confirmations but suppressed the tool.description for tools using the edit confirmation type. Since Edit and WriteFile rely on their tool description to communicate the target file path (e.g., ✓ Edit src/main.ts), this suppression caused only the generic tool name to be displayed, hiding crucial context from the user.

This change removes the !isEdit restriction in ToolConfirmationQueue.tsx, restoring the description visibility for edit tool confirmations.

Related Issues

Fixes #24936

How to Validate

  1. Start the CLI and run a command that triggers an edit, e.g., "Add a comment to the top of packages/cli/src/nonInteractiveCli.ts".
  2. When prompted for confirmation, verify that the header displays the tool description, which includes the file path (e.g., ? Edit packages/cli/src/nonInteractiveCli.ts).
  3. This should also work similarly for the WriteFile tool when creating a new file.

Pre-Merge Checklist

  • Updated relevant documentation and README (if needed)
  • Added/updated tests (if needed)
  • Noted breaking changes (if any)
  • Validated on required platforms/methods:
    • MacOS
      • npm run
      • npx
      • Docker
      • Podman
      • Seatbelt
    • Windows
      • npm run
      • npx
      • Docker
    • Linux
      • npm run
      • npx
      • Docker

Changed files

  • packages/cli/src/ui/__snapshots__/ToolConfirmationFullFrame-Full-Terminal-Tool-Confirmation-Snapshot-renders-tool-confirmation-box-in-the-frame-of-the-entire-terminal.snap.svg (modified, +2/-1)
  • packages/cli/src/ui/__snapshots__/ToolConfirmationFullFrame.test.tsx.snap (modified, +1/-1)
  • packages/cli/src/ui/components/ToolConfirmationQueue.test.tsx (modified, +38/-0)
  • packages/cli/src/ui/components/ToolConfirmationQueue.tsx (modified, +2/-2)
  • packages/cli/src/ui/components/__snapshots__/ToolConfirmationQueue-ToolConfirmationQueue-height-allocation-and-layout-should-render-the-full-queue-wrapper-with-borders-and-content-for-large-edit-diffs.snap.svg (modified, +2/-1)
  • packages/cli/src/ui/components/__snapshots__/ToolConfirmationQueue.test.tsx.snap (modified, +3/-3)
  • packages/cli/src/ui/components/messages/DenseToolMessage.test.tsx (modified, +22/-0)
RAW_BUFFERClick to expand / collapse

The Edit and WriteFile tools are no longer showing the file they are modifying...

<img width="2408" height="1327" alt="Image" src="https://github.com/user-attachments/assets/cae63359-3d35-4ae9-867d-e2890bb7c4c9" />

This is critical information to have in order to properly allow edits or writes

extent analysis

TL;DR

  • The issue may be resolved by investigating and fixing the display or rendering of file information for the Edit and WriteFile tools.

Guidance

  • Verify that the file information is being correctly retrieved and passed to the Edit and WriteFile tools.
  • Check the UI components responsible for displaying the file information to ensure they are correctly configured and functioning as expected.
  • Investigate any recent changes to the code or configuration that may have affected the display of file information.

Notes

  • Without more detailed information about the code or configuration, it's difficult to provide a more specific solution.
  • The issue may be related to a bug or regression in the code, or a misconfiguration of the UI components.

Recommendation

  • Apply workaround: Temporarily revert any recent changes to the code or configuration to see if the issue is resolved, and then incrementally reapply changes to identify the root cause.

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