🤖 fix: auto-correct redundant absolute paths with warning #503
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.
Problem
Terminal-bench agents hit "Redundant path prefix" errors on 55% of tasks (44/80) when using absolute paths like
/app/file.txt. This wastes tool calls as agents retry with relative paths—particularly affecting QEMU (80% fail), Git (83% fail), and Security (75% fail) categories.Solution
Changed
validateNoRedundantPrefixto auto-correct paths while keeping the warning. Tools now use the corrected path and include:"Using relative paths like 'file.txt' instead of '/app/file.txt' saves tokens. The path has been auto-corrected for you."Expected impact: +5-8pp pass rate improvement. Combined with merged 30-min timeout, targeting 60-65% pass rate.
Generated with
cmux