* List background tasks for this session's interactive agent. * * Defaults to all tasks (including terminal/lost). Pass * `{ activeOnly: true }` to filter to non-terminal entries.
(
options: { activeOnly?: boolean; limit?: number } = {},
)
| 303 | * `{ activeOnly: true }` to filter to non-terminal entries. |
| 304 | */ |
| 305 | async listBackgroundTasks( |
| 306 | options: { activeOnly?: boolean; limit?: number } = {}, |
| 307 | ): Promise<readonly BackgroundTaskInfo[]> { |
| 308 | this.ensureOpen(); |
| 309 | return this.rpc.listBackgroundTasks({ |
| 310 | sessionId: this.id, |
| 311 | activeOnly: options.activeOnly, |
| 312 | limit: options.limit, |
| 313 | }); |
| 314 | } |
| 315 | |
| 316 | /** |
| 317 | * Read a background task's captured output. Returns the in-memory |
no test coverage detected