Skip to content

fix(setup): fall back for empty Claude config directory - #4270

Closed
pollychen-lab wants to merge 2 commits into
morluto:mainfrom
pollychen-lab:agent/claude-empty-config-dir
Closed

pollychen-lab wants to merge 2 commits into
morluto:mainfrom
pollychen-lab:agent/claude-empty-config-dir

Conversation

@pollychen-lab

Copy link
Copy Markdown
Contributor

Summary

Fixes #4262. When CLAUDE_CONFIG_DIR="", Claude Code registration setup now falls back to the home directory, matching Claude Code's config selection behavior.

Change

The global .claude.json registration path treats an empty override as unset. Marker and skill path handling remain unchanged. A public CLI regression test covers dry-run target selection, setup, doctor, and uninstall while preserving unrelated config.

Scope and effects

Ordinary setup path fix; no maintainer scope decision applies. Setup reads and updates a local client configuration file. No process launch, injection, network service, or protected-code interaction.

Validation

  • npm run build:cached — passed.
  • npm run test:focused -- tests/boundary/cli/clientProfiles.test.ts — passed (15 tests).
  • npm run check:fast — passed.
  • Push precheck npm run check:fast — passed.
  • Real Claude Code process verification was not run; the public CLI lifecycle test uses an isolated home and working directory.

Author readiness

Human owner:

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Draft per repository PR readiness rules: a human owner must complete these declarations before requesting review.

morluto added a commit that referenced this pull request Oct 15, 2026
Use the default home registration and personal skill roots for an empty profile override. Share marker and skill path resolution while preserving nonempty caller paths, backups and idempotence.

Refs #4262, #4270

Co-authored-by: Polly Labs <[email protected]>
…nfig-dir

# Conflicts:
#	tests/boundary/cli/clientProfiles.test.ts
@pollychen-lab
pollychen-lab marked this pull request as ready for review October 16, 2026 01:22
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T01:23:26.152685Z 1b26087 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@morluto morluto added area: setup Setup, packaging, upgrade, install, Doctor, and client registration bug Something isn't working labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: setup Setup, packaging, upgrade, install, Doctor, and client registration bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Empty CLAUDE_CONFIG_DIR makes setup register Claude MCP in the working directory

2 participants