MCPcopy
hub / github.com/codeaashu/claude-code / release

Function release

src/state/teammateViewHelpers.ts:28–38  ·  view source on GitHub ↗

* Return the task released back to stub form: retain dropped, messages * cleared, evictAfter set if terminal. Shared by exitTeammateView and * the switch-away path in enterTeammateView.

(task: LocalAgentTaskState)

Source from the content-addressed store, hash-verified

26 * the switch-away path in enterTeammateView.
27 */
28function release(task: LocalAgentTaskState): LocalAgentTaskState {
29 return {
30 ...task,
31 retain: false,
32 messages: undefined,
33 diskLoaded: false,
34 evictAfter: isTerminalTaskStatus(task.status)
35 ? Date.now() + PANEL_GRACE_MS
36 : undefined,
37 }
38}
39
40/**
41 * Transitions the UI to view a teammate's transcript.

Callers 5

enterTeammateViewFunction · 0.70
exitTeammateViewFunction · 0.70
stopOrDismissAgentFunction · 0.70
immediateFlushHistoryFunction · 0.50
refreshAuthorizationMethod · 0.50

Calls 1

isTerminalTaskStatusFunction · 0.85

Tested by

no test coverage detected