Commit cb2e2e7
committed
Restore redundant cd rejection in bash tool
Reverted from educational note back to rejection behavior. When a command tries
to cd into the current working directory (e.g., 'cd /workspace && command'), the
bash tool now rejects it with a clear error message.
Changes:
- Replaced educational note with redundant cd detection and rejection
- Uses runtime.normalizePath() for cross-runtime path comparison
- Works correctly for both local and SSH runtimes
- Updated tests to verify rejection behavior1 parent 526ab91 commit cb2e2e7
2 files changed
+35
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1173 | 1173 | | |
1174 | 1174 | | |
1175 | 1175 | | |
1176 | | - | |
| 1176 | + | |
1177 | 1177 | | |
1178 | 1178 | | |
1179 | 1179 | | |
| |||
1185 | 1185 | | |
1186 | 1186 | | |
1187 | 1187 | | |
1188 | | - | |
1189 | | - | |
1190 | | - | |
1191 | | - | |
1192 | | - | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
1193 | 1194 | | |
1194 | 1195 | | |
1195 | 1196 | | |
1196 | | - | |
| 1197 | + | |
1197 | 1198 | | |
1198 | 1199 | | |
1199 | 1200 | | |
1200 | 1201 | | |
1201 | 1202 | | |
1202 | | - | |
| 1203 | + | |
1203 | 1204 | | |
1204 | 1205 | | |
1205 | 1206 | | |
1206 | 1207 | | |
1207 | 1208 | | |
1208 | | - | |
1209 | | - | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
1210 | 1216 | | |
1211 | 1217 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
84 | 98 | | |
85 | 99 | | |
86 | 100 | | |
| |||
377 | 391 | | |
378 | 392 | | |
379 | 393 | | |
380 | | - | |
381 | 394 | | |
382 | 395 | | |
383 | 396 | | |
| |||
465 | 478 | | |
466 | 479 | | |
467 | 480 | | |
468 | | - | |
469 | 481 | | |
470 | 482 | | |
471 | 483 | | |
| |||
0 commit comments