mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 03:45:46 -06:00
436557b8e9
Proving headline-plus-tool-line composition needs assistant text emitted *before* a tool call: that leading text is what gets tagged as commentary and rendered as the draft's status headline. The mock could only echo a single token, so the draft path was unreachable without a live model. Trigger `OPENCLAW_E2E_DRAFTPROOF` now serves two turns — preamble plus a shell call, then the final answer — on both /v1/responses and /v1/chat/completions. Only the completions transport tags commentary today, which is why the completions path matters here. Used to record the draft live on real Telegram: one message carrying the headline above the tool line, the final answer, then the draft edited to its receipt.