mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-18 03:27:08 +00:00
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:
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user