Unclear What --log-file-no-follow does is not clear.
What
The self-hosted runner, the program that runs Claude Code jobs on your own machines, accepts a new option, --log-file-no-follow.
- With it set, the file given to
--log-fileis opened by a stricter method. The file must be a regular file with a single name, so symlinks (shortcuts to another file) and hard links (a second name for the same file) are refused. - A refused file gives an error saying it "is not a regular file with a single name (it may be a hard link)".
- Without the option, the log file is opened as before, by appending to it.
Why
On a shared runner, someone could replace the log file with a link so that log output is written into a different file. This option stops that.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
What `--log-file-no-follow` does is not clear.