Commit Graph

5149 Commits

Author SHA1 Message Date
Peter Steinberger
d40dc8f025 refactor: dedupe agent lowercase helpers 2026-04-07 17:50:37 +01:00
Peter Steinberger
d56fe040b4 refactor: dedupe agent lowercase helpers 2026-04-07 17:50:37 +01:00
Peter Steinberger
9e61209780 refactor: dedupe agent lowercase helpers 2026-04-07 17:50:37 +01:00
pgondhi987
f0c9978030 fix(feishu): enforce workspace-only localRoots in docx upload actions [AI-assisted] (#62369)
* fix: address issue

* docs(changelog): add feishu workspace-only docx entry

---------

Co-authored-by: Devin Robison <drobison@nvidia.com>
2026-04-07 10:35:03 -06:00
Josh Lehman
e46e32b98c feat: expose prompt-cache runtime context to context engines (#62179)
* Context engine: plumb prompt cache runtime context

Add a typed prompt-cache payload to the context-engine runtime context and populate it from the embedded runner's resolved retention, last-call usage, cache-break observation, and cache-touch metadata. Also pass the same payload through the retry compaction runtime context when a run attempt already has it.

Regeneration-Prompt: |
  Expose OpenClaw prompt-cache telemetry to context engines in a narrow,
  additive way without changing compaction policy. Keep the public change on
  the OpenClaw side only: add a typed promptCache payload to the context-engine
  runtime context, thread it into afterTurn, and also into compact where the
  existing run loop already has the data cheaply available.

  Use OpenClaw's resolved cache retention, not raw config. Use last-call usage
  for the new payload, not accumulated retry or tool-loop totals. Reuse the
  existing prompt-cache observability result and tracked change causes instead
  of inventing a new heuristic. If cache-touch metadata is already available
  from the cache-TTL bookkeeping, include it; do not invent expiry timestamps
  for providers where OpenClaw cannot know them confidently.

  Keep the interface backward-compatible for engines that ignore the new field.
  Add focused tests around the existing attempt/context-engine helpers and the
  compaction runtime-context propagation path rather than broad new integration
  coverage.

* Agents: fix prompt-cache afterTurn usage

Regeneration-Prompt: |
  Fix PR #62179 so context-engine prompt-cache metadata uses only the current attempt's usage. The review comment pointed out that early exits could reuse a prior turn's assistant usage when no new assistant message was produced. Restrict the prompt-cache lastCallUsage lookup to assistant messages added after prePromptMessageCount, and fall back to current-attempt usage totals instead of stale snapshot history. Also repair the PR's new context-engine test typings and add a regression test for the stale prior-turn case. Two import-only fixes in doctor-state-integrity and config/talk were already broken on origin/main, but they blocked build/check and the gateway-watch regression harness, so include the minimum unblocking imports as well.

* Agents: document prompt-cache context

* Agents: address prompt-cache review feedback

* Doctor: drop unused isRecord import
2026-04-07 09:29:57 -07:00
Peter Steinberger
8cee6f96e6 fix(test): isolate provider auth env marker mocks 2026-04-07 16:44:41 +01:00
Peter Steinberger
9d4b0d551d fix: support inferrs string-only completions 2026-04-07 15:55:20 +01:00
Peter Steinberger
c3074bd513 refactor: dedupe path lowercase helpers 2026-04-07 15:53:50 +01:00
Peter Steinberger
17a8c896a4 Tests: relax serialized models write ordering 2026-04-07 15:29:29 +01:00
Peter Steinberger
d3b359a1c2 fix: stabilize agent and config isolation 2026-04-07 15:28:46 +01:00
Peter Steinberger
8894dab3c4 fix(auth): resolve custom env markers dynamically 2026-04-07 15:17:31 +01:00
Peter Steinberger
bcaa195c52 fix(test): restore agentic and runtime shard coverage 2026-04-07 15:16:03 +01:00
Peter Steinberger
1f48ee8f9c refactor: dedupe remaining lowercase helpers 2026-04-07 15:12:32 +01:00
Peter Steinberger
9314bb7180 refactor: dedupe extension lowercase helpers 2026-04-07 15:12:32 +01:00
Peter Steinberger
a903936750 refactor: dedupe core lowercase helpers 2026-04-07 15:12:32 +01:00
Peter Steinberger
602e45af94 fix: restore ci type compatibility 2026-04-07 13:44:42 +01:00
Tak Hoffman
97c031a8db feat: Add first-class infer CLI for inference workflows (#62129)
* refresh infer branch onto latest main

* flatten infer media commands

* fix tts runtime facade export

* validate explicit web search providers

* fix infer auth logout persistence
2026-04-07 07:11:19 -05:00
Peter Steinberger
65aab4bb27 fix: tighten lowercase helper typing 2026-04-07 13:01:50 +01:00
Peter Steinberger
8e4eaec394 refactor: dedupe agent lowercase helpers 2026-04-07 13:01:23 +01:00
Peter Steinberger
0cbf99ab42 refactor: dedupe agent tool lowercase helpers 2026-04-07 13:01:23 +01:00
Peter Steinberger
da6ca1c094 refactor: dedupe sandbox lowercase helpers 2026-04-07 13:01:23 +01:00
Peter Steinberger
50265c8b1f refactor: dedupe agent lowercase helpers 2026-04-07 13:01:23 +01:00
Peter Steinberger
0161872c41 Tests: stabilize auth profile and subagent resume specs 2026-04-07 20:00:14 +08:00
Peter Steinberger
1cec37184c fix: harden qa memory dreaming sweep 2026-04-07 12:57:33 +01:00
Peter Steinberger
98822fdd63 Agents: isolate SSE MCP transport fetch 2026-04-07 12:41:11 +01:00
Peter Steinberger
b03522bcd8 Tests: stabilize bundle MCP SSE materialization 2026-04-07 12:32:06 +01:00
Peter Steinberger
c541a9c110 Tests: fix flaky shard expectations 2026-04-07 12:22:51 +01:00
Val Alexander
922459dda0 fix(google): preserve Gemma 4 thinking-off semantics (#62411) thanks @BunsDev
Co-authored-by: Nova <nova@openknot.ai>
2026-04-07 06:20:56 -05:00
Peter Steinberger
37a7baf270 refactor: dedupe agent lowercase helpers 2026-04-07 12:18:22 +01:00
Peter Steinberger
a20d96ae31 test: stabilize isolated runtime and config suites 2026-04-07 11:41:02 +01:00
Peter Steinberger
1fdb013599 refactor: dedupe routing lowercase helpers 2026-04-07 11:18:18 +01:00
Peter Steinberger
967ecddfed refactor: dedupe extension lower readers 2026-04-07 11:18:18 +01:00
Peter Steinberger
6bd6f4d27c refactor: dedupe shared lowercase helpers 2026-04-07 11:18:18 +01:00
Peter Steinberger
fbdb20ffd3 refactor: dedupe reply lowercase helpers 2026-04-07 11:18:18 +01:00
Peter Steinberger
55f07e0381 refactor: dedupe shared string normalizers 2026-04-07 11:18:18 +01:00
Peter Steinberger
a5efc9a6c9 refactor: dedupe acp reply lowercase helpers 2026-04-07 10:37:39 +01:00
Peter Steinberger
f54a57b80a refactor: dedupe lowercase string helpers 2026-04-07 10:37:39 +01:00
Peter Steinberger
f1bdfca1ed refactor: dedupe reply gateway helpers 2026-04-07 10:37:39 +01:00
Peter Steinberger
255abc57b9 refactor: dedupe thread id normalizers 2026-04-07 10:37:39 +01:00
Peter Steinberger
edfc8eb91a refactor: dedupe primary string helpers 2026-04-07 10:37:39 +01:00
Peter Steinberger
c2f9de3935 feat: unify live cli backend probes 2026-04-07 10:35:24 +01:00
Peter Steinberger
649de6d156 refactor: dedupe provider and channel string helpers 2026-04-07 09:44:53 +01:00
Peter Steinberger
b697cec223 refactor: dedupe gateway and flow string helpers 2026-04-07 09:44:53 +01:00
Peter Steinberger
6236db5192 refactor: dedupe runtime helper aliases 2026-04-07 09:44:53 +01:00
Peter Steinberger
365d5a410b refactor: dedupe trim string helpers 2026-04-07 09:44:53 +01:00
Peter Steinberger
8119915664 refactor: dedupe metadata string helpers 2026-04-07 09:44:53 +01:00
Peter Steinberger
9d8d1dd4c5 refactor: dedupe shared string aliases 2026-04-07 09:44:53 +01:00
Peter Steinberger
f336d8c948 refactor: dedupe helper string aliases 2026-04-07 09:44:53 +01:00
Peter Steinberger
d56831f81b fix: align gemini cli live backend runs 2026-04-07 09:06:09 +01:00
Peter Steinberger
0af808b457 test: add cli backend live matrix metadata 2026-04-07 09:06:09 +01:00