pub(crate) fn compose_task_output_path(
base: &Path,
session_id: &str,
task_id: &str,
) -> Option<PathBuf>Expand description
The path a running task’s own output file sits at, composed from the
fields the wire carries rather than parsed out of prose:
<base>/claude-<uid>/<cwd-slug>/<session-id>/tasks/<task-id>.output.
The session id anchors the lookup and the cwd-slug is a wildcard, so a
change to the CLI’s own slug rule cannot starve the read. None unless
exactly one directory under this user’s tree holds the file: more than one
match is a miss rather than a guess, and the caller draws that as no-path.