Commit Graph

4716 Commits (acd8966ff054511b541ab1020377055b2694de09)

Author SHA1 Message Date
Peter Steinberger acd8966ff0
test: refresh agent model expectation fixtures 8 months ago
Peter Steinberger 31d8b022eb
fix: treat inline buttons as native approval ui 8 months ago
Ted Li b474e098d1
docs: correct overstated prompt-cache comments from #58036 #58037 #58038 (#60633)
* docs: correct overstated prompt-cache comments from #58036 #58037 #58038

* docs: restore purpose context in MCP tool sort comment

* docs: drop misleading 'legacy' framing from image-prune comments

* docs: restore useful context stripped from image-prune comments

* docs: restore 'deterministically' in MCP tool sort comment

* docs: restore 'idempotent' at attempt.ts callsite

* docs: restore 'provider prompt cache' in context-guard comment
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
André Santos eb0f367e00
fix(cache): enable prompt cache retention for Anthropic Vertex AI (#60888)
* fix(cache): enable prompt cache retention for Anthropic Vertex AI

* fix(cache): add anthropic-vertex to isAnthropicFamilyCacheTtlEligible

* fix(cache): use hostname parsing for long-TTL endpoint eligibility

* docs(changelog): note anthropic vertex cache ttl fix

---------

Co-authored-by: affsantos <andreffsantos91@gmail.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
8 months ago
Peter Steinberger a6894a5238
test: harden live model skip handling 8 months ago
Peter Steinberger 68851f2e97
fix(config): cap generated schema export types 8 months ago
Peter Steinberger b7a08c6bad
fix: preserve catalog metadata for allowlisted models 8 months ago
Peter Steinberger d655a8bc76
feat: add Fireworks provider and simplify plugin setup loading 8 months ago
Ayaan Zaidi f842f518cd
fix: update embedded runner transport override (#61214)
* fix: update embedded runner transport override

* fix: update embedded runner transport override (#61214)

* fix: update embedded runner transport override (#61214)

* fix: update embedded runner transport override (#61214)
8 months ago
Peter Steinberger bf226be64a
test: keep cli backend coverage on core seams 8 months ago
Vincent Koc 005766671e fix(ci): use agent transport property 8 months ago
Peter Steinberger 332afa2fda
refactor: narrow claude cli fallback seams 8 months ago
Vincent Koc db1d62b784 test(ci): cover bare default provider inference 8 months ago
Peter Steinberger a084e46536
fix: use undici runtime fetch for dispatcher flows 8 months ago
Peter Steinberger 657c6f6788
fix: stabilize docker e2e lanes 8 months ago
Peter Steinberger e5023cc141
fix(agents): invalidate stale cli sessions on auth changes 8 months ago
Peter Steinberger 903cb3c48c
test: align bash exec mocks with reset modules 8 months ago
Peter Steinberger 37cc06f1fd
fix: normalize claude cli fallback config 8 months ago
Peter Steinberger e25693315e
fix: stabilize embedded runner transport and channel state 8 months ago
Peter Steinberger e9fa9f7822
test: reload transcript policy smoke module 8 months ago
Peter Steinberger cb31c4813b
test: mock models config planner in write serialization 8 months ago
Peter Steinberger f5da2360a2
test: scope models config write serialization spy 8 months ago
Peter Steinberger 055428019e
test: harden bash tool async exec coverage 8 months ago
Peter Steinberger b63557679e
test: harden models-config write serialization timing 8 months ago
Peter Steinberger 058fde2d88
test: reload runtime plugins module per test 8 months ago
Peter Steinberger 74416c5b33
test: force real timers for exec foreground timeout 8 months ago
Peter Steinberger 1392a78c75
fix: infer configured provider for bare default models 8 months ago
OfflynAI f0c970fb43
fix: skip sandbox skill copy junk (#61090) (thanks @joelnishanth)
* fix(skills): exclude .git and node_modules when copying skills to workspace (#60879)

* fix(skills): cover sync copy exclusions

* fix: skip sandbox skill copy junk (#61090) (thanks @joelnishanth)

---------

Co-authored-by: Ayaan Zaidi <hi@obviy.us>
8 months ago
Peter Steinberger 54a360a33e
fix: stabilize shared auth and sessions send tests 8 months ago
Peter Steinberger cad1b89b26
fix: keep core gateway tool invokes on shipped tools 8 months ago
Vincent Koc 2246e8f0a9 fix(ci): sanitize providerless model warning 8 months ago
Vincent Koc d23a81baa1 fix(ci): add no-wait completion reply option 8 months ago
Vincent Koc 19ef298678 fix(ci): skip reply wait for non-message subagents 8 months ago
Vincent Koc 7d34c1dc4c test(ci): cover non-waiting subagent completion 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
Peter Steinberger fb580b551e
fix: restore provider and config compatibility checks 8 months ago
scoootscooob 9860db5cea
fix(memory): allow Gemini multimodal fallback before registry hydration (#61085)
* fix(memory): allow Gemini multimodal fallback

* docs(memory): clarify multimodal fallback
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
Peter Steinberger 2781897d2c
fix: restore provider policy fallbacks 8 months ago
Kim fd71bc04ec
fix(skills): unify runtime inclusion and available_skills exposure policy (#60852)
Merged via squash.

Prepared head SHA: 2b48b3a4559696b1535298477d7aa487228d1ad5
Co-authored-by: KimGLee <150593189+KimGLee@users.noreply.github.com>
Co-authored-by: altaywtf <9790196+altaywtf@users.noreply.github.com>
Reviewed-by: @altaywtf
8 months ago
Hanna 8b06ca205a
fix(avatar): check ui.assistant.avatar in resolveAvatarSource (#60778)
Merged via squash.

Prepared head SHA: df8d953a14446a26f77e3f0fe7d5072d52abfe5a
Co-authored-by: hannasdev <4538260+hannasdev@users.noreply.github.com>
Co-authored-by: altaywtf <9790196+altaywtf@users.noreply.github.com>
Reviewed-by: @altaywtf
8 months ago
Peter Steinberger ccd45bd9f0
fix(agents): refresh runtime tool and subagent coverage 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
Vincent Koc 6f2e804182
fix(agents): prefer background completion wake over polling (#60877)
* fix(agents): prefer completion wake over polling

* fix(changelog): note completion wake guidance

* fix(agents): qualify quiet exec completion wake

* fix(agents): qualify disabled exec completion wake

* fix(agents): split process polling from control actions
8 months ago
Peter Steinberger 83fe8efe3d
fix(test): isolate ollama runtime test seams 8 months ago
Ayaan Zaidi ef7c84ae92
style: trim live model switch comment noise 8 months ago
Ayaan Zaidi e4bd4b8b49
style(agents): trim exec routing comments 8 months ago
Ayaan Zaidi cde1e2d3a1
fix: preserve compaction split after trailing tool results 8 months ago