fix: use full paths for ACP diff payloads#19539
fix: use full paths for ACP diff payloads#19539scidomino merged 7 commits intogoogle-gemini:mainfrom
Conversation
Signed-off-by: Jagjeevan Kashid <jagjeevandev97@gmail.com>
Summary of ChangesHello @JagjeevanAK, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request resolves an issue where IDE clients were unable to correctly render diffs due to the use of incomplete file path information in ACP payloads. By transitioning to full file paths, the system now provides the necessary context for IDEs to display changes accurately, enhancing the user experience for file edits and tool results. Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
Signed-off-by: Jagjeevan Kashid <jagjeevandev97@gmail.com>
There was a problem hiding this comment.
Code Review
The pull request correctly addresses the issue of using full file paths in ACP diff payloads for IDE clients. The changes ensure that filePath is used where available, with a fallback to fileName for compatibility. This is a good fix for the reported issue.
|
hey @gundermanc can you check this PR ? |
|
hey @scidomino can you check this PR ? |
|
You have a bunch of failing tests. Please fix. Also, in the future, don't work on issues you're not assigned to. |
Signed-off-by: Jagjeevan Kashid <jagjeevandev97@gmail.com>
|
@scidomino pushed a signed-off test-only fix for the two failing zedIntegration assertions. Please re-run CI when possible. |
Signed-off-by: Jagjeevan Kashid <jagjeevandev97@gmail.com>
Signed-off-by: Jagjeevan Kashid <jagjeevandev97@gmail.com>
Summary
Use full file paths in ACP diff payloads so IDE clients can render diffs correctly.
Details
Switch diff
pathvalues fromfileNametofilePath(with fallback when emitting tool results).Related Issues
Closes #18808
How to Validate
Pre-Merge Checklist