@@ -3,8 +3,6 @@ import * as path from "path"
33
44import { TerminalOutputPreviewSize , TERMINAL_PREVIEW_BYTES , PersistedCommandOutput } from "@roo-code/types"
55
6- import { processCarriageReturns , processBackspaces } from "../misc/extract-text"
7-
86/**
97 * Configuration options for creating an OutputInterceptor instance.
108 */
@@ -19,8 +17,6 @@ export interface OutputInterceptorOptions {
1917 storageDir : string
2018 /** Size category for the preview buffer (small/medium/large) */
2119 previewSize : TerminalOutputPreviewSize
22- /** Whether to compress progress bar output using carriage return processing */
23- compressProgressBar : boolean
2420}
2521
2622/**
@@ -46,7 +42,6 @@ export interface OutputInterceptorOptions {
4642 * command: 'npm test',
4743 * storageDir: '/path/to/task/command-output',
4844 * previewSize: 'medium',
49- * compressProgressBar: true
5045 * });
5146 *
5247 * // Write output chunks as they arrive
@@ -66,7 +61,6 @@ export class OutputInterceptor {
6661 private totalBytes : number = 0
6762 private spilledToDisk : boolean = false
6863 private readonly previewBytes : number
69- private readonly compressProgressBar : boolean
7064
7165 /**
7266 * Creates a new OutputInterceptor instance.
@@ -75,7 +69,6 @@ export class OutputInterceptor {
7569 */
7670 constructor ( private readonly options : OutputInterceptorOptions ) {
7771 this . previewBytes = TERMINAL_PREVIEW_BYTES [ options . previewSize ]
78- this . compressProgressBar = options . compressProgressBar
7972 this . artifactPath = path . join ( options . storageDir , `cmd-${ options . executionId } .txt` )
8073 }
8174
@@ -143,9 +136,6 @@ export class OutputInterceptor {
143136 * - The path to the full output file (if truncated)
144137 * - A flag indicating whether the output was truncated
145138 *
146- * If `compressProgressBar` was enabled, the preview will have carriage returns
147- * and backspaces processed to show only final line states.
148- *
149139 * @returns The persisted command output summary
150140 *
151141 * @example
@@ -165,13 +155,7 @@ export class OutputInterceptor {
165155 }
166156
167157 // Prepare preview
168- let preview = this . buffer . slice ( 0 , this . previewBytes )
169-
170- // Apply compression to preview only (for readability)
171- if ( this . compressProgressBar ) {
172- preview = processCarriageReturns ( preview )
173- preview = processBackspaces ( preview )
174- }
158+ const preview = this . buffer . slice ( 0 , this . previewBytes )
175159
176160 return {
177161 preview,
0 commit comments