Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
2d09325
chore: preserve console/provider/checkin work before PR split
guyu233 Nov 24, 2026
d13952c
fix(executor): retry transient failures in place and keep cache anchors
guyu233 Nov 24, 2026
a70f471
feat(translate): normalize tool order and escape cooling providers
guyu233 Nov 24, 2026
99be671
Merge origin/main (5861ffe3) into tmp/console-batch-20261124
guyu233 Nov 24, 2026
912708d
ci: re-trigger workflows after enabling Actions on fork
guyu233 Nov 24, 2026
afc2ba3
docs: archive changelog for v0.7.46
github-actions[bot] Nov 24, 2026
9c5a05b
Merge pull request #1 from guyu233/docs/archive-changelog-v0.7.46
guyu233 Nov 24, 2026
360c71d
feat(update): make the release repository configurable
guyu233 Nov 24, 2026
578e934
ci: add a same-version republish workflow for fork releases
guyu233 Nov 24, 2026
e153821
fix(console): surface model-pool errors and validate the id locally
guyu233 Nov 24, 2026
6bfe7d7
fix(console): allow dots in model-pool ids and default the name to th…
guyu233 Nov 24, 2026
22a7895
feat(update): point releases and the host updater at the fork
guyu233 Nov 24, 2026
b323a27
ci: derive the release base from tags when the fork has no published …
guyu233 Nov 24, 2026
96c99c9
docs: archive changelog for v0.7.47
github-actions[bot] Nov 24, 2026
519ad7d
Merge pull request #1 from guyu233/docs/archive-changelog-v0.7.47
guyu233 Nov 25, 2026
11943ca
chore(release): renumber the fork release line to v0.7.45
guyu233 Nov 25, 2026
dbc9eb1
docs: archive changelog for v0.7.45
github-actions[bot] Nov 25, 2026
fa648a9
Merge pull request #2 from guyu233/docs/archive-changelog-v0.7.45
guyu233 Nov 25, 2026
f5c8be6
fix(providers): keep client version pins and their wire paths on curr…
guyu233 Nov 25, 2026
96f046a
fix(trae): pin the published 3.4.21 client version
guyu233 Nov 25, 2026
94e396d
fix(providers): align Meta Muse and MiniMax identities with current b…
guyu233 Nov 25, 2026
3ebc6b4
fix(providers): pin the remaining client identities to shipped builds
guyu233 Nov 25, 2026
4d48616
fix(console): lock providers and expose logical models for aggregatio…
guyu233 Nov 25, 2026
9c4f32f
test(app): cover aggregation key model list merge
guyu233 Nov 25, 2026
b315da0
fix(console): keep synthetic aggregation entries out of the model cat…
guyu233 Nov 25, 2026
46eaefa
fix: isolate aggregation models from the shared server catalog
guyu233 Nov 25, 2026
280fb3e
feat(console): declare capability overrides on aggregation models
guyu233 Nov 25, 2026
2473be7
feat(console): push real runtime state and run bulk account ops fully…
guyu233 Nov 25, 2026
0ec1493
docs: archive changelog for v0.7.46
github-actions[bot] Nov 25, 2026
963dafb
Merge pull request #3 from guyu233/docs/archive-changelog-v0.7.46
guyu233 Nov 25, 2026
e09e637
fix(updater): take the host updater binary from the pulled image
guyu233 Nov 25, 2026
545225a
docs: archive changelog for v0.7.47
github-actions[bot] Nov 25, 2026
bd3f3fa
Merge pull request #4 from guyu233/docs/archive-changelog-v0.7.47
guyu233 Nov 25, 2026
6cdff12
fix(checkin): learn the daily window per provider region
guyu233 Nov 25, 2026
cf82bd7
docs: archive changelog for v0.7.48
github-actions[bot] Nov 25, 2026
a94b84c
fix(updater): bound and retry docker pull attempts
guyu233 Nov 25, 2026
98c3991
docs: archive changelog for v0.7.49
github-actions[bot] Nov 25, 2026
0d120d2
Merge pull request #5 from guyu233/docs/archive-changelog-v0.7.48
guyu233 Nov 25, 2026
a8bac48
Merge remote-tracking branch 'origin/main' into archive-v049
guyu233 Nov 25, 2026
161dbe5
Merge pull request #6 from guyu233/docs/archive-changelog-v0.7.49
guyu233 Nov 25, 2026
48e8d82
fix(checkin): drive the automatic schedule from the per-provider setting
guyu233 Nov 25, 2026
43cc393
feat(console): bulk account re-login walkthrough
guyu233 Nov 25, 2026
60018ba
fix(updater): accept tag-prefixed health version when verifying deploy
guyu233 Nov 25, 2026
4b01b96
fix(gateway): repair damaged tool-call arguments instead of failing t…
guyu233 Nov 25, 2026
ec2ec5f
fix(gateway): keep same-tool calls separate when upstream reuses index 0
guyu233 Nov 25, 2026
0ebb18e
fix(gateway): stream normalized tool arguments only, never damaged fr…
guyu233 Nov 25, 2026
23229f5
fix(account): make the bulk relogin checkbox clickable
guyu233 Nov 25, 2026
892fe27
providers: degrade undeclared reasoning levels downward (CC Switch la…
guyu233 Nov 25, 2026
a0cf906
changelog: bullet reasoning effort degrade note
guyu233 Nov 25, 2026
649e573
console: real checkbox reasoning picker for logical models
guyu233 Nov 25, 2026
33b2989
console: drop arbitrary 1024 floor and max<=context rule on logical m…
guyu233 Nov 26, 2026
6e8d791
providers: never upgrade a client reasoning level; release: explicit …
guyu233 Nov 26, 2026
c4803aa
docs: state the CC Switch reasoning pass-through rule
guyu233 Nov 26, 2026
f113930
executor: default max_tokens to the catalog max output when the clien…
guyu233 Nov 26, 2026
4acb5c5
revert: forward client output limits as sent
guyu233 Nov 26, 2026
d17a1fb
release: allow an explicit version rewind when the number is free
guyu233 Nov 26, 2026
06f3a81
update: follow the repository latest marker instead of the highest tag
guyu233 Nov 26, 2026
f8503fc
Merge branch 'main' into main
caigee-cmd Nov 26, 2026
24160ce
trae: unlock the max context tier instead of a per-model switch
guyu233 Nov 26, 2026
410bfb5
Merge remote-tracking branch 'origin/main' into fix/provider-client-v…
guyu233 Nov 26, 2026
0b7cb0a
executor: bound silent upstream streams with an idle deadline
guyu233 Nov 26, 2026
c18960f
release: require each version to be the next patch
guyu233 Nov 26, 2026
d68bf36
changelog: drop withdrawn 0.7.46-0.7.49 sections
guyu233 Nov 26, 2026
5ce1845
release: keep upstream repository defaults, let forks override via env
guyu233 Nov 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 48 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Release

run-name: Release next ${{ inputs.bump || 'patch' }} from ${{ github.ref_name }}
run-name: Release ${{ inputs.version || 'next' }} ${{ inputs.version == '' && format('({0} bump)', inputs.bump || 'patch') || '' }} from ${{ github.ref_name }}

on:
workflow_dispatch:
Expand All @@ -13,6 +13,14 @@ on:
- patch
- minor
- major
version:
description: Optional explicit x.y.z version; it must be exactly the next patch after the latest published release (use bump=minor/major to change the line)
type: string
required: false
allow_rewind:
description: Permit an explicit version below the latest tag when the tag is free (numbering reset)
type: boolean
default: false

concurrency:
group: release
Expand Down Expand Up @@ -68,6 +76,8 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
BUMP: ${{ inputs.bump || 'patch' }}
EXPLICIT_VERSION: ${{ inputs.version }}
ALLOW_REWIND: ${{ inputs.allow_rewind }}
run: |
set -euo pipefail
if [[ "$GITHUB_REF" != "refs/heads/main" ]]; then
Expand All @@ -86,9 +96,45 @@ jobs:
previous_tag="$({
gh api --paginate "repos/${GITHUB_REPOSITORY}/releases?per_page=100" \
--jq '.[] | select(.draft == false and .prerelease == false) | .tag_name'
# A fork can carry the version history as tags before it has any
# published release of its own; fall back to the highest semantic
# tag reachable from the commit being released.
git tag --merged "$GITHUB_SHA" --list 'v[0-9]*'
} | awk '/^v[0-9]+\.[0-9]+\.[0-9]+$/ { print }' | sort -V | tail -n 1)"

