Commit 7538e12
Eric Wheeler
fix: preserve content integrity in VS Code LM provider
The provider was modifying system information and model responses by
stripping escape sequences and performing other transformations.
The issue was discovered when attempting to use escape sequences like '\x1b'
in text, which were being removed by the cleanTerminalOutput method. This
caused problems in scenarios where escape sequences needed to be preserved,
such as when working with terminal control codes.
It is not the responsibility of the provider to modify input/output
to and from the model. Roo expects all communication through different
providers to be clean so that it can manage transformation centrally.
Signed-off-by: Eric Wheeler <[email protected]>1 parent ae43cd5 commit 7538e12
1 file changed
+3
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | 285 | | |
327 | 286 | | |
328 | 287 | | |
329 | 288 | | |
330 | 289 | | |
331 | 290 | | |
332 | | - | |
| 291 | + | |
333 | 292 | | |
334 | 293 | | |
335 | 294 | | |
| |||
352 | 311 | | |
353 | 312 | | |
354 | 313 | | |
355 | | - | |
356 | | - | |
| 314 | + | |
357 | 315 | | |
358 | 316 | | |
359 | 317 | | |
360 | 318 | | |
361 | 319 | | |
362 | 320 | | |
363 | 321 | | |
364 | | - | |
| 322 | + | |
365 | 323 | | |
366 | 324 | | |
367 | 325 | | |
| |||
0 commit comments