You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Workspace lock deadlock: unconfirmable MCP tool side effects permanently stall the session #1249
当某个 MCP 工具(典型是 Playwright 的 browser_navigate)产生的副作用无法被工作区日志(workspace journal)确认落地时,整个会话会进入永久死锁:此后每一次输入都返回 Workspace execution could not be confirmed stopped,不再执行任何工具,且无任何恢复路径。
Failed Mcp Playwright Browser Navigate
Error: Tool 'mcp__playwright__browser_navigate' returned before its workspace effects were proven se…
Workspace execution could not be confirmed stopped. The available result is preserved as unverified.
此后任何输入都返回同样提示,不再跑工具(ttft ~2s,无工具执行):
Workspace execution could not be confirmed stopped. The available result is preserved as unverified.
⚠ Warning · Some work remains unverified. Continue this session to resolve what remains.
WARN edge heartbeat with active pending tool requests
edge_id="edge-materialization-...-process-78786" pending=1
WARN edge heartbeat with active pending tool requests
edge_id="edge-materialization-...-process-22977" pending=1
run failed mid-stream (run_error)
domain_error_code="execution_incomplete" retryable=false
error="Some work remains unverified. Continue this session to resolve what remains."
WARN run failed mid-stream (run_error)
domain_error_code="execution_incomplete" retryable=false
error="Some work remains unverified. Continue this session to resolve what remains."
target="astra_runtime::sse"
对应二进制内的真实文案是 request wall deadline ended without root execution settlement。
Activity
guolvlin-cn commentedon Nov 9, 2026
根因修正(重要,比最初的本地锁判断更准确)
进一步排查确认,真正的阻塞点不在本地
.workspace.lock/ edge-invocations 文件,而在astra serve网关进程的内存状态。真实根因
每个 astra CLI 会话在服务端登记为一个 edge agent(
edge_id形如edge-materialization-...-process-<PID>)。当某个工具调用卡住(典型是 Playwright
browser_navigate拉起一个不退出的常驻 Chrome),该 edge agent 的 tool request 永远不会完成,服务端把它记为pending:这个
pending状态残留服务端内存里(astra serve跑了 4+ 天)。CLI 进程被 kill 后,pending 变成孤儿,永远不会被清理。此后所有新会话(包括全新
event_count=0的会话)都收到服务端返回的:日志目标
astra_runtime::sse证实这是服务端产生的错误,不是 CLI 端。修复验证
astra serve(kill PID,launchdKeepAlive自动拉起)后,内存 pending 状态被清空。Starting API server on 127.0.0.1:17001;此后日志中不再出现execution_incomplete。astra chat实测:4 MCP servers connected: MiniMax · memoria · playwright · r-matrix,run 能正常走过 execution 阶段。结论与修复方向(更正)
guolvlin-cn commentedon Nov 9, 2026
完整技术排查(补充根因,纠正前两次判断)
前两次判断(本地锁 / serve 内存)都不对。下面是完整的排查结论。
一、真实根因链
触发点:服务端日志 07:11 出现
web_fetch / web_search 的工具 schema 描述符过期(
deferred_tool_descriptor_stale)。由此产生第一个失败(07:13):
对应二进制内的真实文案是
request wall deadline ended without root execution settlement。这次失败在服务端留下「未结算的根执行 / unverified work」,且没有超时回收机制。之后所有在同一 workspace 的新会话(包括只发一个
hi、event_count=0的全新会话)都在跑完 1 个 turn 后被execution_incomplete打断,interruption.resume_action=continue_immediately但 "continue" 永远不会真正解决,形成死循环。二、关键发现:materialization 按 worktree_path 确定性派生
edge_agent_registry里materialization_id与worktree_path一一对应:/Users/guolvline8f1b1a7…/private/tmp0e7736e5…/Users/guolvlin/repo/git/mo/Astrad575ecff…/Users/guolvlin/.astra/r-matrix-tool198e9616…本地
~/.astra/edge-materializations/<checkout-hash>.id文件内容正是materialization-e8f1b1a7…,而<checkout-hash>.checkout内容是checkout-<hash>——这是服务端内容寻址 blob 的引用,真实数据不在本地 git 仓库(本地无对应.git)。三、"unverified work" 状态不在任何可查询的 DB 表
逐表排查(
astra_runtime_v119库,60+ 表),所有相关表要么 0 行要么正常:edge_pending_dispatch:6 行全completed(后变为 0 行)edge_agent_registry:e8f1b1a7 有 30 条历史注册,但registration_state=1、registration_claim_id=NULL(无卡住的 claim)session_execution_bindings:全state=readysession_execution_switches:0 行agent_session_lifecycle_fences:全干净inference_invocation_settlement_debts:0 行agent_session_memory_work:0 行session_context_heads:无active_writer/active_reservationsession_context_operation_receipts/session_context_authority_events/tool_invocation_ledger:全 0 行agent_runs:失败 run 都是depth=0、parent_run_id=NULL(自身即 root,无卡住的父 run);owner_pod_id全 NULLsweeper_leases:runtime_sweepers租约在正常续期(expires_at 会前移),非卡死结论:unverified work 状态存在服务端的内容寻址 blob 存储里(
checkout-<hash>指向的 blob),不在可查询的表里。四、尝试过但无效的修复
.workspace.lock(21 个)+edge-invocations/*.lock|*.wal@latest→@0.0.84)astra serve(launchd 拉起新进程)——状态从 DB/内容存储重新加载,无效astra session cancel全部 active 会话——对有 run 的会话能execution_settled=true,但无 run 的僵尸 active 会话无法 cancel,且不影响全局 unverified work五、workaround
因 materialization 按 worktree_path 派生,换目录跑 astra 即绕开(用全新 materialization):
/Users/guolvlin这个 workspace 的 materialization 已永久卡死,只能靠服务端修复。六、建议修复方向(按优先级)
failed/aborted,释放 ownership boundary,而不是永久running/unverified。deferred_tool_descriptor_stale自愈:工具描述符过期时应自动重取 schema,而不是让 run 进入无法结算的状态。astra admin/astra session级的操作,能清空指定 worktree 的 materialization 状态(含内容寻址 blob),否则用户无法自救。补充证据(供定位):失败 run 的
terminal_receipt_json里interruption.kind="execution_incomplete"、resume_action="continue_immediately"、remaining_turns=24、tool_ledger.attempted=0、outcome.status="failed"、context.disposition="advanced"、cursor.completed_turn=1(说明 run 推进了 1 个 turn 后才被打断,非启动即失败)。guolvlin-cn commentedon Nov 9, 2026
补充确认:workaround 已由用户实测有效——换个目录跑 astra 即恢复正常,证实「materialization 按 worktree_path 确定性派生、unverified work 绑定在 /Users/guolvlin 的 materialization 上」这一根因判断成立。卡死的 materialization 仍需服务端修复。
XuPeng-SH commentedon Nov 15, 2026
已合并追踪至 #1302 的第 2 节。原 macOS/Playwright 与 materialization 事故尚未重放;未知副作用不会因为超时而被视为已结算。
此关闭仅表示将追踪入口合并,不表示原问题已全部修复。原报告、讨论和尚未满足的验收条件继续作为新 issue 的证据与验收来源。