Skip to content

revert: remove foreign-OS path rejection from filesystem tool - #4222

Merged
dgageot merged 2 commits into
docker:mainfrom
dgageot:worktree-board-9cf37808ca705b3a
Sep 10, 2026
Merged

revert: remove foreign-OS path rejection from filesystem tool#4222
dgageot merged 2 commits into
docker:mainfrom
dgageot:worktree-board-9cf37808ca705b3a

Conversation

@dgageot

@dgageot dgageot commented Sep 10, 2026

Copy link
Copy Markdown
Member

The previous commit introduced logic to detect and reject file paths intended for a different operating system (e.g., Windows-style paths on Linux), along with working-directory instructions and path resolution hints surfaced to the agent. After further consideration, this approach adds unnecessary complexity and makes the filesystem tool more brittle without a clear benefit — legitimate paths can match the heuristics, and the agent already handles working-directory context through other means.

This reverts commit cec4ba4. The filesystem tool is restored to its prior behavior: it accepts any path without OS-validation gates. The related test cases covering foreign-path rejection are removed, and the test cassettes are updated to reflect the simpler tool output format.

No behavior changes outside the reverted feature. Builds, tests, and linter all pass.

…ath resolution"

This reverts commit cec4ba4.

Assisted-By: Claude
@dgageot
dgageot requested a review from a team as a code owner September 10, 2026 13:28
@aheritier aheritier added area/testing Test infrastructure, CI/CD, test runners, evaluation area/tools For features/issues/fixes related to the usage of built-in and MCP tools status/needs-triage For issues that need to be triaged labels Sep 10, 2026

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Review did not complete — The agent ran but did not post a review. View logs for details. Re-request a review from docker-agent to retry.

@dgageot
dgageot merged commit 010aab8 into docker:main Sep 10, 2026
14 checks passed
pull Bot pushed a commit to TheTechOddBug/cagent that referenced this pull request Sep 11, 2026
…om filesystem tool

PR docker#4222 reverted the foreign-OS absolute-path rejection and the
resolved-path error hint that were added by an earlier filesystem
change. The filesystem tool docs still described both behaviors as
current, which is no longer accurate:

- Absolute paths are once again used as-is instead of being validated
  against the host OS and rejected when they look foreign.
- "Not found" errors no longer include the resolved absolute path.

Source PR: docker#4222
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/testing Test infrastructure, CI/CD, test runners, evaluation area/tools For features/issues/fixes related to the usage of built-in and MCP tools status/needs-triage For issues that need to be triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants