Skip to content

✨ FEATURE: Include the diff preview in chat/autoApproved - #47

Merged
FernandoCelmer merged 2 commits into
masterfrom
feature/auto-approve-diff-preview
Aug 15, 2026
Merged

✨ FEATURE: Include the diff preview in chat/autoApproved#47
FernandoCelmer merged 2 commits into
masterfrom
feature/auto-approve-diff-preview

Conversation

@FernandoCelmer

Copy link
Copy Markdown
Member

Companion change for a vscodeloop UI improvement: the chat panel now
renders a file-edit's diff inline in its tool card even when
auto-approve is on. confirm() already computes tool.preview()
before deciding whether to round-trip a chat/confirmRequest — this
just forwards that same string on the chat/autoApproved path
instead of dropping it.

Test plan

  • New assertion: chat/autoApproved's params include the write's
    diff preview
  • poetry run pytest -q — 282 passed
  • poetry run ruff check / ruff format --check clean

Auto-approve skipped chat/confirmRequest entirely, so an
auto-approved write_file/edit_file/delete_file call never carried
its unified diff to the client — only chat/confirmRequest did. The
diff was already computed via tool.preview() before this notification
fires; just wasn't forwarded.
@FernandoCelmer
FernandoCelmer merged commit ae21b91 into master Aug 15, 2026
8 checks passed
@FernandoCelmer
FernandoCelmer deleted the feature/auto-approve-diff-preview branch August 25, 2026 21:31
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