pub fn resolve_file_path(user_path: &str, working_dir: &Path) -> PathBufExpand description
Resolve a user-provided file path against the working directory.
Handles common LLM mistakes:
./src/main.rs-> strips./prefix~/file.rs/$HOME/file.rs-> expands home directorymyproject/main.rswhen cwd is/home/user/myproject->/home/user/myproject/main.rs(detects and strips redundant basename prefix)- Absolute paths with doubled project name
/workspace/fooor/testbed/foo->{working_dir}/foo(LLM hallucination from Docker)