Problem
anyhow::anyhow!("{e}") discards the error source chain by formatting to string. This loses the full cause chain that anyhow's debug formatting ({e:#}) would display. Pattern appears at multiple call sites in the worktree CLI handlers.
Solution
Solution
Use .map_err(|e| anyhow::Error::from(e)) or implement From<AssayError> for anyhow::Error to preserve the full chain.
Created via Kata PR review backlog
Problem
anyhow::anyhow!("{e}")discards the error source chain by formatting to string. This loses the full cause chain thatanyhow's debug formatting ({e:#}) would display. Pattern appears at multiple call sites in the worktree CLI handlers.Solution
Solution
Use
.map_err(|e| anyhow::Error::from(e))or implementFrom<AssayError> for anyhow::Errorto preserve the full chain.Created via Kata PR review backlog