Commit 720ec9d
authored
🤖 Disable file_edit_replace_lines tool (#219)
Disables the `file_edit_replace_lines` tool by removing it from the
available tools list.
## Why
This tool frequently causes models (particularly GPT-5-Codex) to leave
the repository in a broken state. Models struggle with line-based edits
when:
- Files are modified concurrently
- Line numbers are miscalculated
- They don't account for previous edits in the same session
## Changes
- Commented out tool creation in `getToolsForModel()` baseTools
- Commented out tool name in `getAvailableTools()` list
- Commented out import (no longer used)
## Backwards Compatibility
Tool definition and implementation remain intact so old history messages
continue to render correctly. The tool simply won't be available for new
messages.
## Alternatives
Models should use:
- `file_edit_replace_string` - More reliable, based on exact text
matching
- `file_edit_insert` - Simpler for adding new content
_Generated with `cmux`_1 parent 3da59b2 commit 720ec9d
2 files changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
0 commit comments