Skip to content

Add full OpenClaw tool-activity compatibility #4892

Description

@CompleteDotTech

Add full OpenClaw tool-activity compatibility

Beads: cave-trt.7

Extend Cave's bridge contract in src/lib/openclaw-bridge.ts; it currently declares streaming: false and toolEvents: false, so this requires versioned gateway/bridge event negotiation rather than stdout parsing. OpenClaw is not installed on the development host. Start with gateway/runtime version and schema hash discovery; docs: https://docs.openclaw.ai/agent, https://docs.openclaw.ai/agent-loop, and https://github.com/openclaw/openclaw/blob/main/docs/gateway/protocol.md.

Shared acceptance criteria

  • Full live and persisted tool activity: running/completed/error, stable IDs, inputs/outputs, resume, and accessible status.
  • Discover the local runtime version and capabilities; resolve only a validated signed registry schema with offline cache and rollback protection.
  • Support concurrent schema versions and compatible schema refreshes without a Cave UI release.
  • On unsupported versions or unknown events, retain plain chat and show a visible diagnostic; do not silently lose tool activity or log sensitive payloads.
  • Cover every supported schema version and fallback with fixture-based conformance tests; preserve backward compatibility.

Bead metadata

  • Bead ID: cave-53iko

  • Status: blocked

  • Priority: P1

  • Surface: Missing

  • Authoritative owner: Val Alexander

  • Labels: compatibility, github, tool-activity

  • Parent: None

  • Dependencies: cave-53iko.4

  • Unresolved blockers: cave-53iko.4

External reference

#3847

Source of truth

Beads is authoritative. This draft card is a GitHub Teamwork visibility mirror and should be reconciled from the Bead rather than edited as an independent task.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions