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

Function syncKeepAlive

cli/src/agent/runners/runAgentSession.ts:93–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91 let waitAbortController: AbortController | null = null;
92
93 const syncKeepAlive = () => {
94 session.keepAlive(thinking, 'remote', {
95 permissionMode: currentPermissionMode
96 });
97 };
98
99 const resolvePermissionMode = (value: unknown): SessionPermissionMode => {
100 const parsed = PermissionModeSchema.safeParse(value);

Callers 2

runAgentSessionFunction · 0.85
handleAbortFunction · 0.85

Calls 1

keepAliveMethod · 0.80

Tested by

no test coverage detected