Files
Jiang Bohan 4896128723 feat(agent): improve OpenClaw backend with streaming, tool use, and model args
P0 improvements to the OpenClaw agent backend, informed by PaperClip's
adapter architecture:

1. Streaming output — emit MessageText as NDJSON events arrive, instead
   of waiting for the final result blob. Users now see real-time progress.

2. Tool use support — parse and emit MessageToolUse / MessageToolResult
   from streaming events, matching the Claude and OpenCode backends.

3. Model & system prompt — pass --model and --system-prompt to the
   OpenClaw CLI when configured, previously silently ignored.

The implementation supports both the new streaming NDJSON format and the
legacy single-blob result format for backwards compatibility.

Closes MUL-726
2026-04-14 01:37:49 +08:00
..