canonical / canonical/claude-code-sdk
Exported CLAUDE_CONFIG_DIR in /etc/profile.d clobbers user overrides in login shells
- Dominant language
- Shell
- Stars
- 2
- Forks
- 1
- Avg merge
- 1h 18m
- Merged PRs (30d)
- 3
Description
https://github.com/canonical/claude-code-sdk/blob/e51f6b603af881f8eb1d78a2d70485cd5683a8cc/hooks/setup-base#L5
A login shell will override a user's own CLAUDE_CONFIG_DIR. This exported value is Claude Code's documented default [0], so the change should only have an effect when it is clobbering a deliberate user setting.
Suggest dropping this line. I currently remove this after every workstation refresh.
[0] https://code.claude.com/docs/en/claude-directory
Contributor guide
No contributing guide indexed for this repository
Research direction
Read hooks/setup-base at the linked line and inspect how CLAUDE_CONFIG_DIR is exported for login shells. Remove the clobbering behavior so a deliberate user setting is preserved, then verify that the documented default still applies when no user override exists.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 82/100