paperclipai/paperclip · error
Issue has no current execution workspace
Error message
Issue has no current execution workspace
What it means
Runtime lookup failure from getIssueWorkspaceRuntime (exposed via paperclipGetIssueWorkspaceRuntime): the requested issue exists but has no currently attached execution workspace/lease, so there are no runtime services or URLs to report. Typically fires when the issue has not started, its workspace was already released, or the workspace runtime is between leases.
Solutions
- Check out/start a run for the issue so an execution workspace exists before calling workspace tools.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at packages/mcp-server/src/tools.ts:374 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@a7e689b3c3 (2026-08-18).
Data as JSON: /api/errors/95f9a0e7944ce62c.
Report an issue: GitHub.
Appendix: source
Thrown at packages/mcp-server/src/tools.ts:374
const qs = companyId ? `?companyId=${encodeURIComponent(companyId)}` : "";
return client.requestJson("GET", `/projects/${encodeURIComponent(projectId)}${qs}`);
},
),
makeTool(
"paperclipGetIssueWorkspaceRuntime",
"Get the current execution workspace and runtime services for an issue, including service URLs",
z.object({ issueId: issueIdSchema }),
async ({ issueId }) => getIssueWorkspaceRuntime(client, issueId),
),
makeTool(
"paperclipControlIssueWorkspaceServices",
"Start, stop, or restart the current issue execution workspace runtime services",
issueWorkspaceRuntimeControlSchema,
async ({ issueId, action, ...target }) => {
const runtime = await getIssueWorkspaceRuntime(client, issueId);
const workspaceId = typeof runtime.workspace?.id === "string" ? runtime.workspace.id : null;
if (!workspaceId) {
throw new Error("Issue has no current execution workspace");
}
return client.requestJson(
"POST",
`/execution-workspaces/${encodeURIComponent(workspaceId)}/runtime-services/${action}`,
{ body: target },
);
},
),
makeTool(
"paperclipWaitForIssueWorkspaceService",
"Wait until an issue execution workspace runtime service is running and has a URL when one is exposed",
waitForIssueWorkspaceServiceSchema,
async ({ issueId, runtimeServiceId, serviceName, timeoutSeconds }) => {
const deadline = Date.now() + (timeoutSeconds ?? 60) * 1000;
let latest: Awaited<ReturnType<typeof getIssueWorkspaceRuntime>> | null = null;
while (Date.now() <= deadline) {
latest = await getIssueWorkspaceRuntime(client, issueId);
const service = selectRuntimeService(latest.runtimeServices, { runtimeServiceId, serviceName });View on GitHub (pinned to a7e689b3c3)