Commit Graph

4076 Commits (acd8966ff054511b541ab1020377055b2694de09)

Author SHA1 Message Date
Peter Steinberger d91d3cc0f0
fix: respect custom env snapshots for vertex auth 8 months ago
wirjo 019a25e35c
Fix/bedrock aws sdk apikey injection (#61194)
* fix(bedrock): stop injecting fake apiKey marker for aws-sdk auth when no env vars exist

When the Bedrock provider uses auth: "aws-sdk" and no AWS environment
variables are set (EC2 instance roles, ECS task roles, etc.),
resolveAwsSdkApiKeyVarName() fell back to "AWS_PROFILE" unconditionally.
This string was injected as apiKey in the provider config during
normalisation, which poisoned the downstream auth resolver — it treated
the marker as a literal key and failed with "No API key found".

The fix:
- resolveAwsSdkApiKeyVarName() now returns undefined (not "AWS_PROFILE")
  when no AWS env vars are present
- resolveBedrockConfigApiKey() (extension) gets the same fix
- resolveMissingProviderApiKey() guards both the providerApiKeyResolver
  and direct aws-sdk branches: if the resolver returns nothing, the
  provider config is returned unchanged (no apiKey injected)
- The aws-sdk credential chain then resolves credentials at request time
  via IMDS/ECS task role/etc. as intended

When AWS env vars ARE present (AWS_ACCESS_KEY_ID, AWS_PROFILE,
AWS_BEARER_TOKEN_BEDROCK), the marker is still injected correctly.

Closes #49891
Closes #50699
Fixes #54274

* test(bedrock): update resolveBedrockConfigApiKey test for undefined return on empty env

The test previously expected "AWS_PROFILE" when no env vars are set.
Now expects undefined (matching the fix), and adds a separate assertion
that AWS_PROFILE is returned when the env var is actually present.

* fix(bedrock): lock aws-sdk env marker behavior

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
8 months ago
狼哥 eb130aa4e9
fix(google): disable pinned dns for image generation (#59873)
* fix(google): restore proxy-safe image generation (#59873)

* fix(ssrf): preserve transport policy without pinned dns

* fix(ssrf): use undici fetch for dispatcher requests

* fix(ssrf): type dispatcher fetch path

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
8 months ago
Vincent Koc 155f4300ba
fix(voice-call): use full config for realtime transcription (#61224)
* fix(voice-call): use full config for realtime transcription

* fix(changelog): note voice-call transcription regression

* Update CHANGELOG.md
8 months ago
Peter Steinberger 20b08f1a85
fix: enforce paired scope baselines on reconnect 8 months ago
Vincent Koc 19b7fbaa73 fix(memory): honor mocked batch fetch clients 8 months ago
Peter Steinberger d655a8bc76
feat: add Fireworks provider and simplify plugin setup loading 8 months ago
Peter Steinberger 332afa2fda
refactor: narrow claude cli fallback seams 8 months ago
Vincent Koc 3da235bf39 fix(telegram): force paginated commands callbacks 8 months ago
Peter Steinberger 657c6f6788
fix: stabilize docker e2e lanes 8 months ago
Peter Steinberger 37cc06f1fd
fix: normalize claude cli fallback config 8 months ago
Ayaan Zaidi f039bbf2aa
fix: resolve acpx plugin root from shared chunks 8 months ago
Ayaan Zaidi 4cfb990382
fix: restore whatsapp doctor contract surface 8 months ago
Peter Steinberger f7a32cd25e
test: reset imessage facade runtime before each test 8 months ago
Peter Steinberger 15d5878d91
test: update telegram paginated commands expectations 8 months ago
Peter Steinberger 50b5c483ee
fix: canonicalize legacy whatsapp group sessions 8 months ago
tarouca bf0f4d93f0
fix: restore Telegram DM voice-note transcription (#61008) (thanks @manueltarouca)
* fix(telegram): enable voice-note transcription in DMs

The preflight transcription condition only triggered for group chats
(isGroup && requireMention), so voice notes sent in direct messages
were never transcribed -- they arrived as raw <media:audio> placeholders.

This regression was introduced when the Telegram channel was moved from
src/telegram/ to extensions/telegram/, losing the fix from c15385fc94.

Widen the condition to fire whenever there is audio and no accompanying
text, regardless of chat type. Group-specific guards (requireMention,
disableAudioPreflight, senderAllowedForAudioPreflight) still apply
only in group contexts.

* fix: restore Telegram DM voice-note transcription (#61008) (thanks @manueltarouca)

---------

Co-authored-by: Ayaan Zaidi <hi@obviy.us>
8 months ago
Peter Steinberger 2636cc261c
fix: scope discord doctor allowFrom alias migration 8 months ago
Peter Steinberger 1811e54920
test: fix plugin stream typing assertions 8 months ago
Cathryn Lavery 7587e4cac3
fix: ensure bypassPermissions when custom CLI backend args override defaults (#61114)
* fix: ensure bypassPermissions on custom CLI backend args

When users override cliBackends.claude-cli.args (e.g. to add --verbose
or change --output-format), the override array replaces the default
entirely. The normalization step only re-added --permission-mode
bypassPermissions when the legacy --dangerously-skip-permissions flag
was present — if neither flag existed, it did nothing.

This causes cron and heartbeat runs to silently fail with "exec denied:
Cron runs cannot wait for interactive exec approval" because the CLI
subprocess launches in interactive permission mode.

Fix: always inject --permission-mode bypassPermissions when no explicit
permission-mode flag is found in the resolved args, regardless of
whether the legacy flag was present.

* test(anthropic): add claude-cli permission normalization coverage

* fix(test-utils): include video generation providers

* fix: preserve claude-cli bypassPermissions on custom args (#61114) (thanks @cathrynlavery)

---------

Co-authored-by: Shadow <hi@shadowing.dev>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
8 months ago
Ayaan Zaidi b558610ef3 fix(elevenlabs): pass talk latency override 8 months ago
Peter Steinberger fb580b551e
fix: restore provider and config compatibility checks 8 months ago
Neerav Makwana 22175faaec
fix: trim menu descriptions before dropping commands (#61129) (thanks @neeravmakwana)
* fix(telegram): trim menu descriptions before dropping commands

* fix: note Telegram command menu trimming (#61129) (thanks @neeravmakwana)

---------

Co-authored-by: Ayaan Zaidi <hi@obviy.us>
8 months ago
Vincent Koc b56517b0ee refactor(providers): tighten family outlier contracts 8 months ago
Altay f299bb812b
test(agents): stabilize announce cleanup assertions (#61088)
* test(plugin-sdk): use telegram public config seam

* test(agents): stabilize announce cleanup assertions
8 months ago
Altay 2b3e89c6d4 fix(ci): remove anthropic auth parse error 8 months ago
coolramukaka-sys 70015be8b5
fix(msteams): replace deprecated HttpPlugin with httpServerAdapter (#60939)
Merged via squash.

Prepared head SHA: 7fe7f3c6bb847e1024ecd0e499b3f03588e6d9ec
Co-authored-by: coolramukaka-sys <271658891+coolramukaka-sys@users.noreply.github.com>
Co-authored-by: BradGroux <3053586+BradGroux@users.noreply.github.com>
Reviewed-by: @BradGroux
8 months ago
Peter Steinberger b4216d197d
fix: restore anthropic setup-token auth flow 8 months ago
@zimeg 13b6a48991
fix(slack): import plugin secret input config 8 months ago
@zimeg 28e1142a24
revert(slack): use packaged thread status method 8 months ago
@zimeg 68b84980cc
refactor(slack): use packaged thread status method 8 months ago
Peter Steinberger 496df07804
fix(extensions): align provider helper surfaces 8 months ago
Peter Steinberger 67d6fc8847
chore(plugins): sync versions to 2026.4.4 8 months ago
Peter Steinberger ca200eb480
fix(providers): stabilize runtime normalization hooks 8 months ago
Peter Steinberger e3ac0f43df
feat(qwen): add qwen provider and video generation 8 months ago
Peter Steinberger 40f958a953
fix(ci): narrow runtime seams and partial mocks 8 months ago
Gustavo Madeira Santana e627f53d24
core: dedupe approval not-found handling (#60932)
Merged via squash.

Prepared head SHA: 108221fdfe0e84c486df21effc9d81318df85674
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
8 months ago
Onur 7de3a16ab4
ACPX: bump pinned version to 0.4.1 (#60918)
* ACPX: bump pinned version to 0.4.1

* ACPX: refresh lockfile for 0.4.1
8 months ago
Peter Steinberger 4dbc66b1ed
fix: remove bundled channel startup reentry 8 months ago
Peter Steinberger a4fc1200de
style: normalize provider formatting 8 months ago
Vincent Koc cb1c2e8f86 test(providers): cover xai and zai stream hooks 8 months ago
Vincent Koc e277c01953 test(providers): cover openrouter replay family 8 months ago
hugh.li 9dd449045a
fix(google-gemini-cli-auth): fix Gemini CLI OAuth failures on Windows (#40729)
* fix(google-gemini-cli-auth): fix Gemini CLI OAuth failures on Windows

Two issues prevented Gemini CLI OAuth from working on Windows:

1. resolveGeminiCliDirs: the first candidate `dirname(dirname(resolvedPath))`
   can resolve to an unrelated ancestor directory (e.g. the nvm root
   `C:\Users\<user>\AppData\Local\nvm`) when gemini is installed via nvm.
   The subsequent `findFile` recursive search (depth 10) then picks up an
   `oauth2.js` from a completely different package (e.g.
   `discord-api-types/payloads/v10/oauth2.js`), which naturally does not
   contain Google OAuth credentials, causing silent extraction failure.

   Fix: validate candidate directories before including them — only keep
   candidates that contain a `package.json` or a `node_modules/@google/
   gemini-cli-core` subdirectory.

2. resolvePlatform: returns "WINDOWS" on win32, but Google's loadCodeAssist
   API rejects it as an invalid Platform enum value (400 INVALID_ARGUMENT),
   just like it rejects "LINUX".

   Fix: use "PLATFORM_UNSPECIFIED" for all non-macOS platforms.

* test(google-gemini-cli-auth): keep oauth regressions portable

* chore(changelog): add google gemini cli auth fix note

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
8 months ago
Vincent Koc 3f9e93fd28 test(providers): cover opencode replay family hooks 8 months ago
Vincent Koc a2e0a094c1 test(providers): cover stream family plugin hooks 8 months ago
Vincent Koc fa34f3a9d5 fix(ci): restore provider runtime seams 8 months ago
Vincent Koc 4fe21de3ce test(providers): cover xai tool compat seam 8 months ago
Vincent Koc 20d14745cf refactor(providers): flatten passthrough provider hooks 8 months ago
Peter Steinberger fb59b5c461
fix(ci): sync openrouter stream hook seams 8 months ago
Peter Steinberger dd771f1dc6
fix(ci): repair plugin boundary and bootstrap regressions 8 months ago