print warning if cur wd is different than git wd, per discussion in #188

This commit is contained in:
Paul Gauthier 2023-09-29 13:07:56 -07:00
parent 98bacd0b5b
commit 5d7e44082e

View file

@ -522,6 +522,15 @@ def main(argv=None, input=None, output=None, force_git_root=None):
io.tool_output("Use /help to see in-chat commands, run with --help to see cmd line args")
if git_root and Path.cwd().resolve() != Path(git_root).resolve():
io.tool_error(
"Note: in-chat filenames are always relative to the git working dir, not the current"
" working dir."
)
io.tool_error(f"Cur working dir: {Path.cwd()}")
io.tool_error(f"Git working dir: {git_root}")
if args.message:
io.tool_output()
coder.run(with_message=args.message)