if [[ -z "$previous_tag" ]]; then
explicit="${EXPLICIT_VERSION:-}"
if [[ -n "$explicit" && ! "$explicit" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Explicit version must be x.y.z, got $explicit" >&2
exit 1
fi

if [[ -n "$explicit" ]]; then
IFS=. read -r major minor patch <<< "$explicit"
if [[ "${ALLOW_REWIND:-false}" == "true" ]]; then
# Intentional numbering reset: the operator deliberately reuses a
# version number below the latest tag, so the number must be free.
if git rev-parse -q --verify "refs/tags/v$explicit" >/dev/null; then
echo "Tag v$explicit still exists; delete its release and tag first" >&2
exit 1
fi
elif [[ -n "$previous_tag" ]]; then
# Versions iterate by exactly one patch on the 0.7.x line: no
# jumps, no rewinds, no reuse. An explicit number is only the next
# patch of the latest published release; line changes go through
# bump=minor/major.
prev="${previous_tag#v}"
IFS=. read -r prev_major prev_minor prev_patch <<< "$prev"
expected="$prev_major.$prev_minor.$((prev_patch + 1))"
if [[ "$explicit" != "$expected" ]]; then
echo "Explicit version $explicit must be the next patch $expected after $previous_tag" >&2
exit 1
fi
fi
if [[ -n "$previous_tag" ]] && ! git merge-base --is-ancestor "$previous_tag" "$GITHUB_SHA"; then
echo "$previous_tag is not an ancestor of $GITHUB_SHA" >&2
exit 1
fi
elif [[ -z "$previous_tag" ]]; then
major=0
minor=1
patch=0
Expand Down
101 changes: 101 additions & 0 deletions .github/workflows/republish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: Republish

# Rebuild an already published release without minting a new version: the
# image tags and the seven updater assets are overwritten. Normal releases
# still go through release.yml exactly once.

on:
workflow_dispatch:
inputs:
tag:
description: Published release tag to rebuild (for example v0.7.46)
required: true
type: string

permissions:
contents: read

concurrency:
group: republish-${{ inputs.tag }}
cancel-in-progress: false

jobs:
assets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build host updater assets
env:
APP_VERSION: ${{ inputs.tag }}
APP_COMMIT: ${{ github.sha }}
run: ./scripts/build-updater-assets.sh release-assets
- uses: actions/upload-artifact@v4
with:
name: updater-assets-${{ inputs.tag }}
path: release-assets/
if-no-files-found: error
retention-days: 7

image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish image under the existing tag set
env:
TAG: ${{ inputs.tag }}
run: |
set -euo pipefail
image="ghcr.io/${GITHUB_REPOSITORY,,}"
version="${TAG#v}"
series="${version%.*}"
docker buildx build \
--file deploy/Dockerfile \
--platform linux/amd64,linux/arm64 \
--build-arg APP_VERSION="$TAG" \
--build-arg APP_COMMIT="$GITHUB_SHA" \
--label "org.opencontainers.image.source=https://github.com/${GITHUB_REPOSITORY}" \
--label "org.opencontainers.image.version=$TAG" \
--label "org.opencontainers.image.revision=$GITHUB_SHA" \
--tag "$image:$TAG" \
--tag "$image:$version" \
--tag "$image:$series" \
--tag "$image:latest" \
--push .
manifest="$(docker buildx imagetools inspect --raw "$image:$TAG")"
jq -e '.manifests[] | select(.platform.os == "linux" and .platform.architecture == "amd64")' <<< "$manifest" >/dev/null
jq -e '.manifests[] | select(.platform.os == "linux" and .platform.architecture == "arm64")' <<< "$manifest" >/dev/null
echo "Republished $image:$TAG from $GITHUB_SHA" >> "$GITHUB_STEP_SUMMARY"

attach:
needs: [assets, image]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
name: updater-assets-${{ inputs.tag }}
path: release-assets
- name: Replace the release assets
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ inputs.tag }}
run: |
set -euo pipefail
gh release upload "$TAG" release-assets/* --clobber --repo "$GITHUB_REPOSITORY"
count="$(gh release view "$TAG" --repo "$GITHUB_REPOSITORY" --json assets --jq '.assets | length')"
test "$count" -eq 7
echo "Release $TAG now carries $count rebuilt assets" >> "$GITHUB_STEP_SUMMARY"
4 changes: 3 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ live-account acceptance, and release status separate.
- Pull latest `main` and merge it into the current branch before starting any feature work (skip only when already on up-to-date `main`)
- After console UI changes, run `cd frontend && npm run sync` so `internal/webui/static` matches `frontend/dist`. Do not commit a stale hashed JS/CSS pair.
- User-facing changes add one bilingual file in `changelog/unreleased/` (`### English` / `### 中文`). Do not put upcoming notes in `CHANGELOG.md` and do not add `## Unreleased` there. Do not freeze or unfreeze changelog sections by hand. Do not reuse a fragment filename until that tag's archive PR has merged.
- Version numbers iterate by exactly one patch on the 0.7.x line (baseline `v0.7.45`): the next release is the latest published version +1. Never jump, reuse a tag, or rewind a published version; an explicit release version must equal previous+1, and a deliberate numbering reset needs `allow_rewind` with the old release and tag deleted first.
- When `main` is checked out in another worktree, merge PRs with `gh api` / GitHub; do not `git checkout main` here.
- Keep architecture: auth / endpoint / executor / translate, plus `internal/store` (SQLite), `internal/control` (console facade: accounts, keys, settings, catalog, login, import), `internal/runtime` (Manager lifecycle), `internal/providers/qoder` (Qoder HOME/CLI/worker protocol and Adapter), `internal/gateway` (public protocol HTTP), `internal/console` (operator HTTP), `internal/server` (routes/middleware/webui), and `internal/app` (process assembly). `internal/api` is a test-only compatibility facade (`api.New` → `app.New`); do not add business there. Account entities stay in `accounts`; Pool/Item/RouteQuery/Classify and request Prepare live in `executor`. Display catalog cache lives in `control.Catalog`; catalog aggregation, identity filter, and settings decoration live in `control`, not `app`. Public `/v1/chat/completions`, `/v1/messages`, `/v1/responses`, and `/v1/models` live in `gateway`; console `/api/*` lives in `console`; `internal/server` registers both. Console HTTP decodes and maps errors; persist/apply for system settings and console-key rotation live in `control.System` / `control.KeyRotation`. Update job/maintenance lives in `internal/update.Coordinator`. SQLite lives in `internal/store`; process tables live in runtime. Runtime constructs the one Pool and injects it into executor. PAT-backed Qoder accounts (`qoder-pat-v1`) run login, catalog, quota, check-in, and chat in-process through the qauth Bridge; do not spawn a Node worker for them. Accounts that still carry the legacy `qoder-native-v1` CLI blob keep one child process per HOME until the operator re-logs them with a PAT. The registered Adapter includes a Prober and sends chat through the in-process COSY client. `cmd/server` constructs `app.New`. `accounts` must not import `runtime` or `executor`. Executor Prepare must not take `*http.Request` or import store. Gateway, console, and server must not import store or runtime Manager. App/server/gateway/console must not import `internal/api`. Provider packages must not receive `http.ResponseWriter` or import executor taxonomy; OAuth loopback HTTP stays in `auth.ServeLoopback`. Adapter error classification and cooldown math live in `executor`; gateway only formats the result.
- Prefer direct HTTP/SSE to Qoder cloud APIs
- Pin qodercli / qoderclicn hooks in `worker/src/compat.mjs`; fail loudly on mismatch. Qoder CN is `provider=qoder` + `region=cn`, not a new family
- Reasoning levels are catalog-driven: map client values through `internal/providers/reasoning.go` (`none`/`low`/`medium`/`high`/`xhigh`/`max`), clamp anything the model does not allow back to an allowed level, and treat the console value as a default only (it never locks a call or caps a higher client value)
- Reasoning levels follow CC Switch: a level the client sends is forwarded untouched whenever the model declares it, an undeclared level degrades to the nearest lower declared tier (never upward, never to the model default), a request below the floor lands on the cheapest declared tier, and a reasoning mismatch must never move the request to another provider
- Output and context limits are client-owned: forward `max_tokens` / `max_output_tokens` exactly as sent, never replace an absent value with the model's catalog maximum, and publish `context_length` / `max_output_tokens` in `/v1/models` so the client can size its own request. No implicit default knobs unless the upstream protocol itself requires the field
- Console UI: React + Tailwind v4 + **HeroUI only** for components
- Follow `docs/DESIGN.md` (taste v1 adapted for this console)
- Keep iterating Qoder login, usage, and account routing. Keep scheduling focused on personal-account routing rather than commercial gateway features
Expand Down
Loading
Loading