Commit Graph

2687 Commits (c4e8b60d2caa2bb040e83d46f2e0bc14ec8f9af6)

Author SHA1 Message Date
Marc c4e8b60d2c fix: strip thought_signature fields for cross-provider compatibility
Claude's extended thinking feature generates thought_signature fields
(message IDs like "msg_abc123...") in content blocks. When these are
sent to Google's Gemini API, it expects Base64-encoded bytes and
rejects Claude's format with a 400 error.

This commit adds stripThoughtSignatures() to remove these fields from
assistant message content blocks during sanitization, enabling session
histories to be shared across different providers (e.g., Claude → Gemini).

Fixes cross-provider session bug where switching from Claude-thinking
to Gemini (or vice versa) would fail with:
"Invalid value at 'thought_signature' (TYPE_BYTES), Base64 decoding failed"

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
10 months ago
Shadow c9fdd68232
Telegram: keep forum topic thread ids in replies
Closes #727
10 months ago
Peter Steinberger 2c2ca7f03b fix: treat credential validation errors as auth errors (#822) (thanks @sebslight) 10 months ago
Sebastian c4014c0092 fix: treat credential validation failures as auth errors for fallback (#761) 10 months ago
Shadow c08441c42c
Telegram: persist polling update offsets
Closes #739
10 months ago
Peter Steinberger 980f274fc9 fix: stabilize docs and tests after system event timestamps 10 months ago
Shadow 9f1f65f0e3
Discord: dedupe listener registration on reload
Closes #744
10 months ago
Peter Steinberger cddd836909
Merge pull request #821 from gumadeiras/fix-bindings-telegram-webhook
Telegram: fix webhook multi-account routing (respect bindings.accountId)
10 months ago
Peter Steinberger d45915d39f fix: refine group intro prompt guidance 10 months ago
Shadow fcc814accd
System events: add local timestamps in prompt injection
Closes #245
10 months ago
Peter Steinberger 66ad8a9289 fix: apply lint fixes 10 months ago
Peter Steinberger df6634727e fix: refine synthetic provider + minimax probes 10 months ago
Travis Hinton 8b5cd97ceb Add Synthetic provider support 10 months ago
Shadow 25297ce3f5
Cron: accept jobId in gateway cron params
Closes #252
10 months ago
Gustavo Madeira Santana 3800fea962 Improve webhook test config verification
Refactors tests to use a shared config object and adds stricter assertions to verify that the config is passed correctly to createTelegramBot. Ensures the bindings property is checked in the test expectations.
10 months ago
Gustavo Madeira Santana ecb91bbb1a Add accountId and config support to Telegram webhook
The Telegram webhook and monitor now accept and pass through accountId and config parameters, enabling routing and configuration per Telegram account. Tests have been updated to verify correct bot instantiation and DM routing based on accountId bindings.
10 months ago
Shadow ab993904d7
Models: normalize Gemini 3 ids in runtime selection
Closes #795
10 months ago
Shadow 2467a103b2
TUI: keep streamed text when final output is empty
Closes #747
10 months ago
Shadow 68569afb4b
Slack: accept slash command names with or without leading slash
Closes #798
10 months ago
Peter Steinberger da0a062fa7 fix: memory search remote overrides (#819) (thanks @mukhtharcm) 10 months ago
Muhammed Mukhthar CM ba316a10cc feat: add remote config overrides to memorySearch 10 months ago
Peter Steinberger c1f82d9ec1 refactor: dedupe enforceFinalTag resolution 10 months ago
Peter Steinberger 46a694bbc7 fix: preserve explicit maxChars=0 (#796) (thanks @gabriel-trigo) 10 months ago
Gabriel Trigo 79a6506593 fix(browser): limit ai snapshot size
test(browser): cover ai snapshot limit
10 months ago
Peter Steinberger 8edf2146ae fix: cleanup stale resume cli processes 10 months ago
Peter Steinberger 958a4fd414
Merge pull request #782 from AbhisekBasu1/fix/antigravity-opus-tools-not-working
Fix - Opus on Antigravity Errors
10 months ago
Peter Steinberger a27efd57bd fix: drop null-only union variants (#782) (thanks @AbhisekBasu1)
Co-authored-by: Abhi <AbhisekBasu1@users.noreply.github.com>
10 months ago
Peter Steinberger 4f1c6e76fd fix: gate inline /status stripping 10 months ago
Peter Steinberger 2111d0c653 test: force real config module for lan onboarding test (#766) 10 months ago
Peter Steinberger 642e6acf49 test: unmock config for lan onboarding auto-token (#766) 10 months ago
Peter Steinberger 88716d8d2a fix: harden inline /status stripping (#766) 10 months ago
Peter Steinberger c2e37c78ff fix: trim sender ids before auth fallback 10 months ago
Abhi ba1d80bd00 formatting fix 10 months ago
Abhi 4dfcd56893 Fix pi-tools test ordering and clean-for-gemini handling - which fixes the 400 error people are experiencing trying to use antigravity on opus 10 months ago
Peter Steinberger c012019a8a fix: enforce reasoning tags on fallback providers (#810) (thanks @mcinteerj) 10 months ago
Keith the Silly Goose 7896b30489 fix(auto-reply): enforce reasoning tags on fallback providers 10 months ago
Peter Steinberger ffc465394e fix: enforce message context isolation 10 months ago
Peter Steinberger 0edbdb1948 fix: downgrade Gemini tool history 10 months ago
hsrvc 5dc187f00c fix: accept Claude/Gemini tool param aliases 10 months ago
Peter Steinberger 231d2d5fdf fix(config): require doctor for invalid configs (#764 — thanks @mukhtharcm) 10 months ago
Muhammed Mukhthar CM 20ba8d4891 fix(config): preserve config data when validation fails
When readConfigFileSnapshot encounters validation errors, it now:
1. Returns the resolved config data instead of empty object
2. Uses passthrough() on main schema to preserve unknown fields

This prevents config loss when:
- User has custom/unknown fields
- Legacy config issues are detected but config is otherwise valid
- Zod schema does not recognize newer fields

Fixes config being overwritten with empty object on validation failure.
10 months ago
Peter Steinberger dd8f7552ad refactor: reuse dispatcher helper for native commands 10 months ago
Rony Kelner 07bdb8af7e fix: pass --non-interactive to doctor during update 10 months ago
Peter Steinberger 6a48688c09 fix: stream native slash tool replies 10 months ago
Peter Steinberger c03a745f61 test: expand Minimax XML strip coverage 10 months ago
Peter Steinberger 48fdf3775d test: cover user turn merging 10 months ago
Peter Steinberger e2ea20f862 fix: gate minimax XML stripping (#809) (thanks @latitudeki5223) 10 months ago
L36 Server 1eb924739b style: fix import order in pi-embedded-utils.test.ts 10 months ago
L36 Server 350f956f2c fix(minimax): strip tool invocation XML from assistant text 10 months ago
Peter Steinberger 4f3bedfdb7 fix: align discord autoThread config types 10 months ago