claude-code - 💡(How to fix) Fix [Feature Request] Add SessionRenamed hook event for external system integration [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#51767Fetched 2026-04-22 07:53:23
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×2closed ×1commented ×1

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/marwantanager/.local/share/claude/versions/2.1.104 (expected in multi-process scenarios)\n at Tc_ (/$bunfs/root/src/entrypoints/cli.js:2836:2153)\n at Se6 (/$bunfs/root/src/entrypoints/cli.js:2836:1233)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T23:47:30.889Z"}]

Fix Action

Fix / Workaround

Bug Description Feature request: Add a "SessionRenamed" hook event that fires when a session is renamed. Use case: automatically syncing the session name to external systems like tmux window titles. Currently there's no hook event for this and no workaround.

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/marwantanager/.local/share/claude/versions/2.1.104 (expected in multi-process scenarios)\n    at Tc_ (/$bunfs/root/src/entrypoints/cli.js:2836:2153)\n    at Se6 (/$bunfs/root/src/entrypoints/cli.js:2836:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T23:47:30.889Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Feature request: Add a "SessionRenamed" hook event that fires when a session is renamed. Use case: automatically syncing the session name to external systems like tmux window titles. Currently there's no hook event for this and no workaround.

Environment Info

  • Platform: darwin
  • Terminal: tmux
  • Version: 2.1.104
  • Feedback ID: fc63ee20-fc35-4c01-a556-a808a581d9e8

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/marwantanager/.local/share/claude/versions/2.1.104 (expected in multi-process scenarios)\n    at Tc_ (/$bunfs/root/src/entrypoints/cli.js:2836:2153)\n    at Se6 (/$bunfs/root/src/entrypoints/cli.js:2836:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T23:47:30.889Z"}]

extent analysis

TL;DR

Implementing a "SessionRenamed" hook event is likely to require modifications to the existing codebase to listen for and respond to session rename events.

Guidance

  • Review the current hook events available in the system to understand how they are implemented and triggered, which could provide insight into how a "SessionRenamed" event could be integrated.
  • Investigate the error message regarding lock acquisition failure, as it might be related to the multi-process scenarios and could impact the implementation of new hook events.
  • Consider reaching out to the development team or community for guidance on how to extend the existing hook system, as the addition of a new event like "SessionRenamed" might require collaboration or at least insight into the internal workings of the system.
  • Look into the cli.js file mentioned in the error message to understand the context of the lock acquisition failure and how it might be related to the desired functionality.

Example

No specific code example can be provided without more details on the system's architecture and the hook event system's implementation.

Notes

The provided error message seems unrelated to the feature request of adding a "SessionRenamed" hook event but indicates a potential issue with the system's handling of multi-process scenarios. The implementation of such an event would likely require a deeper understanding of the system's internals and possibly modifications to its core functionality.

Recommendation

Apply workaround: Given the lack of a direct way to achieve the desired functionality and the presence of an unrelated error, focusing on finding a workaround or collaborating with the development team to implement the "SessionRenamed" hook event seems like the most viable approach.

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 [Feature Request] Add SessionRenamed hook event for external system integration [1 comments, 2 participants]