You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(cli): recover sessions after their working directory moves #2529
An interactive session cannot be recovered after its project directory is moved or renamed.
I reproduced this on current main (671c4a64):
Start the TUI in repository A and create a session.
Exit Maka and move repository A to a new path.
Run maka --resume <session-id>.
Maka reports:
Could not resume session <id>: Session cwd no longer exists: <old-path>. Starting fresh.
The safety behavior is correct: Maka must not silently rebind the session to the shell's current directory. The recovery gap is that /move is only available after a session has opened, while this session is rejected before the user can run /move.
Expected behavior
Provide an explicit recovery path that preserves the existing session and moves its working-directory authority before opening it, for example:
maka --resume <session-id> --cwd <new-path>
This should reuse the existing session relocation boundary rather than adding a second writer:
validate and canonicalize the replacement directory;
persist the new cwd through session.cwd.relocate;
preserve the existing Runtime Host relocation semantics and surface the committed path;
open the same session only after relocation succeeds;
keep invalid or omitted overrides fail-closed;
mention the recovery form in the missing-cwd error.
No automatic fallback to process.cwd() is intended.
Activity