(wsMeta: WorkspaceMeta)
| 335 | * continuity, then the workspace's first enabled runtime. |
| 336 | */ |
| 337 | const resolveIssueDefaultAgentId = async (wsMeta: WorkspaceMeta): Promise<string | undefined> => |
| 338 | validRuntimeForWorkspace(wsMeta, await readIssueDefaultAgent().catch(() => null)) ?? |
| 339 | validRuntimeForWorkspace(wsMeta, await readWorkspaceDefaultAgent().catch(() => null)) ?? |
| 340 | firstWorkspaceRuntime(wsMeta); |
| 341 | |
| 342 | /** |
| 343 | * Single source of truth for "given a workspace + adapter + resume intent, |
no test coverage detected