mirror of https://github.com/openclaw/openclaw.git
When OPENCLAW_STATE_DIR changes between session creation and resolution (e.g., after reinstall or config change), absolute session file paths pointing to other agents' sessions directories were rejected even though they structurally match the valid .../agents/<agentId>/sessions/... pattern. The existing fallback logic in resolvePathWithinSessionsDir extracts the agent ID from the path and tries to resolve it via the current env's state directory. When those directories differ, the containment check fails. Now, if the path structurally matches the agent sessions pattern (validated by extractAgentIdFromAbsoluteSessionPath), we accept it directly as a final fallback. Fixes #15410, Fixes #15565, Fixes #15468 |
||
|---|---|---|
| .. | ||
| delivery-info.ts | ||
| group.ts | ||
| main-session.ts | ||
| metadata.ts | ||
| paths.ts | ||
| reset.ts | ||
| session-key.ts | ||
| sessions.test.ts | ||
| store.pruning.e2e.test.ts | ||
| store.pruning.test.ts | ||
| store.ts | ||
| transcript.ts | ||
| types.ts | ||