mirror of
https://github.com/stablyai/orca.git
synced 2026-11-14 01:47:24 +00:00
Run local usage services in a supervised backend process (#40792)
* Move local usage services into a supervised backend process * Own usage recovery and worker retirement lifetimes * Preserve answered usage data during background refresh * Run independent usage scans concurrently in the backend * Limit backend startup paths to the delegated usage service * Show usage failures through backend recovery * Include usage failure strings in the English catalog * Keep usage update details beside refresh failures * Resolve usage freshness failure from the final producer snapshot * Retain the forced refresh completion requirement * Keep managed backend failures out of application crash reports * Preserve usage recovery boundaries across backend reconnects * Match the backend RPC cancellation signal in the usage seam proof * Avoid serializing backend requests before port delivery * Keep receiving request validation in the boundary schemas * test: align usage transport coverage with renderer project * fix: preserve unknown usage state and renderer retirement * fix(usage): revalidate tracking before scan admission * fix(usage): retry failed backend startup on demand * test(usage): isolate stale backend ownership checks
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { ipcRenderer } from 'electron'
|
||||
import { backendUsageTransport } from '../backend-port-client'
|
||||
import { createUsageProviderApi } from '../usage-provider-api'
|
||||
import type { PreloadApi } from '../api-types'
|
||||
|
||||
export const codexUsageApi = createUsageProviderApi(
|
||||
ipcRenderer,
|
||||
backendUsageTransport,
|
||||
'codexUsage'
|
||||
) satisfies PreloadApi['codexUsage']
|
||||
|
||||
Reference in New Issue
Block a user