anthropics / anthropics/claude-code

[Bug] `/context all` no longer lists individual instruction files (regression, 2.1.277)

Open
#95,443 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:tui bug platform:macos regression
Dominant language
TypeScript
Stars
147k
Forks
24k
PR merge metrics
PR metrics pending

Description

Bug Description

Through v2.1.273, /context all listed every loaded instruction file (each CLAUDE.md, each .claude/rules/*.md, each @-imported file) as its own row with a token count. On v2.1.277 that section is gone. The output still shows a single summary line ("Memory files: {N} tokens") and still expands the MCP tools, Custom agents and Skills sections, but the per-file instruction breakdown is missing.

The files themselves do load. /memory lists them correctly, and the instructions take effect in the session.

Steps to reproduce

  1. Open a project that has a CLAUDE.md, one or more .claude/rules/*.md files, and at least one @ import.
  2. Start a session and run /context all.
  3. Observe the "Memory files" line shows only a token total. No per-file rows appear in the breakdown.
  4. Run /memory and observe the same files are listed as loaded.

Expected

/context all shows the per-file breakdown for instruction files, as it did through v2.1.273 and as it still does for MCP tools, agents and skills.

Actual

Only the summary line appears. The per-file rows are absent in both renderers.

Notes

  • Reproduced with both "tui": "fullscreen" and "tui": "default" (switched via /tui default and /tui fullscreen).
  • No entry in the CHANGELOG for v2.1.274 through v2.1.277 mentions a change to /context, so this appears to be unannounced.
  • #94858 (and earlier #64996) asked for a more compact default /context while keeping /context all as the full listing. What shipped collapses the instruction-file section even under all, which goes further than those requests. This may be a side effect of that compaction work.

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.277
  • Feedback ID: 5a894aa7-a662-4999-a2b7-2ce24bec2a1b

Errors

[]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the /context all and /memory command entry points and compare the two renderers, including both fullscreen and default TUI modes. Reproduce with CLAUDE.md, .claude/rules/*.md, and an @ import; done means /context all restores one token-counted row per instruction file while retaining the summary and other sections.

Written by the indexing model from the issue text.

Assessment

Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.