[BUG] Hooks do not refresh after `/clear`

Resolved 💬 2 comments Opened Jan 13, 2026 by xnming Closed Feb 26, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Claude Code does not load the latest hooks after /clear command. It always use the hooks it loaded in the first time. The only way to use the latest hooks is run /exit and re-enter.

What Should Happen?

I think the hooks should be auto-refreshed when we start a new session.

Error Messages/Logs

Steps to Reproduce

  1. Make some changes on existing hooks;
  2. Run /clear;
  3. Check the behaviour of the hooks

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.6

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