(line: string)
| 24 | // ── Prompt stripping ────────────────────────────────────────────────────── |
| 25 | |
| 26 | function shouldStripPlanModeLine(line: string): boolean { |
| 27 | const normalized = line.trim().toLowerCase(); |
| 28 | return normalized.includes("strictly forbidden: any file edits") |
| 29 | || normalized.includes("your plan at ") |
| 30 | || normalized.includes("plan file already exists at ") |
| 31 | || normalized.includes(".opencode/plans/") |
| 32 | || normalized.includes("plan_exit") |
| 33 | || (normalized.includes("agent's conversation") && normalized.includes("not on disk")); |
| 34 | } |
| 35 | |
| 36 | function cleanupSystemEntry(entry: string): string { |
| 37 | return entry |
no outgoing calls
no test coverage detected