mirror of
https://github.com/wu736139669/hapi.git
synced 2026-12-01 06:31:27 +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:
@@ -71,6 +71,7 @@ func getPermissions(_ agentState: AgentState?) -> PermissionMap {
|
||||
let entry = completed[id]!
|
||||
let status: ToolPermissionStatus = {
|
||||
switch entry.status {
|
||||
case .resolved: return .resolved
|
||||
case .canceled: return .canceled
|
||||
case .denied: return .denied
|
||||
case .approved: return .approved
|
||||
|
||||
Reference in New Issue
Block a user