Peter Steinberger
e27c32b9b0
refactor(plugin-sdk): publish route helpers
2026-04-28 01:13:01 +01:00
Vincent Koc
61a18e5596
fix(agent): preserve default-agent session routing compatibility ( #72414 )
...
* fix(agent): preserve default-agent session routing compatibility
* fix(clownfish): address review for ghcrawl-207038-agentic-merge (1)
* fix(agent): migrate legacy default-agent sessions
* fix(slack): use narrow agent runtime import
2026-04-27 15:09:01 -07:00
Peter Steinberger
f3e8a8a319
fix(agents): persist compaction token snapshots
2026-04-27 14:58:15 +01:00
Peter Steinberger
e035300d8e
fix(acp): allow manual spawn with dispatch paused
2026-04-27 14:40:12 +01:00
Alex Knight
b1e530b204
fix(cli): mark embedded agent fallback ( #72730 )
...
* fix(cli): mark embedded agent fallback
* refactor(cli): structure embedded fallback metadata
* refactor(cli): move fallback metadata types out of EmbeddedPiRunMeta
---------
Co-authored-by: Alex Knight <15041791+amknight@users.noreply.github.com >
2026-04-27 22:14:11 +10:00
Peter Steinberger
5b9be2cdb1
fix: migrate agent runtime config
2026-04-26 08:12:44 +01:00
Peter Steinberger
54f4c45e5d
fix: stabilize model run probes
2026-04-26 06:59:22 +01:00
Ayaan Zaidi
3eff589ac0
test(cli): cover transcript compaction reseed
2026-04-26 09:34:24 +05:30
Ayaan Zaidi
dfd5940c34
fix(cli): compact persisted CLI transcripts
2026-04-26 09:34:24 +05:30
Peter Steinberger
f0fa35082b
fix: keep ACP completion prompts harness-safe
2026-04-26 03:39:24 +01:00
Peter Steinberger
566d2d73a3
fix: keep system events from extending session resets ( #71845 )
2026-04-26 02:29:44 +01:00
Peter Steinberger
5f81147c4d
fix: persist embedded runtime context budget
2026-04-25 01:09:45 +01:00
Vincent Koc
aa27e27f36
fix(models): normalize provider runtime selection ( #71259 )
...
* fix(models): normalize provider runtime selection
* fix(models): reverse codex-only runtime migration
* fix(models): default runtime selection to pi
* fix(status): label model runtime clearly
* fix(status): align pi runtime label
* fix(plugins): align tool result middleware runtime naming
* fix(models): validate runtime overrides
2026-04-24 16:56:49 -07:00
Peter Steinberger
6e985a421d
fix(webchat): keep runtime context out of visible transcripts
...
Keep WebChat runtime context available to the model while persisting only the transcript-facing user prompt across gateway, CLI, queued follow-up, and embedded Pi paths.
Adds regression coverage for history sanitization, CLI transcript persistence, media-only auto-reply prompts, and embedded Pi prompt rewrite against a real SessionManager file.
Co-authored-by: 91wan <91wan@users.noreply.github.com >
2026-04-24 22:17:03 +01:00
EVA
860dad268d
[codex] Add contract-first Pi/Codex runtime plan suite ( #71096 )
...
* test: add pi codex runtime contract coverage
* test: expand pi codex tool runtime contracts
* test: tighten tool runtime contracts
* test: reset tool contract param cache
* test: document codex tool middleware fixture
* test: type pi tool contract events
* test: satisfy pi tool contract test types
* test: cover tool media telemetry contracts
* test: reset plugin runtime after tool contracts
* test: add auth profile runtime contracts
* test: strengthen auth profile runtime contracts
* test: clarify auth profile contract fixtures
* test: expand auth profile contract matrix
* test: assert unrelated cli auth isolation
* test: expand auth profile contract matrix
* test: tighten auth profile contract expectations
* test: add outcome fallback runtime contracts
* test: strengthen outcome fallback contracts
* test: isolate outcome fallback contracts
* test: cover codex terminal outcome signals
* test: expand terminal fallback contracts
* test: add delivery no reply runtime contracts
* test: document json no-reply delivery gap
* test: align delivery contract fixtures
* test: add transcript repair runtime contracts
* test: tighten transcript repair contracts
* test: add prompt overlay runtime contracts
* test: tighten prompt overlay contract scope
* test: type prompt overlay contracts
* test: add schema normalization runtime contracts
* test: clarify schema normalization contract gaps
* test: simplify schema normalization contracts
* test: tighten schema normalization contract gaps
* test: cover compaction schema contract
* test: satisfy schema contract lint
* test: add transport params runtime contracts
* test: tighten transport params contract scope
* test: isolate transport params contracts
* test: lock exact transport defaults
* feat: add agent runtime plan foundation
* fix: preserve codex harness auth profiles
* fix: route followup delivery through runtime plan
* fix: normalize parameter-free openai tool schemas
* fix: satisfy runtime plan type checks
* fix: narrow followup delivery runtime planning
* fix: apply codex app-server auth profiles
* fix: classify codex terminal outcomes
* fix: prevent harness auth leakage into unrelated cli providers
* feat: expand agent runtime plan policy contract
* fix: route pi runtime policy through runtime plan
* fix: route codex runtime policy through runtime plan
* fix: route fallback outcome classification through runtime plan
* refactor: make runtime plan contracts topology-safe
* fix: restore runtime plan test type coverage
* fix: align runtime plan schema contract assertions
* fix: stabilize incomplete turn runtime tests
* fix: stabilize codex native web search test
* fix: preserve codex auth profile secret refs
* fix: keep runtime resolved refs canonical
* fix: preserve permissive nested openai schemas
* fix: accept Codex auth provider aliases
* test: update media-only groups mock
* fix: resolve runtime plan rebase checks
* fix: resolve runtime plan rebase checks
---------
Co-authored-by: Eva <eva@100yen.org >
Co-authored-by: Peter Steinberger <steipete@gmail.com >
2026-04-24 18:34:01 +01:00
Frank Yang
934dd5b3a7
[codex] fix agent session-id routing ( #70985 )
...
Merged via squash.
Prepared head SHA: f092b0c5c8
Co-authored-by: frankekn <4488090+frankekn@users.noreply.github.com >
Co-authored-by: frankekn <4488090+frankekn@users.noreply.github.com >
Reviewed-by: @frankekn
2026-04-24 17:31:34 +08:00
EVA
40be5ad581
fix: harden GPT-5 runtime paths
...
Co-authored-by: EVA <100yenadmin@users.noreply.github.com >
2026-04-24 08:55:52 +01:00
Peter Steinberger
553162c998
feat(agents): support Codex app-server runs
2026-04-24 04:24:07 +01:00
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