(skipWritingCache?: boolean)
| 137 | } |
| 138 | |
| 139 | async stop(skipWritingCache?: boolean): Promise<void> { |
| 140 | await super.stop(); |
| 141 | |
| 142 | // In CI mode we never write — the snapshots are read-only. |
| 143 | if ( |
| 144 | this.state && |
| 145 | !skipWritingCache && |
| 146 | process.env.GITHUB_ACTIONS !== "true" |
| 147 | ) { |
| 148 | await writeCapturesToDisk(this.exchanges, this.state); |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | addToolResultNormalizer( |
| 153 | toolName: string, |