Commit graph

51 commits

Author SHA1 Message Date
ezra-quemuel
24a4861aa6 fix(config): translate top-level provider protocol into a capability
Local-agent login imports (Codex API et al.) declare the provider protocol
at the top level of the payload (protocol: "openai_responses") and carry no
capabilities array. parseProviders dropped that field, so the saved provider
ended up with neither protocol nor capabilities and the gateway fell back to
the default openai_chat_completions adapter. For Responses-only backends
(chatgpt.com/backend-api/codex) every request then 404s against a
non-existent /chat/completions route.

Synthesize a single capability from the top-level protocol (and the
provider's base URL) when no explicit capabilities are configured, reusing
the existing protocol normalization used for capability items. Explicit
capabilities still win. Fixes #1619.
2026-07-31 17:24:39 -07:00
musistudio
e9bbf9dbb0 Synchronize legacy profiles with global profile state 2026-07-29 20:25:49 +08:00
musi
8f0b2d91e5 Refactor routing architecture and update project structure 2026-07-29 09:30:04 +08:00
musistudio
c0e4dba2c3 Expose model output limits in OpenCode configuration 2026-07-28 20:05:21 +08:00
musi
6971be8e87 Unify config storage and gateway bootstrap 2026-07-27 16:51:03 +08:00
musi
7c4a877c99 feat: support Kilo Code profiles 2026-07-26 22:09:24 +08:00
musistudio
31c14ea82e feat: bundle Claude Design for desktop app 2026-07-26 18:09:01 +08:00
musistudio
3d576d2730 Update project implementation 2026-07-25 22:40:01 +08:00
musistudio
28a613c26a Merge branch 'dev/extensions' into codex/claude-design-profile 2026-07-24 23:19:13 +08:00
musistudio
084b660cd4 Document Pi agent profile support 2026-07-24 17:38:39 +08:00
musistudio
7867065099 Support Claude Code model aliases in profiles 2026-07-24 16:38:24 +08:00
musistudio
808a9c831c Refactor project structure and remove obsolete code 2026-07-24 15:26:37 +08:00
musi
018db8f566 chore: checkpoint local changes 2026-07-23 23:06:32 +08:00
musi
86a383f647 Merge branch 'main' into dev/compact
# Conflicts:
#	packages/core/src/config/config.ts
#	packages/core/src/contracts/app.ts
#	packages/core/src/gateway/service.ts
#	packages/core/src/profiles/service.ts
#	packages/core/test/unit/agents/context-archive.test.mjs
#	packages/core/test/unit/gateway/codex-patch-bridge.test.mjs
#	packages/ui/src/pages/home/components/profiles.tsx
#	packages/ui/src/pages/home/shared/profiles.ts
#	tests/main/profile-service.test.mjs
#	tests/main/router-builtins.test.mjs
2026-07-23 09:24:28 +08:00
musi
e239ad8fc9 Refactor routing configuration and provider integrations 2026-07-23 07:28:07 +08:00
musi
c856b36d50 Merge branch 'main' into dev/extensions 2026-07-21 21:36:17 +08:00
musistudio
5dbaafa752 Add manual protocol detection mode for providers 2026-07-21 19:32:24 +08:00
musi
aecb74405c fix: update Codex catalog and plugin settings handling 2026-07-21 15:43:51 +08:00
musi
062158a00a Merge remote-tracking branch 'origin/main' into dev/extensions
# Conflicts:
#	packages/cli/src/cli.ts
#	packages/core/src/agents/codex/model-catalog.ts
#	packages/core/src/config/config.ts
#	packages/core/test/unit/agents/agent-console-launcher.test.mjs
#	packages/core/test/unit/agents/plugin-permissions.test.mjs
#	packages/core/test/unit/agents/plugin-stop-reason.test.mjs
#	packages/core/test/unit/agents/socket-compat.test.mjs
#	packages/electron/src/main/ipc.ts
#	packages/ui/test/component/extensions.test.ts
#	tests/main/codex-model-catalog.test.mjs
2026-07-21 12:43:12 +08:00
musi
f1bf639c54 Refactor routing architecture and streamline provider handling 2026-07-21 12:37:11 +08:00
musi
88c07b605a Merge branch 'main' into dev/3.1
# Conflicts:
#	package-lock.json
#	package.json
#	packages/cli/package.json
#	packages/core/package.json
#	packages/core/src/contracts/ipc-channels.ts
#	packages/core/src/gateway/claude-code-router-plugin.ts
#	packages/ui/test/component/layout.test.tsx
2026-07-20 22:09:34 +08:00
musistudio
6c1a90889b Refactor router implementation and configuration 2026-07-20 20:21:18 +08:00
musistudio
ecdf2fec0f Support xAI video generation and isolate Codex authentication 2026-07-20 15:38:13 +08:00
musistudio
225b3c23df Improve Codex authentication and app-server launch handling 2026-07-20 14:36:26 +08:00
musistudio
3f8d450366 Refactor routing architecture and update related modules 2026-07-20 10:10:57 +08:00
musistudio
9fb8a89831 Update routing workflows and supporting configuration 2026-07-19 20:07:40 +08:00
jesieleo
107863919c fix(theme): synchronize dark mode across app and tray 2026-07-19 13:16:29 +08:00
musi
5b8f64160e Refactor router internals and update related integrations 2026-07-16 09:29:48 +08:00
musi
9b3339e4e4 Merge branch 'main' into dev/3.1
# Conflicts:
#	packages/core/src/gateway/request/pipeline.ts
#	packages/core/src/observability/request-log-store.ts
#	packages/core/test/integration/observability/request-log-store.test.mjs
#	packages/core/test/unit/agents/gateway-upstream-error-log.test.mjs
#	packages/core/test/unit/agents/provider-model-metadata.test.mjs
2026-07-15 22:08:49 +08:00
musi
30d1f35926 Refactor request routing and provider coordination
Some checks failed
CI / Typecheck (push) Has been cancelled
CI / Test architecture (push) Has been cancelled
CI / Test cli (push) Has been cancelled
CI / Test core (push) Has been cancelled
CI / Test electron (push) Has been cancelled
CI / Test ui (push) Has been cancelled
CI / CLI web E2E (push) Has been cancelled
CI / Docker system smoke (push) Has been cancelled
2026-07-15 13:32:14 +08:00
musistudio
2e979d9e48 Merge branch 'dev/3.1' into dev/extensions
# Conflicts:
#	packages/core/src/agents/codex/cli-middleware-runtime.ts
#	packages/core/src/config/config.ts
#	packages/core/src/gateway/service.ts
#	packages/ui/src/pages/home/App.tsx
#	packages/ui/src/pages/home/shared/controls.tsx
#	tests/main/codex-cli-middleware-runtime.test.mjs
2026-07-15 10:14:30 +08:00
camjac251
5a3eda0912
fix(gateway): preserve provider context metadata
Provider imports exposed live context limits, but CCR discarded them and
fell back to stale static entries. Preserve physical and effective limits
so generated catalogs and model discovery advertise the provider-specific
usable window.
2026-07-14 19:15:39 -04:00
musistudio
9e56580334 feat: enhance app bot relay 2026-07-14 20:58:08 +08:00
musistudio
84855c4dd4 Add OpenCode profile support 2026-07-14 16:49:08 +08:00
musistudio
a8bfa6363e Improve router configuration and request handling 2026-07-13 20:02:45 +08:00
musistudio
1d8ff6742c Refine router configuration and request handling 2026-07-13 16:41:45 +08:00
musistudio
0196fdebeb Add Grok CLI local provider support 2026-07-13 08:48:39 +08:00
musistudio
8d549296c1 Add configurable upstream proxy support 2026-07-11 21:03:53 +08:00
musistudio
de55adaf49 Refactor router pipeline and update request handling 2026-07-10 22:26:56 +08:00
musistudio
9014d7bf7f Merge branch 'refs/heads/dev/3.1' into dev/extensions
# Conflicts:
#	packages/core/src/agents/codex/model-catalog.ts
#	packages/core/src/plugins/service.ts
#	tests/main/codex-model-catalog.test.mjs
2026-07-10 15:41:08 +08:00
musistudio
ef90d57ee1 Add per-profile app path support for desktop agents 2026-07-10 14:46:06 +08:00
musi
ca2609c727 Add Codex model metadata probing and propagation 2026-07-10 13:31:46 +08:00
musistudio
037959a629 Add plugin surface metadata to extensions and marketplace 2026-07-10 11:56:05 +08:00
musistudio
9f5c793995 Harden marketplace plugin trust and integrity checks 2026-07-10 11:18:44 +08:00
musi
fb11396ffc Add Claude compact archive support 2026-07-09 21:56:45 +08:00
musistudio
87db7d8b7b Refactor router to support new model routing flow 2026-07-09 18:10:49 +08:00
musi
8945cd5bb8 Add context archive config and gateway support 2026-07-08 22:33:33 +08:00
musistudio
027826fd13 Refactor router context handling and update integrations 2026-07-07 18:56:28 +08:00
musi
a4f5cc9172 Simplify Docker networking and external URL handling 2026-07-06 22:16:30 +08:00
musistudio
d4ff6706f4 Refactor router flow and update provider integrations 2026-07-06 20:23:14 +08:00