pi-mono/packages/coding-agent/test/session-manager
Juan Ibiapina 0a60e18cc3
fix(coding-agent): start new sessions in the cwd's default directory
SessionManager.open() without a session directory used the file's
folder for new sessions. When the session's cwd differs from the project
the folder belongs to, for example after choosing "continue in current
cwd" at the missing-cwd prompt, pi treated that folder as a custom
--session-dir: /resume All listed only that folder, the resume hint
added --session-dir, and /new, /fork and /clone saved into the old
project's folder.

For a file in the sessions directory, open() now uses the default
directory of the session's cwd. Files elsewhere, such as in a custom
--session-dir, keep their folder.
2026-10-29 12:31:57 +01:00
..
build-context.test.ts fix(coding-agent): add entry renderers for session entries 2026-07-01 11:30:26 +02:00
custom-session-id.test.ts fix(coding-agent): test forkFrom copied content instead of fs calls 2026-10-23 21:24:38 +02:00
file-operations.test.ts fix(coding-agent): start new sessions in the cwd's default directory 2026-10-29 12:31:57 +01:00
labels.test.ts fix(coding-agent): rechain fork paths without labels 2026-06-12 18:50:31 +02:00
load-entries.test.ts feat(coding-agent): ingest external entries in in-memory sessions (#8980) 2026-09-03 10:49:41 +02:00
migration.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
save-entry.test.ts chore: pin dependencies and use native TypeScript 2026-05-20 12:46:17 +02:00
tree-traversal.test.ts fix(coding-agent): save new session file at the first user message 2026-09-25 16:27:51 +02:00