openclaw/src
Peter Lee 0063f3076c
fix(moonshot): backfill reasoning_content on assistant tool-call replay messages (#92396)
Moonshot/Kimi requires reasoning_content on all assistant tool-call messages
when thinking is enabled. After LCM compaction, cross-model fallback, or
session repair, the replayed history may be missing this field, causing a
400 error from the Moonshot API.

Backfill an empty string to satisfy the API schema contract without
fabricating semantic reasoning content. Follows the same provider-owned
backfill pattern already used by Kimi Coding (extensions/kimi-coding/stream.ts)
and DeepSeek V4 (provider-stream-shared.ts).

Fixes #71491

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-12 17:58:43 -07:00
..
acp revert(sessions): defer session metadata sqlite 2026-06-10 16:34:06 +09:00
agents fix(moonshot): backfill reasoning_content on assistant tool-call replay messages (#92396) 2026-06-12 17:58:43 -07:00
auto-reply test: scope reply session state env 2026-06-12 12:03:40 +01:00
bindings
bootstrap
channels fix(channel): harden local setup trust (#92175) 2026-06-11 13:48:41 +00:00
chat
cli fix: clarify gateway SecretRef auth diagnostics (#92290) 2026-06-12 11:18:22 -05:00
commands feat(moonshot): add Kimi K2.7 Code support (#92554) 2026-06-12 17:37:28 -07:00
commitments fix: scope commitment heartbeat state env 2026-06-12 12:20:15 +01:00
compat
config fix doctor channel SecretRef preview (#92229) 2026-06-12 09:50:31 -05:00
context-engine docs: document remaining src helpers 2026-06-04 20:34:26 -04:00
crestodian docs: document rescue and trajectory tests 2026-06-04 20:29:59 -04:00
cron Fix disabled heartbeat one-shot cron retries (#92225) 2026-06-12 09:54:33 -05:00
daemon fix(daemon): keep unsupported service status readable 2026-06-12 12:05:22 +09:00
docs docs: document support test files 2026-06-04 20:31:55 -04:00
flows fix: preserve utils exports in doctor health tests 2026-06-11 17:32:25 +01:00
gateway Fix disabled heartbeat one-shot cron retries (#92225) 2026-06-12 09:54:33 -05:00
hooks refactor(discord): distill reply hydration tests 2026-06-10 14:54:32 +05:30
i18n docs: document remaining src helpers 2026-06-04 20:34:26 -04:00
image-generation test(image-generation): include Foundry in live image sweep 2026-06-09 15:34:28 +09:00
infra fix(outbound): honor top-level image param as send media source (#92407) (#92416) 2026-06-12 16:09:45 -04:00
interactive docs: document remaining src helpers 2026-06-04 20:34:26 -04:00
link-understanding docs: document link understanding 2026-06-04 18:41:10 -04:00
llm fix(moonshot): backfill reasoning_content on assistant tool-call replay messages (#92396) 2026-06-12 17:58:43 -07:00
logging Fix OTLP log trace correlation (#92276) 2026-06-12 10:54:21 -05:00
mcp fix(mcp): always log channel-bridge notification failures (#92032) 2026-06-11 08:27:45 +09:00
media fix(outbound): materialize buffer-only sends 2026-06-07 19:09:49 +09:00
media-generation
media-understanding fix(media): resolve state-relative inbound attachments (#92055) 2026-06-11 10:00:02 +09:00
memory
memory-host-sdk test(memory): drop backend config bridge test 2026-06-09 20:12:25 +09:00
model-catalog feat(moonshot): add Kimi K2.7 Code support (#92554) 2026-06-12 17:37:28 -07:00
music-generation
node-host test: scope system run helper env 2026-06-05 00:38:28 +01:00
pairing fix(qqbot): migrate group tool policy config (#91128) 2026-06-07 02:33:06 -07:00
plugin-sdk feat(moonshot): add Kimi K2.7 Code support (#92554) 2026-06-12 17:37:28 -07:00
plugin-state docs: document remaining src helpers 2026-06-04 20:34:26 -04:00
plugins feat(moonshot): add Kimi K2.7 Code support (#92554) 2026-06-12 17:37:28 -07:00
process fix(diagnostics): release wedged session lane when stuck recovery aborts with queued session work (#91802) 2026-06-11 09:59:22 +09:00
provider-runtime docs: document remaining src helpers 2026-06-04 20:34:26 -04:00
proxy-capture fix(proxy): stream debug capture bodies 2026-06-07 04:06:26 +02:00
realtime-transcription docs: document remaining src helpers 2026-06-04 20:34:26 -04:00
routing docs: document routing helpers 2026-06-04 20:25:55 -04:00
scripts test: update memory helper routing expectation 2026-06-11 02:30:35 +01:00
secrets refactor(channels): remove bundled contract fallbacks 2026-06-10 13:05:24 +05:30
security fix(gateway): restrict non-owner loopback tools (#91749) 2026-06-09 13:15:48 -07:00
sessions fix(sessions): derive channel from direct-chat session keys in send-policy (#92022) 2026-06-11 08:28:21 +09:00
shared fix(anthropic): repair Mythos contract types 2026-06-11 11:15:47 +09:00
skills fix: avoid support write shadowed variable 2026-06-11 17:32:25 +01:00
state test(sqlite): add state perf query plan harness 2026-06-11 14:49:26 -07:00
status fix(status): restore Codex synthetic usage line 2026-06-10 01:32:33 +09:00
talk docs: document talk helpers 2026-06-04 20:17:42 -04:00
tasks fix: unblock timed cron cancellation 2026-06-09 01:22:29 +01:00
test-helpers test: route state dir env helper 2026-06-12 12:22:12 +01:00
test-utils fix: add test env delete helper 2026-06-12 12:06:12 +01:00
tools fix(tools): surface unsupported-signal in anyOf availability (#92029) 2026-06-11 08:30:04 +09:00
trajectory docs: document rescue and trajectory tests 2026-06-04 20:29:59 -04:00
transcripts
tts fix(tts): preserve async model discovery 2026-06-11 11:11:23 +09:00
tui perf(tui): prewarm runtime plugins before first send (#90782) 2026-06-09 11:30:28 -07:00
types
utils test(reply-queue): cover overflow mutation during drain 2026-06-08 22:03:11 +05:30
video-generation docs: document video generation helpers 2026-06-04 20:24:49 -04:00
web
web-fetch test: confine web fetch key env 2026-06-05 02:12:53 +01:00
web-search docs: document remaining src helpers 2026-06-04 20:34:26 -04:00
wizard fix(wizard): report keyless web search providers as ready 2026-06-11 23:18:49 +09:00
browser-lifecycle-cleanup.test.ts
browser-lifecycle-cleanup.ts
docker-build-cache.test.ts
docker-image-digests.test.ts
docker-setup.e2e.test.ts fix(qqbot): migrate group tool policy config (#91128) 2026-06-07 02:33:06 -07:00
dockerfile.test.ts fix(docker): bundle QA Lab runtime in the image (#92087) 2026-06-12 14:02:32 +10:00
entry.compile-cache.test.ts
entry.compile-cache.ts
entry.respawn.test.ts
entry.respawn.ts
entry.root-help-fast-path.test.ts
entry.test.ts
entry.ts
entry.version-fast-path.test.ts
entry.version-fast-path.ts
extensionAPI.ts
global-state.ts
globals.ts
index.test.ts
index.ts
install-sh-version.test.ts
library.test.ts
library.ts
logger.test.ts
logger.ts
logging.ts
param-key.ts
plugin-activation-boundary.test.ts
poll-params.test.ts
poll-params.ts
polls.test.ts
polls.ts
runtime.ts
ui-app-settings.agents-files-refresh.test.ts
utils.test.ts test: scope utility home env 2026-06-04 23:06:33 +01:00
utils.ts
version.test.ts
version.ts