Spaces:
Paused
Paused
Commit History
-
docs: auto-sync changelog to README [skip ci]
github-actions[bot]9ffd433 -
feat: auto-refresh quota with tiered warnings (#92) (#93)
icebear +1: icebear0828Unverified signatureBackground quota refresher fetches official usage every 5min (configurable), caches on AccountEntry for instant dashboard reads, and marks exhausted accounts as rate_limited. Tiered warning thresholds (default 80%/90%) trigger visual banners in the dashboard. Frontend auto-polls every 30s. Co-authored-by: icebear0828 <icebear0828@users.noreply.github.com>4f2665c -
chore: sync version to 1.0.55 [skip ci]
github-actions[bot]5e966fa -
Revert "fix: fall back to all accounts when model plan doesn't match (#91)"
icebear0828This reverts commit 5abff3872cdb12703c51d0eb110c7e67f0dd415d.f14db3a -
chore: sync version to 1.0.54 [skip ci]
github-actions[bot]51d99e7 -
fix: fall back to all accounts when model plan doesn't match (#91)
icebear +1: icebear0828Unverified signatureThe backend's /codex/models API returns different model lists per plan (e.g. free doesn't list gpt-5.4), but free accounts can actually use those models. Previously, acquire() returned null when no account matched the model's plan requirements, blocking valid requests. Now falls back to all available accounts instead of hard-blocking, since the backend's plan-based model list is incomplete. Co-authored-by: icebear0828 <icebear0828@users.noreply.github.com>5abff38 -
chore: sync version to 1.0.53 [skip ci]
github-actions[bot]98d1cac -
fix: skip proxy update checker in Electron mode (#89)
icebear +1: icebear0828Unverified signatureElectron has its own native auto-updater (electron-updater) that handles download and install via system tray. The backend's startProxyUpdateChecker() was also running, causing the web UI UpdateModal to pop up and conflict with the native updater. - Skip startProxyUpdateChecker() when deploy mode is "electron" - Don't auto-open UpdateModal in Electron mode Co-authored-by: icebear0828 <icebear0828@users.noreply.github.com>7445795 -
chore: sync version to 1.0.52 [skip ci]
github-actions[bot]ac65ecc -
fix: dynamic import `ws` to prevent Electron ESM startup crash (#88)
icebear +1: icebear0828Unverified signatureThe `ws` package uses CJS `require('events')` internally. When esbuild bundles the server as ESM for Electron, these dynamic requires fail at startup with "Dynamic require of 'events' is not supported". Switch to lazy dynamic `import("ws")` so the CJS dependency chain is only resolved at first WebSocket use, not at module load time. Also lazy-import `https-proxy-agent` for the same reason. Closes #87 Co-authored-by: icebear0828 <icebear0828@users.noreply.github.com>ea2be52
-
chore: sync version to 1.0.51 [skip ci]
github-actions[bot]257bec0 -
Merge pull request #86 from icebear0828/feat/account-import-export
icebearUnverified signaturefeat: bulk account import/export with selective exportb6cea4f -
fix: server-side export filtering and JSON parse safety
icebear0828- Export endpoint supports ?ids= query param for selective export, preventing full token payload over the network - Import hook wraps JSON.parse in try-catch for invalid files - Add test for selective export filteringa8a2d95 -
feat: bulk account import/export with selective export (#82)
icebear0828- GET /auth/accounts/export — export all accounts (with tokens) for backup - POST /auth/accounts/import — bulk import from JSON with dedup detection - Dashboard: import/export buttons next to refresh, multi-file import - Selective export: checkbox on each account card, select all/deselect all - 9 unit tests for backend routes268c5a4 -
feat: WebSocket transport + previous_response_id for multi-turn (#84)
icebear +1: icebear0828Unverified signature* feat: WebSocket transport + previous_response_id for multi-turn (#83) The Codex backend only supports `previous_response_id` over WebSocket, not HTTP SSE. This adds a dual-track transport layer: - /v1/responses now connects to the backend via WebSocket by default - WebSocket omits the `store` field, letting the server persist responses - Clients can send `previous_response_id` to reference earlier turns - On WebSocket failure, automatically falls back to HTTP SSE New files: - src/proxy/ws-transport.ts — WebSocket-to-SSE bridge (ReadableStream) Dependencies: ws, https-proxy-agent * fix: move ws from devDependencies to dependencies ws is imported at runtime by src/proxy/ws-transport.ts, so it must be in dependencies for production installs (npm install --omit=dev). --------- Co-authored-by: icebear0828 <icebear0828@users.noreply.github.com>d07b5c0 -
chore: sync version to 1.0.50 [skip ci]
github-actions[bot]0fc4785 -
fix: add Cache-Control headers to prevent stale frontend after update (#79)
icebear +1: icebear0828Unverified signatureindex.html served with no-cache so browsers always revalidate after rebuild. /assets/* served with immutable (Vite content-hashed filenames). Fixes #78 where users saw old model list after updating. Co-authored-by: icebear0828 <icebear0828@users.noreply.github.com>edb874f -
chore: sync version to 1.0.49 [skip ci]
github-actions[bot]7594b26 -
feat: tuple schema (prefixItems) support for structured outputs (#77)
icebear +1: icebear0828Unverified signature* feat: tuple schema support — prefixItems auto-conversion for structured outputs Upstream Codex API doesn't support JSON Schema prefixItems (tuple), so we convert tuple schemas to equivalent object schemas on the request side and reconvert the response back to arrays. All three endpoints (OpenAI, Gemini, Responses passthrough) are covered. - New module: src/translation/tuple-schema.ts (convert/reconvert/detect) - prepareSchema() composes tuple conversion + additionalProperties injection - Streaming: buffer text deltas when tupleSchema present, flush reconverted on completion - 23 unit tests for core conversion logic * fix: responses endpoint tuple reconversion + cleanup - Add tuple schema reconversion to /v1/responses (stream + collect), making all three endpoints consistent - Remove unrelated web/src/hooks/use-status.ts from this branch - Add console.warn to silent catch blocks for easier debugging - Add streaming buffer tradeoff comment --------- Co-authored-by: icebear0828 …e25a730
-
chore: sync version to 1.0.48 [skip ci]
github-actions[bot]c7c93b9 -
fix: add color-scheme declaration to prevent browser auto-darkening
icebear0828Browsers with Auto Dark Mode (Chrome/Safari on macOS dark) override CSS colors when color-scheme is not declared. Added color-scheme: light/dark to :root/.dark CSS, index.html meta tag, and JS toggle to explicitly control the color scheme per theme state.f3c6831 -
docs: auto-sync changelog to README [skip ci]
github-actions[bot]8146bd7 -
feat: model list auto-sync + theme contrast fix
icebear0828- Backend: auto-write merged catalog back to models.yaml after dynamic fetch - Frontend: poll /v1/models/catalog every 60s to pick up new models - Theme: light mode bg #f6f8f6 → #ffffff for clearer dark/light contrast - Remove unused legacy web/src/hooks/use-status.ts94a5578
-
docs: auto-sync changelog to README [skip ci]
github-actions[bot]a281808 -
feat: Docker image auto-publish to GHCR + Watchtower support
icebear0828- Add docker-publish.yml workflow: multi-arch (amd64/arm64) build on every push to master, published to ghcr.io/icebear0828/codex-proxy - Switch docker-compose.yml from local build to pre-built GHCR image - Add commented Watchtower service block for automatic updates - Simplify README Docker section: no git clone needed, just curl configs - Update dashboard Docker hint to mention Watchtower option - Add dockerAutoUpdateHint i18n key (en/zh)7ff102d -
chore: sync version to 1.0.45 [skip ci]
github-actions[bot]d44918f -
fix: mode-specific update hints for Docker and Electron
icebear0828- apply-update 400 response now includes mode + hint per deploy type - Docker: docker compose pull && docker compose up -d (was --build) - Electron: prompt to use built-in auto-updater instead of GitHub link - Add electronUpdateHint i18n key (en/zh)009c43a -
docs: auto-sync changelog to README [skip ci]
github-actions[bot]030fecf -
fix: simplify hardRestart — remove helper script, spawn directly with EADDRINUSE retry
icebear0828- Remove `.restart-helper.cjs` temp file approach (fragile, silent failure) - Spawn new server process directly; relies on index.ts EADDRINUSE retry - Bump EADDRINUSE retry from 5→10 attempts for safer restart window - Validate nodeExe exists before spawn to prevent silent death - Log child output to `.restart.log` for post-mortem debugging - Fix 4 failing tests: align with git checkout step + SSE stream format73fd0ce -
chore: sync version to 1.0.44 [skip ci]
github-actions[bot]8bf939c -
test: verify SSE update progress and restart
icebear082810bf4eb -
chore: sync version to 1.0.43 [skip ci]
github-actions[bot]381fde4 -
feat: SSE update progress + reliable restart on Windows
icebear0828 +1: Claude Opus 4.6 (1M context)- apply-update returns SSE stream with step-by-step progress (pull → install → build → restart) - Frontend parses SSE, shows progress steps with checkmarks in modal - Restart helper writes temp .restart-helper.cjs file instead of -e inline script (fixes Windows command escaping issues) - RESTART_TIMEOUT increased from 30s to 120s - Frontend falls back to restart polling if connection drops mid-stream Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>236dd56 -
chore: sync version to 1.0.42 [skip ci]
github-actions[bot]f19ccae -
fix: dark mode tabs, StableText bilingual width, self-update reliability
icebear0828 +1: Claude Opus 4.6 (1M context)- CodeExamples: fix dark mode tab text invisible (text-dim alpha format broken with CSS variables, use plain #8b949e; tab background use solid #0d1117 instead of transparent bg-dark/30) - StableText: use both en+zh invisible references so button width never jumps on language switch (root cause of recurring i18n layout bug) - Header: remove version/commit display (already shown in footer) - self-update: git checkout -- . before pull to discard local drift; restart via helper script that waits for port release before starting new process (fixes EADDRINUSE on Windows) - apply-update: SSE streaming progress (pull → install → build → restart) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>ca241c4 -
chore: sync version to 1.0.41 [skip ci]
github-actions[bot]afe61e7 -
fix: StableText uses both en+zh references for stable button width
icebear0828 +1: Claude Opus 4.6 (1M context)StableText previously used a single reference (either hardcoded English or dynamic t()), so buttons always jumped width on language switch. Now uses both translations.en[key] and translations.zh[key] as invisible grid references — width is always max(en, zh), never changes. Also fix self-update: run git checkout -- . before git pull to discard local modifications (e.g. package-lock.json drift) that block the pull. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>bdd4755 -
chore: sync version to 1.0.40 [skip ci]
icebear0828a438d76 -
fix: dark mode not applying on initial load
icebear0828 +1: Claude Opus 4.6 (1M context)ThemeProvider only set the dark class on toggle, not on initialization. Users with system dark mode or saved "dark" preference would see light theme until they manually toggled. Now sync dark class to <html> before first render. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>b4b60dc -
fix: model store dual index, desktop UI fallback, dynamic port support
icebear0828- Model store: replace O(n) plan map with dual index (planType→models + modelId→plans), both O(1) - Desktop UI: fallback to web UI when desktop build missing, add startup path diagnostics - Server: resolve actual bound port from server.address() to support port=0 - Model fetcher: fix log message (said 5s, actually 1s) - Update Codex Desktop fingerprint to v26.311.21342 (build 993)b94940f -
chore: sync version to 1.0.39 [skip ci]
github-actions[bot]c424a99 -
test: verify self-update restart works correctly
icebear0828 +1: Claude Opus 4.6 (1M context)Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>6ca5bc5 -
chore: sync version to 1.0.38 [skip ci]
github-actions[bot]037d209 -
fix: self-update restart with graceful close + 3s timeout fallback
icebear0828 +1: Claude Opus 4.6 (1M context)Move restart logic from index.ts handler into self-update.ts hardRestart(). Try graceful server.close() for up to 3s, then force spawn + exit. Add EADDRINUSE retry (5 attempts) so new process survives port race. Eliminates the hang caused by active SSE connections blocking server.close(). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>996585e -
chore: sync version to 1.0.37 [skip ci]
github-actions[bot]0260f90 -
fix: server restart hanging when active SSE connections exist
icebear0828 +1: Claude Opus 4.6 (1M context)server.close() waits for all connections to drain before calling its callback, which hangs indefinitely with active SSE streams. Add a 3s timeout to force shutdown, ensuring the restart handler always spawns the new process and exits. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1301d7a
-
feat: display secondary rate limit window (weekly cap) in dashboard
icebear0828 +1: Claude Opus 4.6Add secondary_rate_limit to CodexQuota type and map secondary_window from Codex usage API. Dashboard now shows both primary (hourly) and secondary (weekly) quota bars with independent progress and reset times. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>2996fd8 -
chore: sync version to 1.0.35 [skip ci]
github-actions[bot]60509b4 -
fix: chunk regex match underscore in main-XXXXX.js filename
icebear0828 +1: Claude Opus 4.6Vite chunk hashes can contain underscores (e.g. main-Dl6lTb0_.js) which the previous regex [A-Za-z0-9]+ did not match. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>b94b4e5 -
chore: sync version to 1.0.34 [skip ci]
github-actions[bot]eaf0b8a