Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1353 commits
Select commit Hold shift + click to select a range
6e6c356
fix(kiro): serve the microsoft callbacks through the shared loopback
caigee-cmd Nov 18, 2026
8c64300
feat(kiro): add an experimental in-process Kiro provider (#536)
caigee-cmd Nov 18, 2026
e4096cc
docs: archive changelog for v0.7.35
github-actions[bot] Nov 18, 2026
c9f96dd
ci: retrigger checks for the changelog archive
caigee-cmd Nov 18, 2026
021d5aa
Merge pull request #537 from caigee-cmd/docs/archive-changelog-v0.7.35
caigee-cmd Nov 18, 2026
15d8165
fix(kiro): recognize imported credentials and their region
caigee-cmd Nov 19, 2026
d1c3eb3
fix(kiro): recognize imported credentials and their region (#542)
caigee-cmd Nov 19, 2026
39a5bb7
docs: archive changelog for v0.7.36
github-actions[bot] Nov 19, 2026
cfc844d
ci: retrigger checks for the changelog archive
caigee-cmd Nov 19, 2026
0387e55
Merge pull request #544 from caigee-cmd/docs/archive-changelog-v0.7.36
caigee-cmd Nov 19, 2026
631e34c
fix(kiro): import a GitHub social credential list
caigee-cmd Nov 19, 2026
b2c789c
fix(kiro): show the subscription plan and the full model list
caigee-cmd Nov 19, 2026
e9bcb2b
fix(kiro): list models with the current IDE version
caigee-cmd Nov 19, 2026
b8040f3
fix(kiro): recognize imported credentials and list models with the cu…
caigee-cmd Nov 19, 2026
1164bdb
docs: archive changelog for v0.7.37
github-actions[bot] Nov 19, 2026
0281f29
ci: retrigger checks for the changelog archive
caigee-cmd Nov 19, 2026
ae6d74b
Merge pull request #547 from caigee-cmd/docs/archive-changelog-v0.7.37
caigee-cmd Nov 19, 2026
2a1020f
feat: 账号卡片显示今日未签到状态 (#545)
mcxinyu Nov 19, 2026
ec4ee2d
feat(kiro): align Anthropic Messages and model catalogs
caigee-cmd Nov 19, 2026
0fa8a47
Merge pull request #549 from caigee-cmd/feat/kiro-provider
caigee-cmd Nov 19, 2026
f1f2f9b
docs: archive changelog for v0.7.38
github-actions[bot] Nov 19, 2026
c74632f
ci: retrigger checks for the changelog archive
caigee-cmd Nov 19, 2026
d56349d
Merge pull request #550 from caigee-cmd/docs/archive-changelog-v0.7.38
caigee-cmd Nov 19, 2026
f891572
fix qoder daily checkin activity (#551)
guyu233 Nov 20, 2026
a2afb9c
fix(codearts): inline remote image URLs as base64 data URLs (#548)
ATP-01 Nov 20, 2026
ee2bb15
fix(webui): rebuild static assets with credit floor support (#534)
nxcjs Nov 20, 2026
9113119
fix(kiro): refresh imported OAuth credentials without an expiry
caigee-cmd Nov 20, 2026
b91d8fc
Merge pull request #559 from caigee-cmd/feat/kiro-provider
caigee-cmd Nov 20, 2026
e0f23b5
docs: archive changelog for v0.7.39
github-actions[bot] Nov 20, 2026
1697ea3
ci: retrigger checks for the changelog archive
caigee-cmd Nov 20, 2026
78ad46a
Merge pull request #560 from caigee-cmd/docs/archive-changelog-v0.7.39
caigee-cmd Nov 20, 2026
a669f86
feat: 新增豆包工作(doubaowork)供应商
mcxinyu Nov 20, 2026
a0c816b
fix(codearts): use credit-only model catalog (#554)
guyu233 Nov 20, 2026
9b78ca8
Merge pull request #561 from mcxinyu/m1/support-doubao-work
caigee-cmd Nov 20, 2026
432eccf
feat(ui): use official provider brand marks (#553)
guyu233 Nov 20, 2026
57edcbd
feat(provider): add MiniMax Code provider (#555)
guyu233 Nov 20, 2026
77ff359
feat(accounts): export and import all provider accounts (#557)
guyu233 Nov 20, 2026
c56421f
fix checkin all coverage (#543)
guyu233 Nov 20, 2026
fa6228c
fix(kiro): record token usage and credits from metering and context e…
caigee-cmd Nov 20, 2026
898824b
docs: archive changelog for v0.7.40 (#565)
github-actions[bot] Nov 20, 2026
b5e1955
feat(console): tidy account card layout (#563)
caigee-cmd Nov 20, 2026
855276f
docs: archive changelog for v0.7.41 (#566)
github-actions[bot] Nov 20, 2026
cd419bb
fix(kiro): show subscription tier and label credit meter as credits (…
caigee-cmd Nov 20, 2026
7685716
feat(console): regroup request detail dialog in logs (#569)
caigee-cmd Nov 20, 2026
baf19a5
docs: archive changelog for v0.7.42 (#568)
github-actions[bot] Nov 20, 2026
10a8e7c
docs: archive changelog for v0.7.43 (#570)
github-actions[bot] Nov 20, 2026
659393d
fix(kiro): estimate prompt cache and report Anthropic input tokens (#…
caigee-cmd Nov 20, 2026
c1f0201
docs: archive changelog for v0.7.44 (#572)
github-actions[bot] Nov 20, 2026
c1f5452
test: keep the full suite green on Windows
guyu233 Nov 21, 2026
5fc3a61
perf(console): cut first-screen payload and request stats scans
guyu233 Nov 21, 2026
7dc2c11
feat(minimaxcode): add daily check-in
guyu233 Nov 21, 2026
02bd1f9
feat(codex): add gpt-6.2-sol and gpt-6.2-astra to model catalog
yoruuuchan Nov 23, 2026
487ace9
Merge pull request #575 from guyu233/feat/minimaxcode-daily-checkin
caigee-cmd Nov 23, 2026
057b128
Merge pull request #576 from yoruuuchan/feat/codex-catalog-gpt-6.2
caigee-cmd Nov 23, 2026
efb1a35
Merge branch 'main' into feat/console-lazy-shell
caigee-cmd Nov 23, 2026
a005d5c
fix(runtime): re-probe workers that answer /health but stay unroutable
yoruuuchan Nov 23, 2026
983236f
fix(executor): classify no-account routing failures instead of 502
yoruuuchan Nov 23, 2026
c12534d
fix(console): restore HeroUI shell primitives
guyu233 Nov 23, 2026
5780370
feat(keys): add cross-provider model aggregation
guyu233 Nov 23, 2026
a0f4764
Merge pull request #573 from guyu233/feat/console-lazy-shell
caigee-cmd Nov 23, 2026
d696577
Merge pull request #574 from guyu233/feat/key-model-aggregation
caigee-cmd Nov 23, 2026
6fb97c3
Merge branch 'main' into fix/error-account-recovery
caigee-cmd Nov 23, 2026
bced40f
fix: answer routing misses with 503 no_accounts, not 429
yoruuuchan Nov 23, 2026
7babb37
docs: align provider scope and fix stale facts across README and cont…
caigee-cmd Nov 23, 2026
519404e
fix(codearts): treat an upstream unsafe-image rejection as a client e…
caigee-cmd Nov 23, 2026
f79c85d
Merge pull request #578 from caigee-cmd/docs/review-readme-consistency
caigee-cmd Nov 23, 2026
b09ba78
Merge remote-tracking branch 'origin/main' into fix/codearts-unsafe-i…
caigee-cmd Nov 23, 2026
943c706
Merge branch 'main' into fix/error-account-recovery
caigee-cmd Nov 23, 2026
86ecd6b
fix: recover workers left unroutable after a failed boot probe
caigee-cmd Nov 23, 2026
bd48fb9
Merge remote-tracking branch 'origin/main' into fix/codearts-unsafe-i…
caigee-cmd Nov 23, 2026
ce350f4
Merge pull request #579 from caigee-cmd/fix/codearts-unsafe-image
caigee-cmd Nov 23, 2026
4b0d371
fix: follow upstream tool calls, check-in, and Codex identity
caigee-cmd Nov 23, 2026
6e8c7f4
Merge pull request #580 from caigee-cmd/fix/upstream-followups
caigee-cmd Nov 23, 2026
612e296
feat: add cross-provider model pools and model availability checks
guyu233 Nov 23, 2026
a30c08d
feat(aggregation): support account-level deployment members
guyu233 Nov 23, 2026
ad2e7c7
feat(aggregation): add quota-aware pool strategies
guyu233 Nov 23, 2026
aa75c2a
test: adapt provider pick call after aggregation plan
guyu233 Nov 23, 2026
d85d300
chore(webui): rebuild static assets
guyu233 Nov 23, 2026
e3f3e38
docs(changelog): make aggregation deployment notes bilingual
guyu233 Nov 23, 2026
bf829b0
docs(changelog): remove key aggregation claim from model pool notes
guyu233 Nov 23, 2026
6d043b5
fix(routing): fail over across providers without breaking region isol…
guyu233 Nov 23, 2026
a707f4c
docs(changelog): make routing failover notes bilingual
guyu233 Nov 23, 2026
1cde72b
fix(cache): preserve prompt-cache affinity across failover and streaming
guyu233 Nov 23, 2026
67662a1
docs(changelog): make cache affinity notes bilingual
guyu233 Nov 23, 2026
ca0010c
feat(reasoning): align effort conversion with CC Switch
guyu233 Nov 23, 2026
4daf800
feat(gateway): align protocol conversion with CC Switch
guyu233 Nov 23, 2026
2fbb4e7
feat(reasoning): unify provider intent parsing
guyu233 Nov 23, 2026
f55540a
feat(gateway): canonicalize protocol usage and conversion
guyu233 Nov 23, 2026
5b10464
docs(changelog): describe CC Switch alignment
guyu233 Nov 23, 2026
90aa7a2
fix(reasoning): degrade high tiers to the nearest declared level
guyu233 Nov 23, 2026
c055f83
test(reasoning): expect nearest declared degradation tiers
guyu233 Nov 23, 2026
c073e9c
Merge pull request #581 from guyu233/feat/model-pools-account-deploym…
caigee-cmd Nov 23, 2026
846dc97
Merge pull request #582 from guyu233/fix/account-routing-failover
caigee-cmd Nov 23, 2026
13ad732
Merge pull request #583 from guyu233/fix/prompt-cache-affinity
caigee-cmd Nov 23, 2026
999ed78
Merge pull request #584 from guyu233/feat/ccswitch-alignment
caigee-cmd Nov 23, 2026
492ec55
chore: preserve console/provider/checkin work before PR split
guyu233 Nov 24, 2026
717aa98
feat(provider): persist provider policy and enforce model allowlists …
guyu233 Nov 24, 2026
7c3226c
feat(checkin): sync upstream status and schedule from provider window…
guyu233 Nov 24, 2026
65691af
feat(providers): align client identities with current official builds…
guyu233 Nov 24, 2026
1fe5e8c
feat(console): provider settings, grouped models, and model-pool edit…
guyu233 Nov 24, 2026
4f4236c
fix(executor): retry transient failures in place and keep cache anchors
guyu233 Nov 24, 2026
dcb352e
feat(translate): normalize tool order and escape cooling providers
guyu233 Nov 24, 2026
ba55946
docs: archive changelog for v0.7.45 (#589)
github-actions[bot] Nov 24, 2026
cbd5346
Merge origin/main (ba55946d) into tmp/console-batch-20261124
guyu233 Nov 24, 2026
03cf930
ci: re-trigger workflows after enabling Actions on fork
guyu233 Nov 24, 2026
9b397ba
docs: archive changelog for v0.7.46
github-actions[bot] Nov 24, 2026
0d1b311
Merge pull request #1 from guyu233/docs/archive-changelog-v0.7.46
guyu233 Nov 24, 2026
2fd9de7
feat(update): make the release repository configurable
guyu233 Nov 24, 2026
a7a0a4a
ci: add a same-version republish workflow for fork releases
guyu233 Nov 24, 2026
8520445
fix(console): surface model-pool errors and validate the id locally
guyu233 Nov 24, 2026
076246d
fix(console): allow dots in model-pool ids and default the name to th…
guyu233 Nov 24, 2026
0b70de1
feat(update): point releases and the host updater at the fork
guyu233 Nov 24, 2026
7c10cea
ci: derive the release base from tags when the fork has no published …
guyu233 Nov 24, 2026
2774c31
docs: archive changelog for v0.7.47
github-actions[bot] Nov 24, 2026
0162795
Merge pull request #1 from guyu233/docs/archive-changelog-v0.7.47
guyu233 Nov 25, 2026
f8eb01a
chore(release): renumber the fork release line to v0.7.45
guyu233 Nov 25, 2026
eb4e7a0
docs: archive changelog for v0.7.45
github-actions[bot] Nov 25, 2026
682246c
Merge pull request #2 from guyu233/docs/archive-changelog-v0.7.45
guyu233 Nov 25, 2026
6ead5c9
fix(providers): keep client version pins and their wire paths on curr…
guyu233 Nov 25, 2026
1d31f22
fix(trae): pin the published 3.4.21 client version
guyu233 Nov 25, 2026
d2d0aeb
fix(providers): align Meta Muse and MiniMax identities with current b…
guyu233 Nov 25, 2026
7583daa
fix(providers): pin the remaining client identities to shipped builds
guyu233 Nov 25, 2026
a101728
fix(console): lock providers and expose logical models for aggregatio…
guyu233 Nov 25, 2026
c2d70a8
test(app): cover aggregation key model list merge
guyu233 Nov 25, 2026
463f218
fix(console): keep synthetic aggregation entries out of the model cat…
guyu233 Nov 25, 2026
f6d8af9
fix: isolate aggregation models from the shared server catalog
guyu233 Nov 25, 2026
f63db46
feat(console): declare capability overrides on aggregation models
guyu233 Nov 25, 2026
3dd10d4
feat(console): push real runtime state and run bulk account ops fully…
guyu233 Nov 25, 2026
9cbd18f
docs: archive changelog for v0.7.46
github-actions[bot] Nov 25, 2026
6a4eae4
Merge pull request #3 from guyu233/docs/archive-changelog-v0.7.46
guyu233 Nov 25, 2026
486950f
fix(updater): take the host updater binary from the pulled image
guyu233 Nov 25, 2026
6f6438d
docs: archive changelog for v0.7.47
github-actions[bot] Nov 25, 2026
d205023
Merge pull request #4 from guyu233/docs/archive-changelog-v0.7.47
guyu233 Nov 25, 2026
4e8cf7f
fix(checkin): learn the daily window per provider region
guyu233 Nov 25, 2026
ed4c7b3
docs: archive changelog for v0.7.48
github-actions[bot] Nov 25, 2026
325befb
fix(updater): bound and retry docker pull attempts
guyu233 Nov 25, 2026
38be04a
docs: archive changelog for v0.7.49
github-actions[bot] Nov 25, 2026
6688bda
Merge pull request #5 from guyu233/docs/archive-changelog-v0.7.48
guyu233 Nov 25, 2026
f4431e4
Merge remote-tracking branch 'origin/main' into archive-v049
guyu233 Nov 25, 2026
a180ce4
Merge pull request #6 from guyu233/docs/archive-changelog-v0.7.49
guyu233 Nov 25, 2026
3577d58
fix(checkin): drive the automatic schedule from the per-provider setting
guyu233 Nov 25, 2026
6d7ffe8
feat(console): bulk account re-login walkthrough
guyu233 Nov 25, 2026
6e5548a
fix(updater): accept tag-prefixed health version when verifying deploy
guyu233 Nov 25, 2026
42f8b03
fix(qwenwork): split tool calls that share an upstream index
orshih6 Nov 24, 2026
f9cd6a3
feat(codex): bump outbound identity to 0.172.0 (#592)
caigee-cmd Nov 25, 2026
4f4a8fd
fix(gateway): repair damaged tool-call arguments instead of failing t…
guyu233 Nov 25, 2026
3a73d0c
fix(gateway): keep same-tool calls separate when upstream reuses index 0
guyu233 Nov 25, 2026
4becd90
fix(gateway): stream normalized tool arguments only, never damaged fr…
guyu233 Nov 25, 2026
fb14936
fix(account): make the bulk relogin checkbox clickable
guyu233 Nov 25, 2026
a0abee8
providers: degrade undeclared reasoning levels downward (CC Switch la…
guyu233 Nov 25, 2026
e1b3d5b
changelog: bullet reasoning effort degrade note
guyu233 Nov 25, 2026
1c8394d
console: real checkbox reasoning picker for logical models
guyu233 Nov 25, 2026
3fa9f0c
console: drop arbitrary 1024 floor and max<=context rule on logical m…
guyu233 Nov 26, 2026
fd2d759
providers: never upgrade a client reasoning level; release: explicit …
guyu233 Nov 26, 2026
cbde40c
docs: state the CC Switch reasoning pass-through rule
guyu233 Nov 26, 2026
20fcfe5
executor: default max_tokens to the catalog max output when the clien…
guyu233 Nov 26, 2026
18f0b40
revert: forward client output limits as sent
guyu233 Nov 26, 2026
3aeb3aa
release: allow an explicit version rewind when the number is free
guyu233 Nov 26, 2026
58d29ac
update: follow the repository latest marker instead of the highest tag
guyu233 Nov 26, 2026
60a3202
Merge branch 'main' into contribot/issue-594
caigee-cmd Nov 26, 2026
f6fa132
Merge pull request #595 from orshih6/contribot/issue-594
caigee-cmd Nov 26, 2026
7ec6543
Merge branch 'main' into main
caigee-cmd Nov 26, 2026
2af1558
trae: unlock the max context tier instead of a per-model switch
guyu233 Nov 26, 2026
2d2614e
Merge remote-tracking branch 'origin/main' into fix/provider-client-v…
guyu233 Nov 26, 2026
d9d36ba
executor: bound silent upstream streams with an idle deadline
guyu233 Nov 26, 2026
3d4a2ab
release: require each version to be the next patch
guyu233 Nov 26, 2026
26ee358
changelog: drop withdrawn 0.7.46-0.7.49 sections
guyu233 Nov 26, 2026
dc812a7
release: keep upstream repository defaults, let forks override via env
guyu233 Nov 27, 2026
4f0642c
perf: cache API keys, widen upstream pools, drain before shutdown
guyu233 Nov 27, 2026
6417dac
docs: record the shared HTTP transport package
guyu233 Nov 27, 2026
bd05686
ui: keep account filters fixed and scroll only the card grid
guyu233 Nov 27, 2026
d3cca18
fix: harden http, console resilience, and static caching
guyu233 Nov 27, 2026
de316e7
docs: archive changelog for v0.7.49
github-actions[bot] Nov 27, 2026
edbd87d
Merge pull request #25 from guyu233/docs/archive-changelog-v0.7.49
guyu233 Nov 27, 2026
3edc06f
fix: rate-limit invalid keys and harden response guards
guyu233 Nov 27, 2026
32d84ad
Merge pull request #26 from guyu233/feat/0.7.50-server-guardrails
guyu233 Nov 27, 2026
a5a4ecc
docs: archive changelog for v0.7.50
github-actions[bot] Nov 27, 2026
a3ccf88
Merge pull request #7 from guyu233/docs/archive-changelog-v0.7.50
guyu233 Nov 27, 2026
66335b2
fix: keep accounts alive across token renewal and settle status display
guyu233 Nov 27, 2026
a7fe2d0
Merge pull request #27 from guyu233/feat/account-renewal-status
guyu233 Nov 27, 2026
a74b396
chore: drop the Doubaowork provider and its console surfaces
guyu233 Nov 27, 2026
a42a0bf
Merge pull request #28 from guyu233/chore/remove-doubaowork
guyu233 Nov 27, 2026
fe19bd8
feat: name the accounts and reasons behind a failed quota refresh
guyu233 Nov 27, 2026
3c094c8
Merge pull request #29 from guyu233/feat/refresh-failure-details
guyu233 Nov 27, 2026
5a5129a
feat: read account quota live from upstream and drop the snapshot labels
guyu233 Nov 27, 2026
91914a4
Merge pull request #30 from guyu233/feat/accounts-live-quota
guyu233 Nov 27, 2026
21df5b2
feat: show concrete quota amounts in per-plan windows
guyu233 Nov 27, 2026
214c546
Merge pull request #31 from guyu233/feat/quota-window-amounts
guyu233 Nov 27, 2026
feb4e2b
feat: show concrete quota numbers instead of bare percentages
guyu233 Nov 27, 2026
4985398
Merge pull request #32 from guyu233/feat/quota-concrete-numbers
guyu233 Nov 27, 2026
e4dd17a
feat: promote CodeArts to stable and accept long-lived AK/SK credentials
guyu233 Nov 27, 2026
db58e69
Merge pull request #34 from guyu233/feat/codearts-aksk-import
guyu233 Nov 27, 2026
7ae5802
chore(repo): untrack runtime SQLite snapshots
guyu233 Nov 27, 2026
b80edcc
feat(doubaowork): restore in-process provider without check-in
guyu233 Nov 27, 2026
3acd80f
chore(repo): ignore runtime qoder SQLite snapshots
guyu233 Nov 27, 2026
65f3cf0
Merge remote-tracking branch 'origin/main' into feat/restore-doubaowork
guyu233 Nov 27, 2026
45893bf
feat(doubaowork): add daily check-in with a persistent claim guard
guyu233 Nov 27, 2026
051218d
fix(doubaowork): wire check-in into the adapter
guyu233 Nov 28, 2026
23a7ad4
chore: remove the Doubao Work provider
guyu233 Nov 28, 2026
e13bb38
perf: unblock SQLite reads, slim the image, clear lint debt
guyu233 Nov 29, 2026
58a9de8
perf: bound console bodies, batch account routing, trim image
guyu233 Nov 29, 2026
b7633f3
refactor: reach staticcheck zero and fix stale recovery clobber
guyu233 Nov 29, 2026
15111ab
refactor: remove dead browser-backed QR login
guyu233 Nov 29, 2026
79592fc
Merge pull request #611 from caigee-cmd/feat/agent-queue-visualization
caigee-cmd Nov 27, 2026
10d2c51
Merge pull request #609 from BrianBoyCN/feat/command-identity-headers
caigee-cmd Nov 27, 2026
cee8d33
Merge pull request #606 from BrianBoyCN/chore/command-cli-version-env…
caigee-cmd Nov 27, 2026
fbea288
Merge pull request #617 from caigee-cmd/fix/issue-616
caigee-cmd Nov 28, 2026
b98d4d9
feat(model-pool): route a dispatch group through ordered seats (#613)
caigee-cmd Nov 27, 2026
ec7d89a
fix(command): keep caller system prompts and forward them as CLI blocks
Nov 27, 2026
7bc4d63
fix(accounts): simplify classifier target conversion
guyu233 Nov 29, 2026
a598c13
merge: bring upstream v0.8.0 capabilities into the fork
guyu233 Nov 29, 2026
22f1581
chore(webui): sync embedded assets for the v0.8.0 UI
guyu233 Nov 29, 2026
0be129c
fix: harden v0.8.0 aggregation routing and catalog behavior
guyu233 Nov 29, 2026
998da93
fix(minimaxcode): parse live catalog model maps and harden streaming
guyu233 Nov 29, 2026
8b2b96f
feat(minimaxcode): expose reasoning, credits and package expiry
guyu233 Nov 29, 2026
6d5d6ca
fix(runtime): persist MiniMax credit package expiry
guyu233 Nov 29, 2026
8d5c8ca
fix(ui): make reasoning levels an explicit multi-select
guyu233 Nov 29, 2026
cea79a6
fix(ui): use theme border token for reasoning chips
guyu233 Nov 29, 2026
c2910cd
fix(accounts): keep check-in status sync from replaying as feedback
guyu233 Nov 30, 2026
89190bf
feat(console): absorb upstream v0.8.1 console polish
guyu233 Dec 1, 2026
427c066
fix(routing): preserve dispatch order and route feedback
guyu233 Dec 3, 2026
43553a5
chore(webui): refresh embedded assets for routing UI changes
guyu233 Dec 3, 2026
c0d34b6
fix(stream): record terminal outcomes and timeout attribution
guyu233 Dec 3, 2026
9f4473a
feat(toolcall): unify canonical tool-call contract across providers a…
guyu233 Dec 3, 2026
b9b7310
fix(toolcall): buffer native tool events and gate model catalog capab…
guyu233 Dec 3, 2026
a86e149
Merge remote-tracking branch 'upstream/main' into feat/tool-call-subs…
guyu233 Dec 3, 2026
6f8a082
test(kiro): declare tools for Anthropic relay fixture
guyu233 Dec 3, 2026
0d135c6
Merge remote-tracking branch 'upstream/main' into feat/tool-call-subs…
guyu233 Dec 3, 2026
d84234a
fix(runtime): record catalog no-tool models for qoder too
guyu233 Dec 3, 2026
ff87c43
Merge remote-tracking branch 'upstream/main' into feat/tool-call-subs…
guyu233 Dec 3, 2026
484d7b7
test(executor): assert tool contract reaches the adapter unchanged
guyu233 Dec 3, 2026
66f9939
fix(gateway): render non-stream Messages and Responses from canonical…
guyu233 Dec 3, 2026
258f854
fix(gateway): validate buffered tool results before success accounting
guyu233 Dec 3, 2026
25ade6a
Merge remote-tracking branch 'upstream/main' into feat/tool-call-subs…
guyu233 Dec 3, 2026
f456201
fix(gateway): deliver only validated native Responses tool plans
guyu233 Dec 3, 2026
25a97f0
fix(toolcall): retain final native call identity in delivery plan
guyu233 Dec 3, 2026
410f69f
Merge remote-tracking branch 'upstream/main' into feat/tool-call-subs…
guyu233 Dec 3, 2026
ca68eb3
fix(toolcall): enforce native Responses delivery identity and termina…
guyu233 Dec 3, 2026
7042ca3
Merge branch 'main' into feat/tool-call-subsystem
caigee-cmd Dec 4, 2026
eeec85c
release: finalize v0.8.2 acceptance hardening
guyu233 Dec 4, 2026
90fd1c9
chore(release): preserve published v0.8.1 ancestry
guyu233 Dec 4, 2026
f0a72fe
Merge pull request #36 from guyu233/feat/tool-call-subsystem
guyu233 Dec 4, 2026
d619ae0
docs: archive changelog for v0.8.2
guyu233 Dec 4, 2026
445e0c7
Merge pull request #37 from guyu233/docs/archive-changelog-v0.8.2
guyu233 Dec 4, 2026
35a92f9
Merge upstream v0.8.5 into main
guyu233 Dec 4, 2026
f491384
Merge remote-tracking branch 'upstream/main'
guyu233 Dec 4, 2026
0d4435b
Merge upstream main into main
guyu233 Dec 4, 2026
ed6f372
feat(maintenance): unify credential renewal, liveness, quota refresh …
guyu233 Dec 4, 2026
249f633
chore(repo): stop tracking local sqlite state and batch maintenance r…
guyu233 Dec 4, 2026
82958aa
fix(toolcall): diagnose contract mismatches and reconcile abandoned r…
guyu233 Dec 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ web/
deploy/docker-compose.override.yml
.zcode/
.learnings/
qoder*.db
qoder.db-*
qoder.snapshot.db-*
95 changes: 71 additions & 24 deletions CHANGELOG.md

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions changelog/unreleased/maintenance-task-registry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
### English

- Renew credentials in the background before they expire. An account whose access token is within ten minutes of expiry is refreshed on a five-minute sweep, with per-account backoff (1m, 5m, 30m, 2h); only a definitive auth refusal marks the account `login_required`, after three consecutive failures.
- Add a unified liveness task (default every six hours, configurable, `0` disables it). Providers with a real usage or catalog read (`kiro`, `codex`, `zhipu`, `command`, `opencode`) use it; everyone else falls back to the existing probe. Network errors only count toward the failure total and never paint an account red on the first failure.
- Refresh credits periodically (default every 30 minutes, provider and account overrides, `0` disables it) and keep the existing exhausted-account backoff ladder.
- Move every maintenance job into one task registry: check-in scheduling, WorkBuddy's daily pass, resource sampling, worker liveness, exhausted-quota probing, credential renewal, liveness, periodic credits. Cadence and semantics are unchanged.
- Add the attempt source to the check-in ledger so the console can distinguish a manual click, a scheduled claim, and a catch-up retry.
- Console: a "Background maintenance" card in system settings (probe hours, credit interval, renewal switch), renewal/probe timestamps and failure badges on account cards, and source chips in the check-in history.

### 中文

- 后台在凭据到期前主动续期:距离过期十分钟内即进入五分钟一轮的刷新,单账号失败按 1 分钟、5 分钟、30 分钟、2 小时退避;只有连续三次明确被拒才标记 `login_required`。
- 新增统一探活任务(默认六小时一轮,可配置,`0` 关闭)。有真实用量或目录读接口的供应商(`kiro`、`codex`、`zhipu`、`command`、`opencode`)走该接口,其余回退到原有 Probe;网络错误只累计次数,首次失败不会把账号标红。
- 额度按周期刷新(默认 30 分钟,可供应商级或账号级覆盖,`0` 关闭),并保留已耗尽账号的既有退避梯子。
- 所有维护任务收进统一任务注册表:签到调度、WorkBuddy 每日保活、资源采样、worker 心跳、耗尽额度探测、凭据续期、统一探活、周期额度。周期与语义保持不变。
- 签到台账新增来源列,控制台可区分手动签到、定时签到与补跑。
- 控制台:系统设置新增「后台维护」卡片(探活周期、额度间隔、续期开关),账号卡展示续期/探活时间与失败次数徽章,签到历史显示来源标签。
7 changes: 7 additions & 0 deletions changelog/unreleased/repo-hygiene-maintenance-batching.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### English
- Stop tracking local SQLite files (`qoder.db`, `qoder.snapshot.db`). They stay on disk for the running instance but no longer enter new commits or working trees, so the current head no longer carries 64 MB of runtime state. Existing history is unchanged; shrinking an already-cloned repository still needs a separate history rewrite.
- Each background maintenance sweep now loads accounts, maintenance state, and provider quota policy once per tick instead of once per account; the console account list reads maintenance in one query rather than N+1.

### 中文
- 不再跟踪本地 SQLite 文件(`qoder.db`、`qoder.snapshot.db`):文件仍保留在运行实例的磁盘上,但不再进入新提交与工作树,当前 HEAD 不再携带 64 MB 运行时数据。历史记录保持不变;已克隆仓库如需真正瘦身仍需单独的历史重写。
- 每轮后台维护改为每个周期只读取一次账号、维护状态与 provider 额度策略,不再按账号逐条查询;控制台账号列表维护信息由 N+1 查询改为一次查询。
13 changes: 13 additions & 0 deletions changelog/unreleased/tool-call-contract-diagnostics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
### English

- Response-side tool-contract mismatches — an undeclared tool name, a schema mismatch, or a violated `none`/`required`/`named` choice, parallel, or call-limit constraint — are now delivered as diagnostics instead of failing the whole turn. The client executor can return a recoverable `tool_result` and let the model self-correct.
- Remaining structural failures (truncated arguments, missing terminal frame, stream/body disagreement, unknown item type, omitted visible call, size limits) still abort the turn, but every tool-turn failure is classified `invalid_request` (request scope): it no longer fails over to another account or cools down this account.
- Incoming request validation stays strict: an undeclared `tool_choice` reference, malformed tool schema, or duplicate tool name still returns a 400.
- Request rows left in `started` or `streaming` after a process restart are reconciled to `incomplete` on boot, so the live view and traffic stats do not keep counting requests that are no longer in flight.

### 中文

- 响应侧的工具契约不符——未声明的工具名、参数 schema 不符,或违反 `none`/`required`/`named` 选择、并行调用、调用数量上限——现在作为诊断随调用交付,不再整轮失败。客户端执行器可返回可恢复的 `tool_result`,让模型自行纠正。
- 其余结构性错误(参数被截断、缺少终态帧、流与响应体不一致、未知条目类型、可见调用被终态省略、超出大小限额)仍会中止本轮,但所有工具轮失败都归类为 `invalid_request`(请求范围):不再切换到其他账号,也不会冷却本账号。
- 入站请求校验保持严格:`tool_choice` 引用未声明工具、工具 schema 畸形或工具重名,仍返回 400。
- 进程重启后停留在 `started`/`streaming` 的请求记录会在启动时对账为 `incomplete`,避免在线视图和流量统计继续计入已不在飞的请求。
18 changes: 18 additions & 0 deletions docs/ARCHITECTURE_SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,24 @@ cmd/server
| `server` | 路由和 web UI | 业务策略、store、runtime Manager |
| `app` | 组装依赖和启动关闭 | 领域业务规则 |

## 维护任务注册表

`runtime.Manager.RunMaintenanceLoop` 只做调度:任务名、周期、首跑延迟和单次超时集中声明在 [`internal/runtime/manager_tasks.go`](../internal/runtime/manager_tasks.go),循环按注册表执行。新增一个后台维护动作应在这里注册,不要往 tick 本体加 if 块。

| 任务 | 周期 | 契约 |
|---|---|---|
| `checkin-status-sync` | 15min | 只读对账上游签到状态,不写签到成功 |
| `scheduled-checkins` | 30s tick | 每拍最多 2 个账号、2s+抖动、02:05/12:05/21:00 补跑 |
| `workbuddy-daily` | 30s tick,22:00 后 | 每天每账号至少一轮真实保活 |
| `resources` | 30s | 服务端与 worker 采样 |
| `worker-liveness` | 30s | 仅旧 `qoder-native-v1` worker 的 `/health` 看护 |
| `stale-quota` | 5min 扫描 | 已耗尽账号按 5m→24h 梯子重探 |
| `credential-refresh` | 5min 扫描 | 到期前 10min 续期;退避 1m/5m/30m/2h;连续 3 次 auth 拒绝才 `login_required` |
| `liveness-probe` | 5min 扫描,账号级默认 6h | 优先 provider `Keepaliver`,否则 `Prober`;连续 3 次失败才改状态 |
| `quota-policy-refresh` | 5min 扫描 | 账号级 → 供应商策略 → 全局(默认 30min,0 关闭) |

维护状态写在新表 `account_maintenance`,不往 `accounts` 加列。Provider 能力通过 `providers.Adapter` 的可选 `Refresher` / `Keepaliver` 暴露;实现方必须带账号锁并落盘,网络错误不得写成 `login_required`。

## Provider 边界

- Qoder Global 和 Qoder CN 是同一个 `provider=qoder`,通过 `region` 区分,不创建新的 provider family。
Expand Down
31 changes: 18 additions & 13 deletions docs/NATIVE_PROTOCOL_REQUESTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ title: 原生协议请求的现状与后续
scope: [gateway, executor, translate, providers]
status: current
read-when: 理解三个公共入口与上游协议的关系、改 Responses 原生链路或评估 ChatRequest 边界时
summary: 三个公共入口的当前转发方式。Responses 在 adapter 声明原生能力时保留原文;Chat 与 Messages 仍先译成 ChatRequest。Codex 两条路径共用同一套上游约束。
summary: 三个公共入口的当前转发方式。Responses 保留原文;可兼容转换的命名聚合组先按组策略选择成员,再决定是否原生派发。Chat 与 Messages 仍先译成 ChatRequest。
related: [AGENTS.md, docs/ARCHITECTURE_SUMMARY.md, docs/REFACTORING.md, docs/DEVELOPMENT.md]
last-updated: 2026-09-25
last-updated: 2026-12-02
---

# 原生协议请求的现状与后续
Expand All @@ -17,7 +17,7 @@ last-updated: 2026-09-25

- `translate.ChatRequest` 仍是兼容表示,不再是所有请求的强制中间表示。
- 客户端入口决定返回协议,adapter 决定怎么访问上游。两边互不绑定。
- `/v1/responses` 先保留原文。候选账号的 adapter 实现了 `NativeResponsesStreamer` 时走原生路径;否则才在兼容转换能成功时走 `ChatRequest`。
- `/v1/responses` 先保留原文。普通请求优先走实现了 `NativeResponsesStreamer` 的候选账号;可兼容转换的命名聚合组先按组策略选成员,再按成员的 adapter 能力派发。
- `/v1/chat/completions` 和 `/v1/messages` 没有原生路径。它们仍先变成 `ChatRequest`。选中 Codex 时,adapter 再把它建成 Responses 请求。
- 路由、权限、冷却、重试和日志仍在 executor。没有第二套直通执行器。
- 原生能力看接口,不看 provider 名字。gateway 里没有 `if provider == "codex"`。
Expand All @@ -29,9 +29,9 @@ last-updated: 2026-09-25
```text
/v1/messages Messages → ChatRequest ─────────────┐
/v1/chat/completions ChatRequest ────────────────────────┼─→ 选号
/v1/responses 保留原文 ──→ 有原生 adapter? │
├─ 是:原文副本 + 本次执行参数 ──┤
└─ 否:能转 Chat 才继续 ────────┘
/v1/responses 保留原文,尝试 Chat 兼容转换 ─────────┘
普通请求:有原生候选时只选原生
命名聚合组:转换成功时不按协议重排成员
│
选中的 adapter 决定上游协议
Codex:两条路径都打 Responses,并套同一套上游约束
Expand All @@ -46,14 +46,18 @@ last-updated: 2026-09-25

`HandleResponses` 有上限地读完 body,解析为 `translate.NativeResponsesRequest`。非法 JSON、非对象、尾随值、缺 `model` 或 `input`、以及 `previous_response_id` / `conversation` 直接拒绝。

兼容转换 `Compat()` 会试一次,但失败不再挡住请求。随后:
网关先尝试兼容转换 `Compat()`;转换失败只限制候选协议,不直接挡住请求。随后:

1. 有实现 `NativeResponsesStreamer` 的候选账号时,只在这些账号里选。每次尝试从原文取一份副本,带上 `providers.RequestOptions`(本次上游模型、是否去掉 system/developer)。流式转发上游 SSE;`stream:false` 仍向上游要 SSE,再由 `translate.CollectResponses` 取出终态 `response` 对象。失败不降级到 Chat 重建。
2. 没有原生账号,且原文能转成 `ChatRequest` 时,走原来的 `ChatStream` / `ChatNonStream`,网关再把结果拼回 Responses。
3. 两边都不行,返回 `unsupported_request`。
1. **普通请求**:有原生候选时只选原生账号,暂时满载或冷却并不会让它降级到兼容路径。没有原生候选且转换成功时,使用 `ChatStream` / `ChatNonStream`,由网关把结果编码回 Responses。
2. **命名聚合组且转换成功**:与 Chat 使用同一组选成员规则,不为了协议优先级重排。每次尝试由选中成员决定:支持 `NativeResponsesStreamer` 就用原文,否则用兼容 `ChatRequest`。组允许回退时,两种路径共用同一个 `max_attempts` 派发预算。
3. **转换失败**:无论是否命名聚合组,都只允许原生成员;若没有符合条件的原生候选,返回 `unsupported_request`,不丢字段重建请求。

每次原生尝试用原文副本和 `providers.RequestOptions`(本次上游模型、是否去掉 system/developer)。流式请求转发 SSE;`stream:false` 仍向上游要 SSE,再由 `translate.CollectResponses` 取出终态 `response` 对象。

现在只有 Codex 实现了这个接口。

**English summary:** Ordinary Responses requests remain native-only when the route has a native-capable candidate. A named aggregation whose request can be translated to Chat selects members using its configured strategy, then chooses native or Chat dispatch per member. Both share the group’s attempt budget. Requests that cannot be translated to Chat still require a native member.

### 2.2 `/v1/chat/completions` 和 `/v1/messages`

这两条没有原文保留,也没有原生分派。
Expand All @@ -70,7 +74,7 @@ last-updated: 2026-09-25
| 内容 | 现在的位置 | 约束 |
| --- | --- | --- |
| Responses 原文 | `translate.NativeResponsesRequest` | 自有 body。`Fields()` 每次返回副本,failover 不能改到下一次 |
| 兼容表示 | `translate.ChatRequest` | Chat/Messages 的唯一内容;Responses 仅在没有原生账号且转换成功时使用 |
| 兼容表示 | `translate.ChatRequest` | Chat/Messages 的唯一内容;Responses 转换成功且本次路由使用兼容 adapter 时使用 |
| 本次执行决定 | `providers.RequestOptions` | 显式参数,不放进 context。目前是上游模型 id 和 `DropSystemPrompt` |
| 原生能力 | `NativeResponsesStreamer.ResponsesStream` | 入参是原文指针和 `RequestOptions`,返回上游 Responses SSE |
| 事件判定 | `translate.ParseResponsesEvent` | relay 和 collector 共用。`response.failed` 是终态错误,不再补第二条错误帧 |
Expand Down Expand Up @@ -115,9 +119,10 @@ Chat/Messages 翻译路径还会先做消息到 item 的重建(tool 结果变
- 原生流式转发上游事件,不压成 chat delta。namespace 工具名在响应里还原。
- 原生非流式只取 `response.completed` 或 `response.incomplete` 上的完整 `response` 对象,不经 `ChatOutcome`。
- `response.failed` 记为错误。事件已经转给客户端时,不再追加第二条错误帧。
- 原生候选耗尽后不自动改走有损的 Chat 重建。没有原生候选且兼容转换也失败时,请求直接失败。
- 普通请求的原生候选耗尽后不自动走兼容路径。只有转换成功的命名聚合组可以在同一派发预算内按配置回退到兼容成员,仍遵守上游明确禁止回退的错误。
- 协议不兼容不给账号加冷却。上游的限流、认证和可用性错误仍走原来的分类。
- 响应已经开始写给客户端之后不换上游再拼一段。
- 流式请求在接受首个有效上游事件后不换上游再拼一段。Chat 的早期 heartbeat 注释不是上游事件,只保活、不公布尚未确定的账号。
- 如果客户端已取消,且流只给出 EOF 或无法确定来源的读取错误,不将其计作账号故障;已确认的终态成功或明确的上游错误保留原结果。
- 原文、加密内容和凭证不进默认日志。

fake 测试证明字段按上面的清单改写、其余成员留下来、失败终态不会被当成成功。它不证明某个真实 ChatGPT 账号接受全部保留字段,也不证明加密 reasoning 可以跨账号回放。
Expand Down
Loading