mirror of
https://github.com/wu736139669/hapi.git
synced 2026-12-03 06:47:03 +00:00
revert(codex): remove Luna Reserve fallback (#1780)
Revert 8357da0a9d and its later shared-runtime integration.
Remove automatic model fallback, account usage polling, and the related UI, protocol fields, tests, and documentation without adding replacement quota handling.
Keep generic model pagination and method probing required by the current shared-session architecture. Cover idle sessions staying online without usage polling or agent-state churn.
This commit is contained in:
@@ -196,22 +196,7 @@ export const AgentStateCompletedRequestSchema = z.object({
|
||||
|
||||
export type AgentStateCompletedRequest = z.infer<typeof AgentStateCompletedRequestSchema>
|
||||
|
||||
const CodexUsageWindowSchema = z.object({
|
||||
remainingPercent: z.number().min(0).max(100).nullable(),
|
||||
windowDurationMins: z.number().positive().nullable(),
|
||||
resetsAt: z.number().nonnegative().nullable()
|
||||
})
|
||||
|
||||
const CodexUsageBucketSchema = z.object({
|
||||
primary: CodexUsageWindowSchema.nullable(),
|
||||
secondary: CodexUsageWindowSchema.nullable()
|
||||
})
|
||||
|
||||
export const AgentStateSchema = z.object({
|
||||
codexUsage: z.object({
|
||||
ordinary: CodexUsageBucketSchema,
|
||||
reserve: CodexUsageBucketSchema.nullable()
|
||||
}).nullish(),
|
||||
controlledByUser: z.boolean().nullish(),
|
||||
// True while the CLI is delivering a queued message into the active turn
|
||||
// (Steer). Surfaced so the web can reflect the inject in progress.
|
||||
|
||||
Reference in New Issue
Block a user