Peter Steinberger
fc3aa07fbc
test: dedupe CLI attempt setup
2026-04-23 18:29:32 +01:00
Peter Steinberger
1713839288
fix: pin embedded harness selection per session
2026-04-23 16:53:32 +01:00
Mariano
3e956a4982
fix: align claude-cli prompt hooks ( #70625 )
...
Merged via squash.
Prepared head SHA: 3de89da38f
Co-authored-by: mbelinky <132747814+mbelinky@users.noreply.github.com >
Co-authored-by: mbelinky <132747814+mbelinky@users.noreply.github.com >
Reviewed-by: @mbelinky
2026-04-23 16:34:16 +02:00
Peter Steinberger
f7a52573b0
fix: clear phantom Claude CLI resumes ( #70317 )
...
Verify Claude CLI session transcripts before reuse and clear phantom bindings with transcript-missing instead of passing stale --resume ids.\n\nFixes #70177 .
2026-04-22 20:29:17 +01:00
HFConsultant
647f4ee8ce
fix: persist CLI session clearing atomically ( #70298 )
...
Persist stale CLI session clearing through the session-store merge path and add regression coverage for Claude binding removal.\n\nThanks @HFConsultant.
2026-04-22 20:01:35 +01:00
Peter Steinberger
8b2ef40775
docs: remove bundled channel examples from core types
2026-04-22 06:55:47 +01:00
Peter Steinberger
9b42cd8728
test: fix cost snapshot PR checks
2026-04-21 03:44:25 +01:00
Dexter (Miaigi)
47bb5ddece
fix(cost): snapshot estimatedCostUsd instead of accumulating ( #69347 )
...
The bug: three persist sites accumulated cost instead of snapshotting
it like tokens. This caused cost to be inflated 1x-72x on multi-persist
sessions because the same cumulative usage was added repeatedly.
Root cause: persistSessionUsageUpdate, updateSessionStoreAfterAgentRun,
and the cron isolated-agent run path all used:
estimatedCostUsd = existingCost + runCost
But runCost was already computed from cumulative run usage, so this
added the same cost repeatedly on redundant persists.
Fix: snapshot cost directly like tokens already do:
estimatedCostUsd = runCost
Files affected:
- src/auto-reply/reply/session-usage.ts
- src/agents/command/session-store.ts
- src/cron/isolated-agent/run.ts
Tests added:
- session-store.test.ts: verify cost is snapshotted, not accumulated
- session.test.ts: updated existing test to verify snapshot behavior
Fixes #69347
2026-04-21 03:44:25 +01:00
Peter Steinberger
6686533d19
perf(test): tighten skill and session fixtures
2026-04-20 12:27:07 +01:00
stain lu
24b915ed41
fix: surface preserved stale session totals ( #67695 ) (thanks @stainlu)
...
* fix(agents): preserve session totalTokens when provider omits usage data
Fixes #67667
When a provider (e.g. MiniMax via Anthropic endpoint) does not return
usage data in its API response, hasNonzeroUsage() is false and the
entire totalTokens update block in persistSessionAfterRun is skipped.
This resets totalTokens to undefined, causing /status to show 0%
context usage even after compaction has calculated real token counts.
The fix preserves the previous totalTokens value when the current run
has no usage data, marking it as stale (totalTokensFresh: false) so
display layers know it is from a prior run. This is strictly better
than null — the user sees the last known context usage instead of 0%.
* ci: retrigger after flaky gateway shutdown test
* test(agents): port totalTokens regression test to withTempSessionStore helper post-rebase
* fix(status): surface preserved stale session totals
* fix: surface preserved stale session totals (#67695 ) (thanks @stainlu)
---------
Co-authored-by: Ayaan Zaidi <hi@obviy.us >
2026-04-19 08:06:36 +05:30
stain lu
4da808da50
fix: scope nested agent lanes per target session ( #67785 ) (thanks @stainlu)
...
* fix(agents): scope nested lane per target session to stop cross-agent blocking
* docs(agents): note per-session nested-lane lifecycle parity with session:* lanes
* refactor(agents): distill nested lane helpers
* fix: scope nested agent lanes per target session (#67785 ) (thanks @stainlu)
---------
Co-authored-by: Ayaan Zaidi <hi@obviy.us >
2026-04-19 07:58:55 +05:30
Peter Steinberger
6de5f92835
test: share command delivery media fixture
2026-04-19 03:24:43 +01:00
Frank Yang
442deb0816
fix(cli): normalize reply-media paths for agent --deliver ( #68516 )
2026-04-18 20:05:41 +08:00
Peter Steinberger
310b5e4f6a
test: reduce core command hotspots
2026-04-17 16:05:10 +01:00
Peter Steinberger
a861da41b5
test: trim CLI and doctor hotspots
2026-04-17 16:05:09 +01:00
Peter Steinberger
35dcd06764
test: trim agent test hotspots
2026-04-17 07:15:27 +01:00
Ayaan Zaidi
3a3fae0eac
fix(agents): normalize cli transcript api field
2026-04-16 09:30:31 +05:30
Ayaan Zaidi
b8ef507cc0
fix(agents): persist cli transcript turns
2026-04-16 09:30:31 +05:30
Peter
70b67b0c68
fix(agents): preserve original prompt on model fallback retry ( #65760 ) ( #66029 )
...
Merged via squash.
Prepared head SHA: ba919d1934
Co-authored-by: WuKongAI-CMU <210765158+WuKongAI-CMU@users.noreply.github.com >
Co-authored-by: altaywtf <9790196+altaywtf@users.noreply.github.com >
Reviewed-by: @altaywtf
2026-04-14 23:47:01 +03:00
Vincent Koc
a165f7b063
fix(ci): repair agent test mocks
2026-04-13 23:30:17 +01:00
Vincent Koc
ce1fffa97e
perf(agents): narrow session helper imports
2026-04-13 21:09:44 +01:00
Vincent Koc
99755fcb2f
perf(agents): lazy-load session store updates
2026-04-13 21:07:50 +01:00
Vincent Koc
dd27aa945e
perf(agents): lazy-load delivery runtime
2026-04-13 21:05:30 +01:00
Vincent Koc
f126088761
perf(agents): keep attempt execution runtime cold
2026-04-13 21:03:52 +01:00
joshavant
c4764095f8
Outbound: centralize payload normalization plan
2026-04-12 19:52:24 -05:00
Peter Steinberger
5b2ae49107
perf: reduce agents test import overhead
2026-04-13 01:26:44 +01:00
Peter Steinberger
5d9a04d4c1
perf: lazy-load session store helpers
2026-04-12 20:17:42 +01:00
Vincent Koc
913d23c877
test(agents): share session store lookup fixtures
2026-04-12 10:45:56 +01:00
Vincent Koc
a88fbf0f64
fix(cycles): split reply payload and option contracts
2026-04-11 22:24:55 +01:00
Vincent Koc
74e7b8d47b
fix(cycles): bulk extract leaf type surfaces
2026-04-11 13:26:50 +01:00
Agustin Rivera
fe0f686c92
Gate Matrix profile updates for non-owner message tool runs ( #62662 )
...
Merged via squash.
Prepared head SHA: 602b16a676
Co-authored-by: eleqtrizit <31522568+eleqtrizit@users.noreply.github.com >
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com >
Reviewed-by: @gumadeiras
2026-04-10 12:56:17 -04:00
Peter Steinberger
89d7a24a35
fix(cli-runner): wire OpenClaw skills into Claude CLI
...
Co-authored-by: Omar López <zomars@me.com >
2026-04-10 13:45:02 +01:00
Vincent Koc
dbcc574e1f
fix(agents): split embedded run shared types
2026-04-09 08:24:22 +01:00
Frank Yang
153e3add68
fix(auto-reply): strip leading NO_REPLY tokens to prevent silent-reply leak ( #63068 )
...
* fix(auto-reply): strip leading NO_REPLY tokens to prevent silent-reply leak
* fix(auto-reply): preserve substantive NO_REPLY leading text
* fix(agents): preserve ACP silent-prefix cumulative deltas
* fix(auto-reply): harden silent-token streaming paths
* fix(auto-reply): normalize glued silent tokens consistently
---------
Co-authored-by: termtek <termtek@ubuntu.tail2b72cd.ts.net >
2026-04-09 00:30:13 +08:00
Sam Padilla
f1b7dd6c0a
fix: honor lightContext in spawned subagents ( #62264 ) (thanks @theSamPadilla)
...
* Add lightContext support for spawned subagents
* Clarify and guard lightContext usage in sessions_spawn
* test: guard sessions_spawn lightContext acp misuse
* fix: honor lightContext in spawned subagents (#62264 ) (thanks @theSamPadilla)
---------
Co-authored-by: Jaz <jaz@bycrux.com >
Co-authored-by: Ayaan Zaidi <hi@obviy.us >
2026-04-07 11:05:45 +05:30
Peter Steinberger
134ff61754
test: stabilize agent auth and config suites
2026-04-06 19:52:42 +01:00
EVA
594ea6e1b9
fix(agents): backfill missing sessionKey in embedded PI runner — prevents undefined key in model selection and live-switch ( #60555 )
...
Merged via squash.
Prepared head SHA: 8081345f1c
Co-authored-by: 100yenadmin <239388517+100yenadmin@users.noreply.github.com >
Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com >
Reviewed-by: @jalehman
2026-04-06 09:51:05 -07: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
Peter Steinberger
85b3203421
fix(agents): carry async media wake attachments structurally
2026-04-06 03:03:53 +01:00
Peter Steinberger
6b627d4707
fix(discord): add batched reply mode
2026-04-05 21:15:29 +01:00
Peter Steinberger
84e76f7cce
refactor(cli): remove stale cli provider leftovers
2026-04-05 19:11:34 +01:00
Peter Steinberger
1a47675e6c
fix: restore check after CLI seam cleanup
2026-04-05 19:06:34 +01:00
Peter Steinberger
05d351c430
refactor(cli): remove bundled cli text providers
2026-04-05 18:46:36 +01:00
Peter Steinberger
6243806f7b
refactor(cli): remove custom cli backends
2026-04-05 18:04:48 +01:00
Vincent Koc
84eb617a79
fix(agents): persist claude cli session ids
2026-04-05 14:35:34 +01:00
Peter Steinberger
ccd45bd9f0
fix(agents): refresh runtime tool and subagent coverage
2026-04-04 20:06:32 +01:00
Peter Steinberger
cd36ff7483
fix: resume explicit session-id agent runs
2026-04-04 17:48:43 +09:00
Peter Steinberger
3de09fbe74
fix: restore claude cli loopback mcp bridge ( #35676 ) (thanks @mylukin)
2026-04-04 15:16:20 +09:00
Peter Steinberger
7e69c2f6a7
test: trim remaining mock drift
2026-04-04 04:04:12 +01:00