multica/src/agent/session
yushen e23462dc72 fix(session): add error logging and remove TOCTOU in ensureSessionDir
- Log storage write errors in SessionManager.enqueue() instead of
  silently swallowing them
- Remove existsSync check in ensureSessionDir to avoid TOCTOU race;
  mkdirSync with recursive is idempotent when dir already exists

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 14:18:41 +08:00
..
compaction.test.ts test(context): add unit tests for token estimation and compaction 2026-01-30 13:54:57 +08:00
compaction.ts feat(agent): add auto-backgrounding and process management (#17) 2026-01-30 04:22:42 +08:00
session-file-repair.test.ts test(session): reset lock mock 2026-02-03 17:49:26 +08:00
session-file-repair.ts fix(session): harden write lock and repair 2026-02-03 17:47:41 +08:00
session-manager.ts fix(session): add error logging and remove TOCTOU in ensureSessionDir 2026-02-05 14:18:41 +08:00
session-transcript-repair.test.ts feat(session): add write lock, file repair, and transcript repair modules 2026-02-03 17:21:15 +08:00
session-transcript-repair.ts feat(session): add write lock, file repair, and transcript repair modules 2026-02-03 17:21:15 +08:00
session-write-lock.test.ts fix(session): harden write lock and repair 2026-02-03 17:47:41 +08:00
session-write-lock.ts fix(session): handle transient ENOENT in session directory creation 2026-02-05 13:52:47 +08:00
storage.test.ts test(context): add unit tests for context window guard 2026-01-30 14:00:38 +08:00
storage.ts fix(session): add error logging and remove TOCTOU in ensureSessionDir 2026-02-05 14:18:41 +08:00
types.ts feat(agent): add reasoning mode types and thinking extraction 2026-02-04 15:50:35 +08:00