openclaw/src/config/sessions
Ion Mudreac 25950bcbb8 fix(sessions): normalize absolute sessionFile paths for v2026.2.12 compatibility
Older OpenClaw versions stored absolute sessionFile paths in sessions.json.
v2026.2.12 added path traversal security that rejected these absolute paths,
breaking all Telegram group handlers with 'Session file path must be within
sessions directory' errors.

Changes:
- resolvePathWithinSessionsDir() now normalizes absolute paths that resolve
  within the sessions directory, converting them to relative before validation
- Added 3 tests for absolute path handling (within dir, with topic, outside dir)

Fixes #15283
Closes #15214, #15237, #15216, #15152, #15213
2026-02-13 15:13:58 +01:00
..
group.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
main-session.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
metadata.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
metadata.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
paths.test.ts fix(sessions): normalize absolute sessionFile paths for v2026.2.12 compatibility 2026-02-13 15:13:58 +01:00
paths.ts fix(sessions): normalize absolute sessionFile paths for v2026.2.12 compatibility 2026-02-13 15:13:58 +01:00
reset.test.ts refactor: unify peer kind to ChatType, rename dm to direct (#11881) 2026-02-09 09:20:52 +09:00
reset.ts refactor: unify peer kind to ChatType, rename dm to direct (#11881) 2026-02-09 09:20:52 +09:00
session-key.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
store.lock.test.ts perf(test): optimize heavy suites and stabilize lock timing 2026-02-13 13:29:07 +00:00
store.pruning.test.ts fix: unify session maintenance and cron run pruning (#13083) 2026-02-09 20:42:35 -08:00
store.ts fix: replace file-based session store lock with in-process Promise chain mutex (#14498) 2026-02-13 05:12:59 +01:00
transcript.test.ts feat: mirror delivered outbound messages (#1031) 2026-01-17 02:03:18 +00:00
transcript.ts fix: harden session transcript path resolution 2026-02-13 01:28:17 +01:00
types.ts fix: /status shows incorrect context percentage — totalTokens clamped to contextTokens (#15114) (#15133) 2026-02-12 23:52:19 -05:00