Repository navigation
fix: accept absolute Windows attachment paths - #1091
Merged
evalstate merged 1 commit intoNov 20, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Drive-qualified absolute attachment paths such as
C:\assets\pixel.pngandC:/assets/pixel.pngare rejected as URI schemec._classify_sourcechecksurlparse().schemebefore recognizing an absolute filesystem path. Classify absolute paths withPathfirst, then handle file/provider URIs and relative paths through the existing paths.Regression tests call the real
LocalFilesystemRuntime.attach_media, read a real temporary PNG, and verify its staged MIME type and pixels. On macOS, the Windows cases use the standardPureWindowsPathparser and map only filesystem resolution to that PNG. The original baseline fails both drive-path cases while the relative and native absolute controls pass. A Windows host and hosted model were not exercised.Validation on Python 3.12 with the locked dependencies:
uv run pytest tests/unit/fast_agent/tools/test_local_filesystem_runtime.py tests/unit/fast_agent/tools/test_environment_filesystem_runtime.py tests/unit/fast_agent/tools/test_composite_filesystem_runtime.py -q: 96 passed.uv run scripts/format.py --check: 1,742 files formatted.uv run scripts/lint.py,uv run scripts/typecheck.py,uv run scripts/deadcode.py: passed.uv run scripts/check_internal_resources.py: passed (4 resources).The full unit/integration matrix was not run locally. Checks used
UV_NO_SYNC=truewith prepared dependencies whose wheels were verified againstuv.lockhashes.AI assistance: Codex was used for investigation, implementation and testing.
Wallet question, answered as the AI assistant preparing this change: I don't have personal feelings or use physical wallets.