{"record":{"id":"5cf671cbaa1a45a2","repo":"paperclipai/paperclip","slug":"stop-sandbox-callback-bridge-timed-out-detail","errorCode":null,"errorMessage":"stop sandbox callback bridge timed out${detail ? `: ${detail}` : \"\"}","messagePattern":"stop sandbox callback bridge timed out(.+?)` : \"\"\\}","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/adapter-utils/src/sandbox-callback-bridge.ts","lineNumber":1847,"sourceCode":"        \"printf '{\\\"pid\\\":%s}\\\\n' \\\"$pid\\\"\",\n      ].join(\"\\n\"),\n    ),\n    cwd: input.remoteCwd,\n    env: {\n      [SANDBOX_EXEC_CHANNEL_ENV]: SANDBOX_EXEC_CHANNEL_BRIDGE,\n      ...env,\n    },\n    timeoutMs,\n  });\n  requireSuccessfulResult(\"start sandbox callback bridge\", startResult);\n\n  const readyResult = await runShell(\n    input.runner,\n    input.remoteCwd,\n    [\n      \"i=0\",\n      `while [ \\\"$i\\\" -lt 200 ]; do`,\n      `  if [ -s ${shellQuote(directories.readyFile)} ]; then`,\n      `    cat ${shellQuote(directories.readyFile)}`,\n      \"    exit 0\",\n      \"  fi\",\n      `  if [ -s ${shellQuote(directories.logFile)} ] && ! kill -0 \\\"$(cat ${shellQuote(directories.pidFile)} 2>/dev/null)\\\" 2>/dev/null; then`,\n      `    cat ${shellQuote(directories.logFile)} >&2`,\n      \"    exit 1\",\n      \"  fi\",\n      \"  i=$((i + 1))\",\n      \"  sleep 0.05\",\n      \"done\",\n      `echo \"Timed out waiting for bridge readiness.\" >&2`,\n      `if [ -s ${shellQuote(directories.logFile)} ]; then cat ${shellQuote(directories.logFile)} >&2; fi`,\n      \"exit 1\",\n    ].join(\"\\n\"),\n    timeoutMs,\n    shellCommand,\n  );\n  requireSuccessfulResult(\"wait for sandbox callback bridge readiness\", readyResult);","sourceCodeStart":1829,"sourceCodeEnd":1865,"githubUrl":"https://github.com/paperclipai/paperclip/blob/3f1d897a7c018d76563a21c6e39c3c9b03933622/packages/adapter-utils/src/sandbox-callback-bridge.ts#L1829-L1865","documentation":"Teardown-timeout diagnostic when stopping the sandbox callback bridge: the kill-and-wait cleanup script exceeded its timeout (the bridge PID ignored SIGTERM or the filesystem was slow); remote detail is appended when available, and the bridge may still be running.","triggerScenarios":"Thrown at packages/adapter-utils/src/sandbox-callback-bridge.ts:1707 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry stopping the bridge.","Kill the bridge process manually if it remains."],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3f1d897a7c018d76563a21c6e39c3c9b03933622","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}