Luis Pater
ccb2aaf2fe
Merge branch 'router-for-me:main' into main
2026-01-16 18:29:56 +08:00
hkfires
902bea24b4
fix(codex): ensure instructions field exists
2026-01-16 15:38:10 +08:00
Cc
778cf4af9e
feat(kiro): add agent-mode and optout headers for non-IDC auth
...
- Add x-amzn-kiro-agent-mode: vibe for non-IDC auth (Social, Builder ID)
IDC auth continues to use "spec" mode
- Add x-amzn-codewhisperer-optout: true for all auth types
This opts out of data sharing for service improvement (privacy)
These changes align with other Kiro implementations (kiro.rs, KiroGate,
kiro-gateway, AIClient-2-API) and make requests more similar to real
Kiro IDE clients.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-16 14:21:38 +08:00
hkfires
c3ef46f409
feat(config): supplement missing default aliases during antigravity migration
2026-01-16 13:37:46 +08:00
Cc
4721c58d9c
fix(kiro): correct Amazon Q endpoint URL path
...
The Q endpoint was using `/` which caused all requests to fail with
400 or UnknownOperationException. Changed to `/generateAssistantResponse`
which is the correct path for the Q endpoint.
This fix restores the Q endpoint failover functionality.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-16 13:22:43 +08:00
Luis Pater
c29839d2ed
Merge remote-tracking branch 'origin/main' into pr-104
...
# Conflicts:
# config.example.yaml
# internal/config/config.go
# sdk/cliproxy/auth/model_name_mappings.go
2026-01-16 09:40:07 +08:00
Luis Pater
f571b1deb0
feat(config): add support for raw JSON payload rules
...
- Introduced `default-raw` and `override-raw` rules to handle raw JSON values.
- Enhanced `PayloadConfig` to validate and sanitize raw JSON payload rules.
- Updated executor logic to apply `default-raw` and `override-raw` rules.
- Extended example YAML to include usage of raw JSON rules.
2026-01-16 08:15:28 +08:00
Luis Pater
67f8732683
Merge pull request #1033 from router-for-me/reasoning
...
Refactor thinking
2026-01-15 20:33:13 +08:00
hkfires
4ad6189487
refactor(thinking): extract antigravity logic into a dedicated provider
2026-01-15 19:08:22 +08:00
Luis Pater
d6111344c5
Merge branch 'router-for-me:main' into main
2026-01-15 13:30:28 +08:00
Luis Pater
086eb3df7a
refactor(auth): simplify file handling logic and remove redundant comparison functions
...
feat(auth): fetch and update Antigravity project ID from metadata during filestore operations
- Added support to retrieve and update `project_id` using the access token if missing in metadata.
- Integrated HTTP client to fetch project ID dynamically.
- Enhanced metadata persistence logic.
2026-01-15 13:29:14 +08:00
hkfires
5a77b7728e
refactor(thinking): improve budget clamping and logging with provider/model context
2026-01-15 13:06:41 +08:00
hkfires
ed8b0f25ee
fix(thinking): use LookupModelInfo for model data
2026-01-15 13:06:41 +08:00
hkfires
6e4a602c60
fix(thinking): map reasoning_effort to thinkingConfig
2026-01-15 13:06:40 +08:00
hkfires
7f1b2b3f6e
fix(thinking): improve model lookup and validation
2026-01-15 13:06:40 +08:00
hkfires
a75fb6af90
refactor(antigravity): remove hardcoded model aliases
2026-01-15 13:06:39 +08:00
hkfires
72f2125668
fix(executor): properly handle thinking application errors
2026-01-15 13:06:39 +08:00
hkfires
0b06d637e7
refactor: improve thinking logic
2026-01-15 13:06:39 +08:00
Luis Pater
9b33fbf1cd
Merge branch 'router-for-me:main' into main
2026-01-13 03:15:46 +08:00
Luis Pater
94e979865e
Fixed : #897
...
refactor(executor): remove `prompt_cache_retention` from request payloads
2026-01-12 10:46:47 +08:00
Luis Pater
216dafe44b
Merge branch 'router-for-me:main' into main
2026-01-12 00:27:15 +08:00
hkfires
70a82d80ac
fix(codex): only override instructions in responses for OpenCode UA
2026-01-11 15:19:37 +08:00
hkfires
ac626111ac
feat(codex): add OpenCode instructions based on user agent
2026-01-11 13:36:35 +08:00
Luis Pater
8f27fd5c42
feat(executor): add HttpRequest method with credential injection for GitHub Copilot and Kiro executors
2026-01-10 16:44:58 +08:00
Luis Pater
a9823ba58a
Merge branch 'router-for-me:main' into main
2026-01-10 16:27:52 +08:00
Luis Pater
e8e3bc8616
feat(executor): add HttpRequest support across executors for better http request handling
2026-01-10 16:25:25 +08:00
Luis Pater
514b9bf9fc
Merge origin/main into pr-92
2026-01-10 01:12:22 +08:00
Luis Pater
95f87d5669
Merge pull request #947 from pykancha/fix-memory-leak
...
Resolve memory leaks causing OOM in k8s deployment
2026-01-10 00:40:47 +08:00
Luis Pater
c83365a349
Merge pull request #938 from router-for-me/log
...
refactor(logging): clean up oauth logs and debugs
2026-01-10 00:02:45 +08:00
Luis Pater
6b3604cf2b
Merge pull request #943 from ben-vargas/fix-tool-mappings
...
Fix Claude OAuth tool name mapping (proxy_)
2026-01-09 23:52:29 +08:00
Luis Pater
af6bdca14f
Fixed : #942
...
fix(executor): ignore non-SSE lines in OpenAI-compatible streams
2026-01-09 23:41:50 +08:00
Luis Pater
1906ebcfce
Merge branch 'main' into plus
2026-01-09 21:52:24 +08:00
Ben Vargas
e785bfcd12
Use unprefixed Claude request for translation
...
Keep the upstream payload prefixed for OAuth while passing the unprefixed request body into response translators. This avoids proxy_ leaking into OpenAI Responses echoed tool metadata while preserving the Claude OAuth workaround.
2026-01-09 00:54:35 -07:00
hemanta212
47dacce6ea
fix(server): resolve memory leaks causing OOM in k8s deployment
...
- usage/logger_plugin: cap modelStats.Details at 1000 entries per model
- cache/signature_cache: add background cleanup for expired sessions (10 min)
- management/handler: add background cleanup for stale IP rate-limit entries (1 hr)
- executor/cache_helpers: add mutex protection and TTL cleanup for codexCacheMap (15 min)
- executor/codex_executor: use thread-safe cache accessors
Add reproduction tests demonstrating leak behavior before/after fixes.
Amp-Thread-ID: https://ampcode.com/threads/T-019ba0fc-1d7b-7338-8e1d-ca0520412777
Co-authored-by: Amp <amp@ampcode.com >
2026-01-09 13:33:46 +05:45
Ben Vargas
dcac3407ab
Fix Claude OAuth tool name mapping
...
Prefix tool names with proxy_ for Claude OAuth requests and strip the prefix from streaming and non-streaming responses to restore client-facing names.
Updates the Claude executor to:
- add prefixing for tools, tool_choice, and tool_use messages when using OAuth tokens
- strip the prefix from tool_use events in SSE and non-streaming payloads
- add focused unit tests for prefix/strip helpers
2026-01-09 00:10:38 -07:00
hkfires
ee62ef4745
refactor(logging): clean up oauth logs and debugs
2026-01-09 11:20:55 +08:00
Luis Pater
ef6bafbf7e
fix(executor): handle context cancellation and deadline errors explicitly
2026-01-09 10:48:29 +08:00
Luis Pater
49b9709ce5
Merge pull request #787 from sususu98/fix/antigravity-429-retry-delay-parsing
...
fix(antigravity): parse retry-after delay from 429 response body
2026-01-09 04:45:25 +08:00
Luis Pater
d3533f81fc
Merge branch 'router-for-me:main' into main
2026-01-08 21:06:24 +08:00
Luis Pater
59a448b645
feat(executor): centralize systemInstruction handling for Claude and Gemini-3-Pro models
2026-01-08 21:05:33 +08:00
Luis Pater
3de7a7f0cd
Merge branch 'router-for-me:main' into main
2026-01-08 20:32:08 +08:00
hkfires
b6a0f7a07f
fix(executor): update gemini model identifier to gemini-3-pro-preview
...
Update the model name check in `buildRequest` to target "gemini-3-pro-preview" instead of "gemini-3-pro" when applying specific system instruction handling.
2026-01-08 19:14:52 +08:00
Luis Pater
b2566368f8
Merge branch 'router-for-me:main' into main
2026-01-08 12:45:39 +08:00
Luis Pater
1b2f907671
feat(executor): update system instruction handling for Claude and Gemini-3-Pro models
2026-01-08 12:42:26 +08:00
Luis Pater
bda04eed8a
feat(executor): add model-specific support for "gemini-3-pro" in execution and payload handling
2026-01-08 12:27:03 +08:00
Luis Pater
e0735977b5
Merge branch 'router-for-me:main' into main
2026-01-08 11:17:28 +08:00
Luis Pater
67985d8226
feat(executor): enhance Antigravity payload with user role and dynamic system instructions
2026-01-08 10:55:25 +08:00
Luis Pater
1fb4f2b12e
Merge branch 'router-for-me:main' into main
2026-01-07 18:18:15 +08:00
Luis Pater
f4ba1ab910
fix(executor): remove unused tokenRefreshTimeout constant and pass zero timeout to HTTP client
2026-01-07 18:16:49 +08:00
Luis Pater
771fec9447
Merge branch 'main' into plus
2026-01-04 01:38:40 +08:00