Session File Locked 错误分析与解决方案日期: 2026-04-28错误信息:⚠️ Agent failed before reply: session file locked (timeout 10000ms): pid=16848 C:\Users\test\.openclaw\agents\main\sessions\6cc00f2d-04fa-401f-8b8a-523fb577e254.jsonl.lock. Please try again, or use /new to start a fresh session.一、错误定义OpenClaw 对每个会话(session)文件使用文件锁机制(.jsonl.lock文件),确保同一时刻只有一个进程能写入会话文件。当某个进程在超时时间(默认 10 秒)内无法获取到锁时,抛出SessionWriteLockTimeoutError。二、源码调用栈分析2.1 错误抛出点文件:src/agents/session-write-lock-error.ts