Skip to content

fix(acp): resolve Windows resource-link path and CRLF handling. - #85667

Closed
iamiskender wants to merge 4 commits into
NousResearch:mainfrom
iamiskender:main
Closed

fix(acp): resolve Windows resource-link path and CRLF handling.#85667
iamiskender wants to merge 4 commits into
NousResearch:mainfrom
iamiskender:main

Conversation

@iamiskender

Copy link
Copy Markdown

What - _path_from_file_uri was unconditionally translating Windows drive-letter paths (C:\...) to WSL-style /mnt/c/... paths, even when Hermes runs natively on Windows. This broke ACP resource_link resolution (FileNotFoundError) on native Windows. - _decode_text_bytes didn't normalize CRLF line endings, so inlined resource text embedded raw \r bytes when the source file was written with Windows line endings. ## Fix - Only translate to /mnt/<drive>/... when NOT running on win32; otherwise resolve to the native drive-letter path. - Normalize \r\n/\r to \n when decoding resource text. ## Testing pytest tests/acp_adapter/ — 15 passed (was 1 failing before the fix).

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/acp Agent Communication Protocol adapter platform/windows Native Windows-specific behavior or breakage sweeper:risk-platform-windows Sweeper risk: may break or behave differently on native Windows duplicate This issue or pull request already exists labels Aug 13, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

Duplicate of #40649 for the native-Windows ACP file-URI path fix. The CRLF normalization portion also overlaps #80690.

@iamiskender

Copy link
Copy Markdown
Author

Ack, thanks for the pointer — closing as duplicate of #40649 and #80690.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/acp Agent Communication Protocol adapter duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists platform/windows Native Windows-specific behavior or breakage sweeper:risk-platform-windows Sweeper risk: may break or behave differently on native Windows type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants