Skip to content

fix: Show "edit" instead of "create" in permission prompt for existing files#1538

Open
charlesvien wants to merge 1 commit into04-07-remove_double_scrollbar_from_repo_selectorfrom
04-07-show_edit_instead_of_create_in_permission_prompt_for_existing_files
Open

fix: Show "edit" instead of "create" in permission prompt for existing files#1538
charlesvien wants to merge 1 commit into04-07-remove_double_scrollbar_from_repo_selectorfrom
04-07-show_edit_instead_of_create_in_permission_prompt_for_existing_files

Conversation

@charlesvien
Copy link
Copy Markdown
Member

@charlesvien charlesvien commented Apr 7, 2026

Problem

Write tool permission prompts always say "Create new file" even when overwriting an existing file, because the old file content was never resolved during the permission request flow.

Closes #1529

Changes

  1. Add disk-read fallback in Write tool case when file isn't in the content cache
  2. Pass fileContentCache and cwd to toolInfoFromToolUse in permission flow so cached content and relative paths are available

How did you test this?

Manually

@charlesvien charlesvien changed the title Show "edit" instead of "create" in permission prompt for existing files fix: Show "edit" instead of "create" in permission prompt for existing files Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant