Repository navigation
v3.4.1
Warning
BREAKING CHANGE: request logging, retention, and logging environment variables have been redesigned.
On the first startup after upgrading, OmniRoute archives legacy request logs from DATA_DIR/logs/, legacy DATA_DIR/call_logs/, and DATA_DIR/log.txt into DATA_DIR/log_archives/*.zip, then removes the deprecated layout and switches to the new unified artifact format under DATA_DIR/call_logs/.
✨ New Features
-
feat(docs): integrate multi-page documentation into OmniRoute dashboard (#1969)
-
feat(settings): add request body limit setting (#1968)
-
feat(auth): add Gemini CLI OAuth client secret default (#1974)
-
feat(models): expose models.dev context windows in /v1/models (#1972)
-
fix(db): resolve legacy encryption fallback causing re-encryption loops (#1941)
-
fix(auth): fix Codex assistant final_answer response sanitization (#1965)
-
feat(providers): Implement Image Generation and Editing capabilities for ChatGPT Web, including in-band chat image generation and caching (#1606).
-
feat(ui): Integrate OpenCode Zen/Go API tool logo SVG and polish API key copy-to-clipboard interactions (#1607).
-
feat(providers): Integrate AgentRouter as a new OpenAI-compatible passthrough provider with $200 free credits via sign-up (Issue #1572).
-
feat(ui): Implement on-demand per-model testing in the provider dashboard, allowing single-token diagnostic checks without triggering rate-limits (Issue #1532).
-
.ENV Migration Utility: Included
scripts/migrate-env.mjsto seamlessly migrate<v3.3configurations tov3.4.xstrict security validation constraints (FASE-01), repairing startup crashes caused by shortJWT_SECRETinstances. -
Kiro AI Cache Optimization: Implemented deterministic
conversationIdgeneration (uuidv5) to enable AWS Builder ID Prompt Caching properly across invocations (#814). -
Dashboard UI Restoration & Consolidation: Resolved sidebar logic omitting the Debug section, and cleared Nextjs routing warnings by moving standalone
/dashboard/mcpand/dashboard/a2apages explicitly into embedded Endpoint Proxy UI components. -
Unified Request Log Artifacts: Request logging now stores one SQLite index row plus one JSON artifact per request under
DATA_DIR/call_logs/, with optional pipeline capture embedded in the same file. -
Language: Improved the Chinese translation (#855)
-
Opencode-Zen Models: Added 4 free models to opencode-zen registry (#854)
-
Tests: Added unit and E2E tests for settings toggles and bug fixes (#850)
🐛 Bug Fixes
-
fix(mitm): Compile MITM utilities as NodeNext ESM during prepublish, copy the CommonJS MITM server into the standalone artifact, and resolve MITM data paths without relying on Next.js aliases in packaged runtime.
-
fix(build): Move the local
.tmp/wine32Wine prefix out of the isolated Next.js build path so Windows Electron packaging artifacts cannot triggerEACCESscans during Node 24 builds. -
fix(build): Copy the
wreq-jsnative runtime directory into the isolated Next.js standalone output so packaged Playwright/E2E starts can load the instrumentation hook on Linux. -
fix(api): Validate the Codex Responses websocket bridge and
/v1/batchesJSON payloads with Zod before use, keepingrequest.json()route validation green and returning explicit 400 responses for invalid bodies. -
fix(providers): Add explicit typing to provider alias and category helpers so the strict
typecheck:noimplicit:coreCI gate passes. -
fix(ui): Keep the upstream proxy provider detail page labeled with a fallback "Managed via Upstream Proxy Settings" management surface when translations are unavailable.
-
fix(electron): Harden the production desktop CSP by removing
unsafe-evaloutside development and adding object, base URI, form action, frame ancestor, and worker restrictions. -
fix(cli): Replace shell-interpolated setup and privileged command execution paths with argument-based
spawn/execFilehelpers for database setup, Tailscale sudo commands, MITM DNS edits, and certificate install/uninstall flows. -
fix(ui): Keep provider icons resilient by using direct
@lobehub/iconscomponents first, then local PNG/SVG fallbacks, avoiding the@lobehub/uipeer runtime in the dashboard. -
429 Quota Parsing: Parsed long quota reset times from error bodies to honor correct backoffs and prevent rate-limited account bans (#859)
-
Prompt Caching: Preserved client
cache_controlheaders for all Claude-protocol providers (like Minimax, GLM, and Bailian), correctly recognizing caching support (#856) -
Model Sync Logs: Reduced log spam by recording
sync-modelsonly when the channel actually modifies the list (#853) -
Provider Quota & Token Parsing: Switched Antigravity limits to use
retrieveUserQuotanatively and correctly mapped Claude token refresh payloads to URL-encoded forms (#862) -
Rate-Limiting Stability: Universalized the 429 Retry-After parsing architecture to cap provider-induced cooldowns at 24 hours max (#862)
-
Dashboard Limit Rendering: Re-architected
/dashboard/limitsquota mapping to render immediately inside chunks, fixing a major UI freezing delay on accounts exceeding 70 active connections (#784) -
QWEN OAuth Authorization: Mapped the OIDC
id_tokenas the primary API Bearer token for Dashscope requests, fixing immediate 401 Unauthorized errors after connecting accounts or refreshing tokens (#864) -
ZAI API Stability: Hardened Server-Sent Events compiler to gracefully fallback to empty strings when DeepSeek providers stream mathematically null content during reasoning phases (#871)
-
Claude Code/Codex Translations: Protected non-streaming payload conversions against empty responses from upstream Codex tools, avoiding catastrophic TypeErrors (#866)
-
NVIDIA NIM Rendering: Conditionally stripped identical provider prefixes dynamically pushed by audio models, eliminating duplicate
nim/nimtag structures throwing 404 on the Media Playground (#872)
⚠️ Breaking Changes
- Request Log Layout: Removed the old multi-file
DATA_DIR/logs/request log sessions and theDATA_DIR/log.txtsummary file. New requests are written as single JSON artifacts inDATA_DIR/call_logs/YYYY-MM-DD/. - Logging Environment Variables: Replaced
LOG_*,ENABLE_REQUEST_LOGS,CALL_LOGS_MAX,CALL_LOG_PAYLOAD_MODE, andPROXY_LOG_MAX_ENTRIESwith the newAPP_LOG_*andCALL_LOG_RETENTION_DAYSconfiguration model. - Pipeline Toggle Setting: Replaced the legacy
detailed_logs_enabledsetting withcall_log_pipeline_enabled. New pipeline details are embedded inside the request artifact instead of being stored as separaterequest_detail_logsrecords.
🛠️ Maintenance
- Legacy Request Log Upgrade Backup: Upgrades now archive old
data/logs/, legacydata/call_logs/, anddata/log.txtlayouts intoDATA_DIR/log_archives/*.zipbefore removing the deprecated structure. - Streaming Usage Persistence: Streaming requests now write a single
usage_historyrow on completion instead of emitting a duplicate in-progress usage row with empty status metadata. - Logging Follow-up Cleanup: Pipeline logs no longer capture
SOURCE REQUEST, request artifact entries now honorCALL_LOG_MAX_ENTRIES, and application log archives now honorAPP_LOG_MAX_FILES.