MCPcopy Index your code
hub / github.com/coder/mux / resolveTaskAgentIdForResume

Function resolveTaskAgentIdForResume

src/node/services/taskService.ts:640–646  ·  view source on GitHub ↗
(workspace: {
  agentId?: string;
  agentType?: string;
  parentWorkspaceId?: string | null;
})

Source from the content-addressed store, hash-verified

638const TASK_RECOVERY_FALLBACK_AGENT_ID = "exec";
639
640function resolveTaskAgentIdForResume(workspace: {
641 agentId?: string;
642 agentType?: string;
643 parentWorkspaceId?: string | null;
644}): string {
645 return resolvePersistedAgentId(workspace, TASK_RECOVERY_FALLBACK_AGENT_ID);
646}
647
648const MAX_CONSECUTIVE_PARENT_AUTO_RESUMES = 3;
649

Calls 1

resolvePersistedAgentIdFunction · 0.90

Tested by

no test coverage detected