fix(agents): the claude projects root follows CLAUDE_CONFIG_DIR too (Issue #31, review)
stop resolves the uuid before it purges, through lib.sh's exported
CLAUDE_PROJECT_DIR and DiscoveryContext.claude_dir, both of which defaulted
to $HOME/.claude/projects. With CLAUDE_CONFIG_DIR alone the transcript under
<cfg>/projects was not found, so stop removed the row and purged nothing.
Both defaults are now ${CLAUDE_CONFIG_DIR:-<home>/.claude}/projects; an
explicit CLAUDE_PROJECT_DIR still wins.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
872d5f12fb
commit
f0af98971e
3 files changed
+7
-4
No files matched your search
@@ -11,8 +11,8 @@ def _config_dir(ctx: DiscoveryContext) -> str:
|
||||
|
||||
|
||||
def _projects_dirs(ctx: DiscoveryContext) -> list:
|
||||
"""ctx.claude_dir (CLAUDE_PROJECT_DIR, else <home>/.claude/projects) and
|
||||
the config root's own projects/, each once."""
|
||||
"""ctx.claude_dir (CLAUDE_PROJECT_DIR, else the config root's projects/)
|
||||
and the config root's own projects/, each once."""
|
||||
dirs, seen = [], set()
|
||||
for d in (ctx.claude_dir, os.path.join(_config_dir(ctx), "projects")):
|
||||
real = os.path.realpath(d)
|
||||
|
||||
Reference in new issue
Block a user