Skip to content

fix(remote): retain access to sessions after project removal - #351

Merged
wzz6423 merged 1 commit into
mainfrom
fix/remote-missing-project
Dec 5, 2026
Merged

wzz6423 merged 1 commit into
mainfrom
fix/remote-missing-project

Conversation

@wzz6423

@wzz6423 wzz6423 commented Dec 5, 2026

Copy link
Copy Markdown
Owner

Summary

Preserve access to remote sessions and conversation history after their project directory is renamed or deleted. Existing-session operations accept the exact saved canonical path when filesystem lookup returns NotFound; creating, resuming and forking sessions still require an existing directory. Cross-project and symlink checks remain enforced.

GitHub Project

  • Project: zshell Development
  • Start date: 2026-12-04
  • Target date: 2026-12-05

PR Type

  • Type: fix

Validation

  • Status: passed

  • Command: cargo test --locked --manifest-path remote/Cargo.toml; python3 -B remote/tests/test_cli.py --binary <temporary-target>/debug/zshell-server

  • Result: 46 Rust tests and 41 production CLI checks passed. Regression tests use real sockets and PTYs to cover rename/delete, history-only queries, cross-project rejection, symlink changes, input, resize and termination. Both new regression tests fail with NotFound against the original b291210 daemon.

  • Status: passed

  • Command: make run DERIVED_DATA=<temporary-build>; codesign --verify --deep --strict --verbose=2 '<temporary-build>/Build/Products/Debug/zshell Debug.app'

  • Result: Full signed macOS Debug app built and launched; signature verification passed. A separate reviewer found no blocking issue. The parent independently reran both focused regressions.

  • Status: passed

  • Command: make format; git diff --check; bash .github/scripts/check-repository-hygiene.sh

  • Result: Formatting, whitespace and repository hygiene checks passed.

  • Status: not run

  • Reason: Linux runtime and cross-UID isolation were not exercised locally; this host is macOS. CI is not awaited for this maintainer-authorized change.

Risk and Rollback

  • Risk: Only previously recorded canonical paths bypass a missing-directory error. A path that resolves to another directory retains the normal project isolation checks. Updated both remote README translations.
  • Rollback: Revert this pull request.

Related Issue

None

AI Attribution

Co-authored-by: Codex <noreply@openai.com>
@coderabbitai

coderabbitai Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@wzz6423
wzz6423 marked this pull request as ready for review December 5, 2026 02:59
@wzz6423
wzz6423 merged commit c152d0a into main Dec 5, 2026
28 checks passed
@wzz6423
wzz6423 deleted the fix/remote-missing-project branch December 5, 2026 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant