land: restore-asks-per-file

Merged
AF
5h ago
+443-18

Accepted agent delivery; branch-keyed search descriptor included.


Summary by cubic

Checkpoint restore now asks for edit permission per checkpoint file instead of workspace-wide, so path-based deny/allow/ask rules apply per file and a denied file blocks the restore.

  • Restores can be scoped to specific files via path, file, or files; the permission ask and preview then target only the selected files, with file:// URL paths resolved.
  • Uses the existing checkpoint preview paths for the ask on OpenCode V1 and V2, and includes the denied path in the denial message.
  • Pi keeps its existing per-path project-root isolation without edit prompts.
  • Adds V1/V2 deny/allow/ask and scoped-restore coverage, plus Pi tests for project-root restriction.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no new actionable issues were found.

Summary

Checkpoint restores now ask for edit permission only on the files being restored.

  • Checkpoint restores ask permission for the files they will write.

Reviews (3) · Last reviewed commit: "mason: resolve file URLs for restore pre..." · Reviewed by Greptile