Including a test harness for it, and making sure the cursor is always at the end.

This commit is contained in:
Evan Senter
2025-04-18 18:14:45 +01:00
parent 3829ac6353
commit 97db77997f
12 changed files with 3269 additions and 67 deletions

View File

@@ -142,10 +142,7 @@ export class TerminalTool extends BaseTool<
private rejectShellReady: ((reason?: any) => void) | undefined; // Definite assignment assertion
private readonly backgroundTerminalAnalyzer: BackgroundTerminalAnalyzer;
constructor(
rootDirectory: string,
outputLimit: number = MAX_OUTPUT_LENGTH,
) {
constructor(rootDirectory: string, outputLimit: number = MAX_OUTPUT_LENGTH) {
const toolDisplayName = 'Terminal';
// --- LLM-Facing Description ---
// Updated description for background tasks to mention polling and LLM analysis