#3976·crush

crush logs does not resolve the project directory

Author: vitolee-1018Created Sep 28, 2026Updated Sep 28, 2026

What happened

crush logs reads the --cwd flag and passes that string to config.Load. When the flag is omitted the string is empty, so config lookup does not start from the process working directory.

session and stats already call ResolveCwd for this. logs is the command that still reads the flag directly.

From a subdirectory of a git project, crush logs reports that there is no Crush project and does not open .crush/logs/crush.log in the worktree.

Expected

With --cwd omitted, logs uses the process working directory and finds the project the same way session and stats do.