claude-code - 💡(How to fix) Fix Welcome banner suggests /init even when CLAUDE.md already exists [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#53770Fetched 2026-04-28 06:47:42
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1
RAW_BUFFERClick to expand / collapse

The welcome banner always shows:

Run /init to create a CLAUDE.md file with instructions for Claude

This displays even when a CLAUDE.md is already present and being loaded. It's misleading — it implies the file is missing when it isn't.

Expected: Suppress the /init tip when a CLAUDE.md already exists in the project (including via symlink).

Environment: Claude Code v2.1.47, Linux

extent analysis

TL;DR

Check the file existence check logic to ensure it correctly handles symlinks and existing CLAUDE.md files.

Guidance

  • Review the code responsible for displaying the welcome banner to identify where the file existence check is performed.
  • Verify that the check correctly handles the case where a CLAUDE.md file exists via a symlink.
  • Consider modifying the check to use a more robust method, such as checking for the file's presence using a filesystem-aware approach.
  • Test the modified check with various scenarios, including existing CLAUDE.md files and symlinks.

Example

No code snippet is provided due to lack of specific implementation details.

Notes

The solution may depend on the specific implementation of the file existence check in the Claude Code v2.1.47 version.

Recommendation

Apply workaround: Modify the file existence check logic to correctly handle existing CLAUDE.md files and symlinks, as this is a specific issue that can be addressed without waiting for a version upgrade.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Welcome banner suggests /init even when CLAUDE.md already exists [1 comments, 2 participants]