- Updated the logic in `TraceCommand` to avoid capping the `path_nodes` after building the reciprocal path, ensuring that the return path is preserved. - Improved clarity in the code by adding a comment to explain the rationale behind the change.