Skip to content

fix(agent): harden Write path recovery - #2698

Merged
wsp1911 merged 1 commit into
GCWing:1.0.0-explorefrom
wsp1911:1.0.0-explore
Aug 31, 2026
Merged

fix(agent): harden Write path recovery#2698
wsp1911 merged 1 commit into
GCWing:1.0.0-explorefrom
wsp1911:1.0.0-explore

Conversation

@wsp1911

@wsp1911 wsp1911 commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Previously, POSIX-prefixed Windows drive paths (e.g. /C:/foo/main.py) could resolve as
drive-relative paths and write files under the process working
directory. Missing-marker fallbacks also led agents to resend
payloads unnecessarily.

Update Write handling to:

  • Normalize malformed Windows drive paths while preserving remote
    POSIX path semantics
  • Report corrected paths and provide platform-specific examples
  • Direct agents to move preserved fallback files instead of
    resubmitting content
  • Cover path normalization and fallback guidance with focused tests

Previously, POSIX-prefixed Windows drive paths (e.g. /C:/foo/main.py) could resolve as
drive-relative paths and write files under the process working
directory. Missing-marker fallbacks also led agents to resend
payloads unnecessarily.

Update Write handling to:
- Normalize malformed Windows drive paths while preserving remote
  POSIX path semantics
- Report corrected paths and provide platform-specific examples
- Direct agents to move preserved fallback files instead of
  resubmitting content
- Cover path normalization and fallback guidance with focused tests
@wsp1911
wsp1911 merged commit 20ca614 into GCWing:1.0.0-explore Aug 31, 2026
12 checks passed
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