Ben Marvell
eae13d9367
test(agents): update test to match universal tool-result repair for OpenAI
...
The previous test asserted that OpenAI-responses sessions would NOT get
synthetic tool results for orphaned tool calls. With repairToolUseResultPairing
now running universally, the correct behavior is that orphaned tool calls
get a synthetic tool_result — matching what OpenAI actually requires.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
(cherry picked from commit 2edb0ffe0b )
2026-02-24 04:33:51 +00:00
Peter Steinberger
3c75bc0e41
refactor(test): dedupe agent and discord test fixtures
2026-02-22 20:04:51 +00:00
Vignesh Natarajan
6bf5e76be6
Agents: drop stale pre-compaction usage snapshots
2026-02-21 23:47:15 -08:00
Peter Steinberger
4a1b6e42fd
test(agents): dedupe sanitize-session-history copilot fixtures
2026-02-22 07:44:57 +00:00
Vignesh Natarajan
cdfe45eeb8
Agents: validate persisted tool-call names
2026-02-21 23:06:44 -08:00
jackheuberger
feccac6723
fix: sanitize thinking blocks for GitHub Copilot Claude models (openclaw#19459) thanks @jackheuberger
...
Verified:
- pnpm build
- pnpm check
- pnpm test:macmini
Co-authored-by: jackheuberger <12731288+jackheuberger@users.noreply.github.com >
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com >
2026-02-20 19:48:09 -06:00
cpojer
18cc48dfd9
chore: Fix types in tests 20/N.
2026-02-17 12:23:12 +09:00
sebslight
83b1ae895e
fix(transcript): always drop orphaned OpenAI reasoning blocks
2026-02-16 20:20:32 -05:00
Ty Sabs
46bf210e04
fix: always drop orphaned OpenAI reasoning blocks in session history
...
downgradeOpenAIReasoningBlocks was only called on model change, but
orphaned reasoning items (e.g. from an aborted stream) can exist without
a model switch and cause a 400 from the OpenAI Responses API.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-16 23:55:28 +01:00
Peter Steinberger
f717a13039
refactor(agent): dedupe harness and command workflows
2026-02-16 14:59:30 +00:00
the sun gif man
68ea063958
🤖 fix: preserve openai reasoning replay ids ( #17792 )
...
What:
- disable tool-call id sanitization for OpenAI/OpenAI Codex transcript policy
- gate id sanitization in image sanitizer to full mode only
- keep orphan reasoning downgrade scoped to OpenAI model-switch replay path
- update transcript policy, session-history, sanitizer, and reasoning replay tests
- document OpenAI model-switch orphan-reasoning cleanup behavior in transcript hygiene reference
Why:
- OpenAI Responses replay depends on canonical call_id|fc_id pairings for reasoning followers
- strict id rewriting in OpenAI path breaks follower matching and triggers rs_* orphan 400s
- limiting scope avoids behavior expansion while fixing the identified regression
Tests:
- pnpm vitest run src/agents/transcript-policy.test.ts src/agents/pi-embedded-runner.sanitize-session-history.test.ts src/agents/openai-responses.reasoning-replay.test.ts
- pnpm vitest run --config vitest.e2e.config.ts src/agents/transcript-policy.e2e.test.ts src/agents/pi-embedded-runner.sanitize-session-history.e2e.test.ts src/agents/pi-embedded-helpers.sanitize-session-messages-images.removes-empty-assistant-text-blocks-but-preserves.e2e.test.ts src/agents/pi-embedded-helpers.sanitizeuserfacingtext.e2e.test.ts
- pnpm lint
- pnpm format:check
- pnpm check:docs
- pnpm test (fails in current macOS bash 3.2 env at test/git-hooks-pre-commit.integration.test.ts: mapfile not found)
2026-02-15 22:45:01 -08:00
Vignesh Natarajan
beee14db14
test (agents): cover anthropic orphaned toolResult drop on provider switch
2026-02-14 20:53:32 -08:00
Peter Steinberger
5db579f2e0
refactor(test): reuse sanitize session history fixtures
2026-02-14 21:39:58 +00:00
Peter Steinberger
b272158fe4
perf(test): eliminate resetModules via injectable seams
2026-02-13 16:20:37 +00:00
JINNYEONG KIM
94763cd87d
Fix OpenAI/Codex tool call id sanitization for transcript policy ( #15279 )
2026-02-13 11:39:51 +00:00
Peter Steinberger
85409e401b
fix: preserve inter-session input provenance (thanks @anbecker)
2026-02-13 02:02:01 +01:00
0xRain
1d2c5783fd
fix(agents): enable tool call ID sanitization for Anthropic provider ( #13830 )
...
Co-authored-by: 0xRaini <0xRaini@users.noreply.github.com >
2026-02-12 08:42:24 +09:00
Justin
0da6de6624
Agent: repair malformed tool calls and session files
2026-02-02 23:56:27 +00:00
Peter Steinberger
c97bf23a4a
fix: gate openai reasoning downgrade on model switches ( #1562 ) (thanks @roshanasingh4)
2026-01-24 08:16:42 +00:00
Peter Steinberger
db0235a26a
fix: gate transcript sanitization by provider
2026-01-23 00:42:45 +00:00
Peter Steinberger
870bfa94ed
fix: skip tool id sanitization for openai responses
2026-01-22 23:51:59 +00:00
Peter Steinberger
0704fe7dbb
fix: enforce Mistral tool call ids ( #1372 ) (thanks @zerone0x)
2026-01-22 00:43:15 +00:00
Peter Steinberger
41c9c214fc
fix: drop obsolete pi-mono workarounds
2026-01-21 19:58:19 +00:00
Peter Steinberger
10a0c96ee6
fix: drop reasoning-only openai-responses history
2026-01-19 06:22:46 +00:00
Peter Steinberger
82e49af5a7
fix: resolve plugin tool meta typing
2026-01-18 04:24:16 +00:00
Peter Steinberger
0f6f7059d9
test: stabilize embedded runner tests
2026-01-18 02:55:41 +00:00
Peter Steinberger
4965727f39
chore: run format and fix sandbox browser timeouts
2026-01-16 09:18:58 +00:00
Muhammed Mukhthar CM
cd409e5667
fix: exclude google-antigravity from history downgrade hack ( #894 )
...
* Agent: exclude google-antigravity from history downgrade hack
* Lint: fix formatting in test
* Lint: formatting and unused vars in test
* fix: preserve google-antigravity tool calls (#894 ) (thanks @mukhtharcm)
---------
Co-authored-by: Peter Steinberger <steipete@gmail.com >
2026-01-16 08:14:56 +00:00