Repository navigation
fix(shell): check a Windows path written with backslashes - #5794
Conversation
On Windows the shell tool tokenised commands with POSIX escaping, so the path check saw C:\Windows\win.ini as C:Windowswin.ini while cmd.exe ran the real path. Backslashes are now literal when the step runs in cmd.exe.
|
Verdict: Approve with suggestions On Windows, a command that named a file with backslashes (
Real-world evidenceN/A: no evidence bundle for this run, and the change is a Windows-only parsing fix in the shell tool's guard with no CLI, API or UI surface that changes visibly. The verdict rests on static review alone. The end-to-end refusal test only runs on Windows, and I couldn't run the tests here because pytest isn't installed in this runner. 🔍 Technical detailsIssues 🟡 cmd.exe caret escape still disagrees with the tokenizer ( 🟢 Nit: one-time-approval scan still uses raw Strengths
|
The path check now also tests the caret-free reading of an operand in the cmd dialect, and the one-time-approval scan splits argv with the shared tokenizer.
|
Both points are addressed:
Shell unit tests pass locally (1600 passed, 53 skipped); black and isort are clean. |
## Why this matters v0.25.2 is a bug-fix release on top of v0.25.1: setup and install no longer stop at the first failed step, shell and file access handle Windows paths and text encodings, the Agent UI and desktop app stop showing misleading states, and document search, email and skills each lose a handful of rough edges. 55 commits since v0.25.1; notes are in `docs/releases/v0.25.2.mdx` and credit 15 outside contributors. ## Test plan - [x] `python util/validate_release_notes.py docs/releases/v0.25.2.mdx --tag v0.25.2` passes - [x] `mintlify validate` (from `docs/`) passes - [x] `python util/check_doc_links.py --internal-only`, `python util/check_doc_versions.py` and `node installer/version/bump-ui-version.mjs --check` pass - [x] `python util/check_component_core_api.py --release-version 0.25.2` passes - [x] `pytest tests/unit/test_docs_json_release.py tests/unit/test_check_component_core_api.py tests/unit/test_release_tag.py tests/unit/test_hub_core_version_gate.py`: 156 passed - [ ] CI green on the merge commit - [ ] `release_train_dryrun.yml` passes on that commit before the RC tag ## Evals to re-run on the RC tag LLM-affecting PRs merged without per-PR evals; run these on `v0.25.2-rc1`: - `gaia_shell` and shell/safety (amd#5794, amd#5751, amd#5768) - `gaia_honesty` (amd#5753) - `gaia_skills_tasks` and `gaia_skills_lifecycle` (amd#5422, amd#5755) - `rag_retrieval` and `rag_quality` (amd#5742, amd#5754, amd#5761, amd#5817, amd#5812) - email scenarios (amd#5767, amd#5811) - `tool_selection` and `error_recovery` (amd#5732) - Claude provider thinking replay (amd#5072) - memory categories (amd#5818 merged; amd#5756 has not) ## Release checklist - [ ] Freeze main, wait for green CI on the exact commit, pass `release_train_dryrun.yml`, then push `v0.25.2-rc1` - [ ] Extend the changelog if main gains commits before the tag
On Windows, a shell command that named a file with backslashes could skip the check that keeps the agent inside the folders you've approved. Now Windows paths are parsed the way cmd.exe reads them, so they are checked like any other path. Tracked privately in GHSA-5vw6-p8m4-g3j8. cc @kovtcharov-amd
Test plan
python -m pytest tests/unit -k shell -n 8(5169 passed locally)python util/lint.py --black --isort