Claude Code /diff Fixes: No More Blank Pane After 64 Turns or "Diff Unavailable" With a File Named HEAD

Claude CodeView original changelog

Claude Code 2.1.319 fixes three /diff problems. The /diff pane no longer opens blank in sessions where 64 or more turns edited files. /diff no longer shows "Diff unavailable" when a git repository has a file or folder named HEAD at its top level. A session's diff no longer fails to load on claude.ai and the mobile apps when the folder has a file or folder named HEAD.

Key Takeaways

  • /diff no longer opens blank in sessions where 64 or more turns edited files.
  • A top-level file or folder named HEAD no longer causes "Diff unavailable".
  • The same HEAD naming case no longer breaks the diff on claude.ai and the mobile apps.
  • All three fixes shipped in 2.1.319.

Three /diff fixes

Claude Code 2.1.319 fixes three cases where the diff view failed.

Blank pane in long sessions

The /diff pane used to open blank in sessions where 64 or more turns edited files. It now shows the diff.

"Diff unavailable" with a file named HEAD

/diff used to show "Diff unavailable" when a git repository had a file or folder named HEAD at its top level. That case now works.

Diff failing on claude.ai and mobile

For the same HEAD naming case, a session's diff failed to load on claude.ai and the mobile apps. That is fixed too.