Commit 2c815db
fix(adk): normalize path separators in InMemoryBackend for Windows compatibility
On Windows, filepath.Clean converts forward slashes to backslashes,
but all path operations in LsInfo, GlobInfo, GrepRaw, Read, Write, and
Edit hardcode "/" as the path separator. This mismatch causes every
prefix check to fail, making the InMemoryBackend completely unusable
on Windows.
The fix wraps filepath.Clean with filepath.ToSlash to ensure paths
always use forward slashes internally, matching the hardcoded "/"
separators used throughout the backend.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 30f5961 commit 2c815db
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
697 | 697 | | |
698 | 698 | | |
699 | 699 | | |
700 | | - | |
| 700 | + | |
| 701 | + | |
701 | 702 | | |
702 | 703 | | |
703 | 704 | | |
| |||
0 commit comments