Skip to content

SDK: stabilize app-client happy path for agents, sessions, runs #74704

Description

@BunsDev

Goal

Stabilize the current @openclaw/sdk happy path for real external app clients.

OpenMeow is a useful dogfood client because it exercises the core app-SDK flow without requiring future managed/cloud features.

Happy path to validate

  1. Connect to Gateway.
  2. Discover agents/models.
  3. Create or resume a session.
  4. Send a run.
  5. Stream normalized events.
  6. Wait for a result.
  7. Cancel/stop an active run.
  8. Surface approvals.

Acceptance criteria

  • SDK APIs for agents/sessions/runs are documented as supported today.
  • Run.wait() semantics clearly distinguish wait deadline from runtime timeout.
  • Run.cancel() has reliable identifiers and result semantics for UI clients.
  • Normalized run events are stable enough for app UI state.
  • Unsupported future fields continue to throw explicit unsupported errors.

Dogfood packet

Metadata

Metadata

Labels

P2Normal backlog priority with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.maintainerMaintainer-authored PR

Type

No type

Fields

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions