Skip to content

fix(tui): show parent-directory CLAUDE.md files in info box#452

Merged
theahura merged 2 commits intomainfrom
auto/fix-info-box-parent-directory-instruc-20260427-150005
Apr 27, 2026
Merged

fix(tui): show parent-directory CLAUDE.md files in info box#452
theahura merged 2 commits intomainfrom
auto/fix-info-box-parent-directory-instruc-20260427-150005

Conversation

@theahura
Copy link
Copy Markdown
Contributor

Summary

🤖 Generated with Nori

  • Make instruction-file discovery agent-aware so the startup info box (and /status, /memory) lists what each agent actually loads. Claude now walks the full ancestor chain to filesystem root per the official Claude Code memory loader; Codex and Gemini keep their git-root cutoffs.
  • Add discovery of the platform-specific managed-policy CLAUDE.md (e.g. /etc/claude-code/CLAUDE.md on Linux) for Claude only.
  • Add path-based deduplication so files reachable through multiple passes (ancestor walk, home config, managed policy) appear exactly once.

Fixes the user-reported bug where cwd /tmp/bar/baz with .claude/CLAUDE.md files in both /tmp/bar/baz/.claude/ and /tmp/bar/.claude/ only displayed the cwd one.

Test Plan

  • cargo test -p nori-tui (1209 tests, 0 failed)
  • cargo test -p tui-pty-e2e (all green)
  • just fix -p nori-tui (no warnings)
  • TUI puppeteering with elizacp confirms no panic and prompt accepts input
  • CI green

Share Nori with your team: https://www.npmjs.com/package/nori-skillsets

theahura and others added 2 commits April 27, 2026 11:55
Make instruction-file discovery in the startup info box (and `/status`,
`/memory`) agent-aware so the displayed list mirrors what each agent
actually loads. Previously the search collapsed to cwd-only when no
`.git` was found in any ancestor, hiding parent CLAUDE.md files that
Claude Code itself walks all the way to filesystem root to load.

Claude now walks the full ancestor chain per the documented memory
loader (https://code.claude.com/docs/en/memory). Codex and Gemini keep
their git-root cutoffs to match their CLIs. The platform-specific
managed-policy CLAUDE.md is now also discovered for Claude only.
Path-based dedup ensures files reachable via multiple passes appear
exactly once.
🤖 Generated with [Nori](https://noriagentic.com)

Co-Authored-By: Nori <contact@tilework.tech>
@theahura theahura merged commit 2a279bb into main Apr 27, 2026
3 checks passed
@theahura theahura deleted the auto/fix-info-box-parent-directory-instruc-20260427-150005 branch April 27, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant