Skip to content

Gateway RPC: add SDK-facing task ledger APIs #74707

@BunsDev

Description

@BunsDev

Goal

Expose background/detached work through SDK-facing task ledger RPCs.

The SDK has task nouns, and OpenClaw already has background activity concepts. External apps need a stable way to show subagents, ACP jobs, cron-like jobs, CLI tasks, and async work without reading internal session logs.

Proposed methods

  • tasks.list
  • tasks.get
  • tasks.cancel

Acceptance criteria

  • Tasks have stable IDs and statuses.
  • Tasks can be filtered by status, agent, and session.
  • Cancellation has a clear result contract.
  • Run/task/session relationships are visible when known.
  • @openclaw/sdk task namespace can stop throwing unsupported for these basics.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions