fix: add resolve source path#1697
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a path resolution helper _resolve_save_source in sender.py to handle cross-machine synchronization scenarios where the original absolute source_path is unreadable. It implements fallback logic to look up files within the run's files directory, and updates upload_save to use this resolved path. Comprehensive unit tests are also added to verify this fallback behavior. The reviewer pointed out a potential cross-platform issue where Windows-style backslashes in save.source_path or save.name would fail to resolve correctly on POSIX systems, and suggested using PureWindowsPath to normalize the paths.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Description
save逻辑的 path 解析问题Close: #1691