claude-code - 💡(How to fix) Fix [Bug] /clear command doesn't clear UI history in Warp terminal [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#51662Fetched 2026-04-22 07:56:15
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/gubiera/.local/share/claude/versions/2.1.116 (expected in multi-process scenarios)\n at jl_ (/$bunfs/root/src/entrypoints/cli.js:2752:2177)\n at B88 (/$bunfs/root/src/entrypoints/cli.js:2752:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:37:31.173Z"},{"error":"Error\n at call (/$bunfs/root/src/entrypoints/cli.js:4741:7630)\n at processTicksAndRejections (unknown:7:39)","timestamp":"2026-04-21T17:03:52.297Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/gubiera/.local/share/claude/versions/2.1.116 (expected in multi-process scenarios)\n    at jl_ (/$bunfs/root/src/entrypoints/cli.js:2752:2177)\n    at B88 (/$bunfs/root/src/entrypoints/cli.js:2752:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:37:31.173Z"},{"error":"Error\n    at call (/$bunfs/root/src/entrypoints/cli.js:4741:7630)\n    at processTicksAndRejections (unknown:7:39)","timestamp":"2026-04-21T17:03:52.297Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description When I use /clear the ui keeps the history on Warp.

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 2.1.116
  • Feedback ID: fa1c2194-3fb1-499c-951d-cd2e6908a94d

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/gubiera/.local/share/claude/versions/2.1.116 (expected in multi-process scenarios)\n    at jl_ (/$bunfs/root/src/entrypoints/cli.js:2752:2177)\n    at B88 (/$bunfs/root/src/entrypoints/cli.js:2752:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T15:37:31.173Z"},{"error":"Error\n    at call (/$bunfs/root/src/entrypoints/cli.js:4741:7630)\n    at processTicksAndRejections (unknown:7:39)","timestamp":"2026-04-21T17:03:52.297Z"}]

extent analysis

TL;DR

The issue with the UI keeping history on Warp after using /clear may be related to a locking mechanism failure, and checking the lock acquisition process or the multi-process scenario handling could provide insights.

Guidance

  • Investigate the lock acquisition failure error and its relation to the /clear command, as it might be causing the history to persist.
  • Review the multi-process scenarios in the application to ensure proper handling and synchronization, which could be contributing to the locking issue.
  • Examine the cli.js file, specifically lines 2752 and 4741, for potential clues on the error's origin and how it affects the UI's history.
  • Consider testing the /clear command in a single-process scenario to isolate if the issue is indeed related to multi-process handling.

Example

No specific code snippet can be provided without further context, but reviewing the mentioned lines in cli.js could look like:

// $bunfs/root/src/entrypoints/cli.js:2752
function jl_() {
  // ...
  // Lock acquisition logic here
}

// $bunfs/root/src/entrypoints/cli.js:4741
function call() {
  // ...
  // Potential error source
}

Notes

The provided information suggests a complex issue potentially related to process synchronization and locking mechanisms. Without more context or specific code, it's challenging to provide a definitive fix.

Recommendation

Apply workaround: Given the complexity and the lack of a clear solution from the provided information, it might be necessary to implement a temporary workaround, such as manually clearing the history or adjusting the locking mechanism, until a more permanent fix can be developed.

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