MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / listBackgroundTasks

Method listBackgroundTasks

packages/node-sdk/src/session.ts:305–314  ·  view source on GitHub ↗

* 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 } = {},
  )

Source from the content-addressed store, hash-verified

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

Callers 5

runBuiltInCommandMethod · 0.80
showMethod · 0.80
refreshMethod · 0.80

Calls 1

ensureOpenMethod · 0.95

Tested by

no test coverage detected