mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-18 03:27:08 +00:00
feat(codex): share sessions across terminal and web
Use one native app-server for terminal, Web and phone clients while retaining the existing CLI and Runner lifecycle. Synchronize native queues, permissions, question history and steering state; preserve explicit permission precedence and per-turn usage models. Resume inactive clear commands through Runner and reject independent child cold resumes. Add shared-runtime regression tests, generated protocol fixtures and lifecycle documentation.
This commit is contained in:
@@ -581,6 +581,10 @@ export class ApiClient {
|
||||
})
|
||||
}
|
||||
|
||||
async clearConversation(sessionId: string): Promise<{ sessionId: string }> {
|
||||
return await this.request(`/api/sessions/${encodeURIComponent(sessionId)}/clear`, { method: 'POST' })
|
||||
}
|
||||
|
||||
async forkConversation(sessionId: string, messageLocalId?: string): Promise<{ sessionId: string }> {
|
||||
return await this.request<{ sessionId: string }>(
|
||||
`/api/sessions/${encodeURIComponent(sessionId)}/fork`,
|
||||
|
||||
Reference in New Issue
Block a user