fix: preserve deployed session fixes

Persist paged Codex history checkpoints and bounded, acknowledged delivery.
Keep usage sources and accounting across deleted or merged sessions.
Include native Goal controls, faster peer/session queries, and release guards.
Track the complete deployed source so isolated builds cannot omit local fixes.

Validation: all typechecks pass. The full suite reports 7,997 passing tests
and 46 existing failures, each reproduced against the prior commit.
This commit is contained in:
2026-10-08 19:51:45 +08:00
parent 4d8a72c146
commit baeeb11356
85 changed files with 3647 additions and 691 deletions
+12
View File
@@ -45,6 +45,8 @@ import type {
} from '@/types/api'
import type { TeamDetail, TeamMessage, TeamSummary, TeamTask, TeamWithMembers } from '@/types/team'
import type {
CodexGoalRequest,
CodexGoalResponse,
AgentAvailabilityResponse,
AgyModelsResponse,
CodexModelsResponse,
@@ -906,6 +908,16 @@ export class ApiClient {
})
}
async getCodexGoal(sessionId: string): Promise<CodexGoalResponse> {
return await this.request(`/api/sessions/${encodeURIComponent(sessionId)}/codex/goal`)
}
async manageCodexGoal(sessionId: string, action: CodexGoalRequest): Promise<CodexGoalResponse> {
return await this.request(`/api/sessions/${encodeURIComponent(sessionId)}/codex/goal`, {
method: 'POST', body: JSON.stringify(action)
})
}
async retryCodexTurn(sessionId: string): Promise<{ retried: boolean; error?: string; sessionId?: string }> {
return await this.request<{ retried: boolean; error?: string; sessionId?: string }>(
`/api/sessions/${encodeURIComponent(sessionId)}/retry-codex-turn`,