pub(crate) fn prepare(
workspace: &Path,
root: Option<&Path>,
req: CommandPaneOpenData,
) -> Result<(CommandPaneOpenData, Option<Snapshot>), String>Expand description
Check a container agent’s pane.open and, for a file, take its snapshot under root. Returns the request to open, with
nothing the caller set beyond the checked fields, and the snapshot if there is one.