MCPcopy Create free account
hub / github.com/tiann/hapi / setPermissionMode

Method setPermissionMode

web/src/api/client.ts:486–491  ·  view source on GitHub ↗
(sessionId: string, mode: PermissionMode)

Source from the content-addressed store, hash-verified

484 }
485
486 async setPermissionMode(sessionId: string, mode: PermissionMode): Promise<void> {
487 await this.request(`/api/sessions/${encodeURIComponent(sessionId)}/permission-mode`, {
488 method: 'POST',
489 body: JSON.stringify({ mode })
490 })
491 }
492
493 async setCollaborationMode(sessionId: string, mode: CodexCollaborationMode): Promise<void> {
494 await this.request(`/api/sessions/${encodeURIComponent(sessionId)}/collaboration-mode`, {

Callers 13

syncSessionModeFunction · 0.80
syncSessionModeFunction · 0.80
runCursorFunction · 0.80
syncSessionModeFunction · 0.80
syncSessionModesFunction · 0.80
runClaudeFunction · 0.80
handleModeChangeMethod · 0.80
syncSessionModeFunction · 0.80

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected