Repository navigation
chore(release): v3.2.8 β Docker Auto-Update & Analytics Fixes #755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
2e29e45
89bd31c
107a572
1a7c363
7b1c945
3fb72b9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,25 @@ | |
|
|
||
| ## [Unreleased] | ||
|
|
||
| --- | ||
|
|
||
| ## [3.2.8] - 2026-03-29 | ||
|
|
||
| ### β¨ Enhancements & Refactoring | ||
|
|
||
| - **Docker Auto-Update UI** β Integrated a detached background update process for Docker Compose deployments. The Dashboard UI now seamlessly tracks update lifecycle events combining JSON REST responses with SSE streaming progress overlays for robust cross-environment reliability. | ||
| - **Cache Analytics** β Repaired zero-metrics visualization mapping by migrating Semantic Cache telemetry logs directly into the centralized tracking SQLite module. | ||
|
|
||
| ### π Bug Fixes | ||
|
|
||
| - **Authentication Logic** β Fixed a bug where saving dashboard settings or adding models failed with a 401 Unauthorized error when `requireLogin` was disabled. API endpoints now correctly evaluate the global authentication toggle. Resolved global redirection by reactivating `src/middleware.ts`. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. WARNING: Incorrect file reference - mentions |
||
| - **CLI Tool Detection (Windows)** β Prevented fatal initialization exceptions during CLI environment detection by catching `cross-spawn` ENOENT errors correctly. Adds explicit detection paths for `\AppData\Local\droid\droid.exe`. | ||
| - **Codex Native Passthrough** β Normalized model translation parameters preventing context poisoning in proxy pass-through mode, enforcing generic `store: false` constraints explicitly for all Codex-originated requests. | ||
| - **SSE Token Reporting** β Normalized provider tool-call chunk `finish_reason` detection, fixing 0% Usage analytics for stream-only responses missing strict `<DONE>` indicators. | ||
| - **DeepSeek <think> Tags** β Implemented an explicit `<think>` extraction mapping inside `responsesHandler.ts`, ensuring DeepSeek reasoning streams map equivalently to native Anthropic `<thinking>` structures. | ||
|
|
||
| --- | ||
|
|
||
| ## [3.2.7] - 2026-03-29 | ||
|
|
||
| ### Fixed | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,13 +43,8 @@ import { | |
| } from "@/lib/localDb"; | ||
| import { getExecutor } from "../executors/index.ts"; | ||
| import { getCacheControlSettings } from "@/lib/cacheControlSettings"; | ||
| import { | ||
| shouldPreserveCacheControl, | ||
| trackCacheMetrics, | ||
| recordCacheHit, | ||
| type CacheControlMetrics, | ||
| } from "../utils/cacheControlPolicy.ts"; | ||
| import { getCacheMetrics, updateCacheMetrics } from "@/lib/db/settings.ts"; | ||
| import { shouldPreserveCacheControl, recordCacheHit } from "../utils/cacheControlPolicy.ts"; | ||
| import { getCacheMetrics } from "@/lib/db/settings.ts"; | ||
|
Comment on lines
+46
to
+47
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This import change removed the symbols that the non-streaming path still relies on: later in Useful? React with πΒ / π. |
||
|
|
||
| import { | ||
| parseCodexQuotaHeaders, | ||
|
|
@@ -701,27 +696,6 @@ export async function handleChatCore({ | |
| settings: { alwaysPreserveClientCache: cacheControlMode }, | ||
| }); | ||
|
|
||
| // Track cache metrics for this request | ||
| let currentMetrics = await getCacheMetrics().catch(() => ({ | ||
| totalRequests: 0, | ||
| requestsWithCacheControl: 0, | ||
| totalInputTokens: 0, | ||
| totalCachedTokens: 0, | ||
| totalCacheCreationTokens: 0, | ||
| tokensSaved: 0, | ||
| estimatedCostSaved: 0, | ||
| byProvider: {}, | ||
| byStrategy: {}, | ||
| lastUpdated: new Date().toISOString(), | ||
| })); | ||
|
|
||
| currentMetrics = trackCacheMetrics({ | ||
| preserved: preserveCacheControl, | ||
| provider, | ||
| strategy: comboStrategy, | ||
| metrics: currentMetrics, | ||
| }); | ||
|
|
||
| if (preserveCacheControl) { | ||
| log?.debug?.( | ||
| "CACHE", | ||
|
|
@@ -1473,18 +1447,6 @@ export async function handleChatCore({ | |
| (usage as any).prompt_tokens_details?.cache_creation_tokens | ||
| ); | ||
|
|
||
| if (cachedTokens > 0 || cacheCreationTokens > 0) { | ||
| currentMetrics = updateCacheTokenMetrics({ | ||
| metrics: currentMetrics, | ||
| provider, | ||
| strategy: comboStrategy, | ||
| inputTokens, | ||
| cachedTokens, | ||
| cacheCreationTokens, | ||
| costSaved: 0, // Will be calculated based on pricing | ||
| }); | ||
| } | ||
|
|
||
| saveRequestUsage({ | ||
| provider: provider || "unknown", | ||
| model: model || "unknown", | ||
|
|
@@ -1649,17 +1611,22 @@ export async function handleChatCore({ | |
| (streamUsage as any).prompt_tokens_details?.cache_creation_tokens | ||
| ); | ||
|
|
||
| if (cachedTokens > 0 || cacheCreationTokens > 0) { | ||
| currentMetrics = updateCacheTokenMetrics({ | ||
| metrics: currentMetrics, | ||
| provider, | ||
| strategy: comboStrategy, | ||
| inputTokens, | ||
| cachedTokens, | ||
| cacheCreationTokens, | ||
| costSaved: 0, | ||
| }); | ||
| } | ||
| saveRequestUsage({ | ||
| provider: provider || "unknown", | ||
| model: model || "unknown", | ||
| tokens: streamUsage, | ||
| status: String(streamStatus || 200), | ||
|
Comment on lines
+1614
to
+1618
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Useful? React with πΒ / π. |
||
| success: streamStatus === 200, | ||
| latencyMs: Date.now() - startTime, | ||
| timeToFirstTokenMs: ttft, | ||
| errorCode: null, | ||
| timestamp: new Date().toISOString(), | ||
| connectionId: connectionId || undefined, | ||
| apiKeyId: apiKeyInfo?.id || undefined, | ||
| apiKeyName: apiKeyInfo?.name || undefined, | ||
| }).catch((err) => { | ||
| console.error("Failed to save usage stats:", err.message); | ||
| }); | ||
| } | ||
|
|
||
| persistAttemptLogs({ | ||
|
|
@@ -1673,11 +1640,6 @@ export async function handleChatCore({ | |
| claudeCacheUsageMeta: cacheUsageLogMeta, | ||
| }); | ||
|
|
||
| // Persist cache metrics to database | ||
| updateCacheMetrics(currentMetrics).catch((err) => { | ||
| log?.debug?.("CACHE", `Failed to persist cache metrics: ${err?.message || "unknown"}`); | ||
| }); | ||
|
|
||
| if (apiKeyInfo?.id && streamUsage) { | ||
| calculateCost(provider, model, streamUsage) | ||
| .then((estimatedCost) => { | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "omniroute", | ||
| "version": "3.2.7", | ||
| "version": "3.2.8", | ||
| "description": "Smart AI Router with auto fallback β route to FREE & cheap models, zero downtime. Works with Cursor, Cline, Claude Desktop, Codex, and any OpenAI-compatible tool.", | ||
|
Comment on lines
2
to
4
|
||
| "type": "module", | ||
| "bin": { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| ## [3.2.8] - 2026-03-29 | ||
|
|
||
| ### β¨ Enhancements & Refactoring | ||
|
|
||
| - **Docker Auto-Update UI** β Integrated a detached background update process for Docker Compose deployments. The Dashboard UI now seamlessly tracks update lifecycle events combining JSON REST responses with SSE streaming progress overlays for robust cross-environment reliability. | ||
| - **Cache Analytics** β Repaired zero-metrics visualization mapping by migrating Semantic Cache telemetry logs directly into the centralized tracking SQLite module. | ||
|
|
||
| ### π Bug Fixes | ||
|
|
||
| - **Authentication Logic** β Fixed a bug where saving dashboard settings or adding models failed with a 401 Unauthorized error when `requireLogin` was disabled. API endpoints now correctly evaluate the global authentication toggle. Resolved global redirection by reactivating `src/middleware.ts`. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. WARNING: Incorrect file reference - mentions |
||
| - **CLI Tool Detection (Windows)** β Prevented fatal initialization exceptions during CLI environment detection by catching `cross-spawn` ENOENT errors correctly. Adds explicit detection paths for `\AppData\Local\droid\droid.exe`. | ||
| - **Codex Native Passthrough** β Normalized model translation parameters preventing context poisoning in proxy pass-through mode, enforcing generic `store: false` constraints explicitly for all Codex-originated requests. | ||
| - **SSE Token Reporting** β Normalized provider tool-call chunk `finish_reason` detection, fixing 0% Usage analytics for stream-only responses missing strict `<DONE>` indicators. | ||
| - **DeepSeek <think> Tags** β Implemented an explicit `<think>` extraction mapping inside `responsesHandler.ts`, ensuring DeepSeek reasoning streams map equivalently to native Anthropic `<thinking>` structures. | ||
|
|
||
| --- | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The release date
2026-03-29is set to a future date. This seems to be a mistake and should be updated to the actual release date.