Commit Graph

4941 Commits

Author SHA1 Message Date
Tak Hoffman
cbc2945117 remove openclaw-only tool overflow compatibility layer 2026-04-06 14:01:21 +01:00
Tak Hoffman
7fc1a74ee9 align tool-result truncation with pi semantics 2026-04-06 14:01:21 +01:00
Peter Steinberger
1c41987876 refactor(auth): split auth state from auth store 2026-04-06 13:42:44 +01:00
Peter Steinberger
ef923805f5 Revert "refactor(cli): remove custom cli backends"
This reverts commit 6243806f7b.
2026-04-06 13:40:42 +01:00
Peter Steinberger
c39f061003 Revert "refactor(cli): remove bundled cli text providers"
This reverts commit 05d351c430.
2026-04-06 13:40:41 +01:00
Vincent Koc
5fa166ed11 fix(check): repair status report typing drift 2026-04-06 13:34:08 +01:00
Peter Steinberger
7e0e2f81e5 refactor(auth): isolate external oauth overlays 2026-04-06 13:30:25 +01:00
Peter Steinberger
b04dd6d05c refactor: consolidate session history sanitization 2026-04-06 13:23:44 +01:00
Neerav Makwana
ad2df63547 fix(agents): classify Anthropic extra-usage billing (#61608) (thanks @neeravmakwana) 2026-04-06 13:21:53 +01:00
Neerav Makwana
7df5f70242 fix(agents): skip redundant partial compaction summarization (#61603) (thanks @neeravmakwana) 2026-04-06 13:21:07 +01:00
Vincent Koc
6b53a9aadb feat(video): add mode-aware generation capabilities 2026-04-06 13:19:51 +01:00
foxtrot026
02c092e558 fix(model-ref): recompute suffix after @YYYYMMDD + add @8bit test 2026-04-06 13:18:59 +01:00
foxtrot026
5208a85afe fix(model-ref): treat LM Studio/Ollama @q*/@4bit suffixes as model-id 2026-04-06 13:18:59 +01:00
Peter Steinberger
bbd0702c79 fix(agents): narrow phase-aware history hardening (#61829) (thanks @100yenadmin) 2026-04-06 20:52:27 +09:00
Eva
029ed5d32a fix: harden phase-aware history sanitization 2026-04-06 20:52:27 +09:00
Eva
4bded29f2a fix(agents): address review feedback on #61481 phase-integrity hardening 2026-04-06 20:52:27 +09:00
Eva
b099427570 fix(gateway): sanitize bounded SSE refresh + deduplicate constant
- Bounded/cursor SSE refresh path now sanitizes through
  sanitizeChatHistoryMessages before paginating, matching the
  unbounded path and initial history load.
- Export DEFAULT_CHAT_HISTORY_TEXT_MAX_CHARS from chat.ts and
  import in sessions-history-http.ts instead of duplicating.
2026-04-06 20:52:27 +09:00
Eva
7634bdeb2c fix: restore required imports and fix SSE sequence tracking 2026-04-06 20:52:27 +09:00
Eva
6f95fd448f fix(agents): address review feedback on phase hardening 2026-04-06 20:52:27 +09:00
Eva
dea515e833 fix: sanitize SSE history fast path and preserve cursor paging 2026-04-06 20:52:27 +09:00
Eva
e7311334cb fix: harden phase-aware assistant visibility 2026-04-06 20:52:27 +09:00
Qinyao He
2989b78c12 fix: address lint curly rule and remove extra blank line 2026-04-06 20:27:28 +09:00
Qinyao He
8818184da0 fix: address review — broaden sonnet-4 check, deduplicate helper
- Use `sonnet-4` substring match instead of enumerating `sonnet-4-5`,
  `sonnet-4-6` explicitly. This is safe because legacy `claude-3-5-sonnet`
  does not contain `sonnet-4`, and it future-proofs for sonnet-4-7+.
- Export `shouldPreserveThinkingBlocks` from provider-replay-helpers.ts
  and import it in transcript-policy.ts instead of duplicating the logic.

Addresses review feedback from Greptile.
2026-04-06 20:27:28 +09:00
Qinyao He
7a3514664d fix: preserve thinking blocks for Claude Opus 4.5+/Sonnet 4.5+ to fix cache
Claude Opus 4.5+ and Sonnet 4.5+ preserve thinking blocks in model context
by default. Dropping them from prior turns (as was correct for Sonnet 3.7)
breaks Anthropic's prefix-based prompt cache matching, causing cache misses
after every thinking turn.

This change conditions dropThinkingBlocks on the model version:
- Preserve (no drop) for: opus-4.x, sonnet-4.5+, haiku-4.x, and future models
- Drop for: claude-3-7-sonnet and earlier

Fixes #61793

See: https://platform.claude.com/docs/en/build-with-claude/extended-thinking#differences-in-thinking-across-model-versions
2026-04-06 20:27:28 +09:00
Peter Steinberger
b4a5156bc3 fix: restore rebased main tsgo 2026-04-06 12:16:49 +01:00
Peter Steinberger
f3c29e840c fix: restore current main ci gates 2026-04-06 12:14:26 +01:00
Ayaan Zaidi
c352fe8903 fix: filter heartbeat pairs before context shaping 2026-04-06 16:41:57 +05:30
Vincent Koc
209786bb2d fix(plugins): remove xai boundary leaks 2026-04-06 12:08:44 +01:00
David
57f9f0a08d fix: stop heartbeat transcript truncation races (#60998) (thanks @nxmxbbd) 2026-04-06 16:26:38 +05:30
Ayaan Zaidi
c0a0e295cb fix: preserve explicit node routing under elevated auto exec 2026-04-06 13:26:18 +05:30
Peter Steinberger
f7833376ea refactor: share command config resolution 2026-04-06 07:41:08 +01:00
Peter Steinberger
1d8d2ddaa1 refactor: dedupe plugin and outbound helpers 2026-04-06 07:41:08 +01:00
Peter Steinberger
c9fc6f5a56 perf(test): split extra params wrapper coverage 2026-04-06 07:32:12 +01:00
Chunyue Wang
9631e4d449 fix(anthropic): restore OAuth guard in service-tier stream wrappers (#60356)
Merged via squash.

Prepared head SHA: 7d58befec8
Co-authored-by: openperf <80630709+openperf@users.noreply.github.com>
Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com>
Reviewed-by: @jalehman
2026-04-05 22:50:39 -07:00
Peter Steinberger
0c63fccc1e perf(test): split extra params resolver coverage 2026-04-06 06:45:05 +01:00
Peter Steinberger
a1eb677241 perf(test): split subagent command coverage 2026-04-06 06:45:05 +01:00
Peter Steinberger
7c160f2402 perf(test): trim subagent command imports 2026-04-06 06:03:25 +01:00
Vincent Koc
9ba97ceaed perf(agents): add continuation-skip context injection (#61268)
* test(agents): cover continuation bootstrap reuse

* perf(agents): add continuation-skip context injection

* docs(changelog): note context injection reuse

* perf(agents): bound continuation bootstrap scan

* fix(agents): require full bootstrap proof for continuation skip

* fix(agents): decide continuation skip under lock

* fix(commands): re-export subagent chat message type

* fix(agents): clean continuation rebase leftovers
2026-04-06 05:27:28 +01:00
Chunyue Wang
b682202016 fix: stop emitting post-background exec updates (#61627) (thanks @openperf)
* fix(exec ): stop emitting tool updates after session is backgrounded

When an exec session is backgrounded (background: true), the owning
agent run resolves its tool-call promise and may finish.  The stdout
handler's emitUpdate() closure, however, kept invoking opts.onUpdate(),
delivering tool_execution_update events to a listener whose active run
had already ended.  This surfaced as an unhandled rejection and crashed
the gateway process.

Guard emitUpdate() with a session.backgrounded || session.exited check
so that post-background output is still captured via appendOutput() but
no longer forwarded to the (now-stale) agent-loop callback.

Fixes #61592

* style: trim exec backgrounding comments

* fix: stop emitting post-background exec updates (#61627) (thanks @openperf)

* fix: place exec changelog entry at end of fixes (#61627) (thanks @openperf)

---------

Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-04-06 09:47:30 +05:30
Peter Steinberger
57fae2e8fa fix: restore protocol and extension ci 2026-04-06 05:04:29 +01:00
Peter Steinberger
813aa3551e fix: restore latest-main ci gates 2026-04-06 03:38:28 +01:00
Peter Steinberger
a391e5723a perf(test): trim announce and sessions tool imports 2026-04-06 03:33:02 +01:00
Peter Steinberger
d8270ef181 fix: gate async media direct delivery behind config 2026-04-06 03:28:58 +01:00
Peter Steinberger
2cb057fcd9 fix: harden async media completion delivery 2026-04-06 03:28:57 +01:00
Peter Steinberger
c45f1ac8ce perf(agents): isolate subagent announce origin helper 2026-04-06 03:20:31 +01:00
Peter Steinberger
7cd813139b fix: deliver async media generation results directly 2026-04-06 03:08:38 +01:00
Peter Steinberger
85b3203421 fix(agents): carry async media wake attachments structurally 2026-04-06 03:03:53 +01:00
Peter Steinberger
b0d9d1d2da fix(agents): extend subagent announce timeout 2026-04-06 03:03:53 +01:00
Peter Steinberger
1ffe02e5ba fix(agents): prefer overflow compaction for fresh reads 2026-04-06 02:41:38 +01:00
Mariano
c7b7dc335e test: fix current-main prep blockers (#61582)
Merged via squash.

Prepared head SHA: 49f7b121aa
Reviewed-by: @mbelinky
2026-04-06 03:33:47 +02:00