mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-23 04:37:09 +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:
@@ -276,9 +276,11 @@ public func buildSessionConfigState(
|
||||
return SessionConfigState(
|
||||
flavor: flavor,
|
||||
active: detail?.active ?? summary?.active ?? false,
|
||||
controlledByUser: detail?.agentState?.controlledByUser == true,
|
||||
controlledByUser: detail?.agentState?.controlledByUser == true && detail?.metadata?.capabilities?.concurrentClients != true,
|
||||
permissionMode: detail?.permissionMode,
|
||||
permissionModes: permissionModeOptions(forFlavor: flavor),
|
||||
permissionModes: permissionModeOptions(forFlavor: flavor).filter {
|
||||
detail?.metadata?.capabilities?.concurrentClients != true || $0.mode.rawValue != "safe-yolo"
|
||||
},
|
||||
model: model,
|
||||
modelOptions: modelOptions,
|
||||
modelOptionsLoading: modelOptionsLoading,
|
||||
|
||||
Reference in New Issue
Block a user