claude-code - 💡(How to fix) Fix [Bug] Plaintext commands displayed with incorrect color formatting [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#45045Fetched 2026-04-09 08:14:34
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

[{"error":"Error: ENOENT: no such file or directory, unlink 'C:\Users\Nick\AppData\Local\Temp\claude\C--Users-Nick-Documents-GitHub--npo-server\1e975e87-8972-42fc-a60d-d1089e5171ee\tasks\aed374f4f353c3eac.output'\n at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:7685:299)","timestamp":"2026-04-08T05:22:43.959Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\Users\Nick\AppData\Local\Temp\claude\C--Users-Nick-Documents-GitHub--npo-server\1e975e87-8972-42fc-a60d-d1089e5171ee\tasks\a2ff181b69ded8367.output'\n at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:7685:299)","timestamp":"2026-04-08T05:23:47.347Z"},{"error":"Error: Request was aborted.\n at oy8 (B:/~BUN/root/src/entrypoints/cli.js:1301:11929)\n at next (native:1:11)\n at Wb_ (B:/~BUN/root/src/entrypoints/cli.js:7823:9035)\n at next (native:1:11)\n at Lb_ (B:/~BUN/root/src/entrypoints/cli.js:7828:11451)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T05:56:35.788Z"}]

Code Example

[{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\Nick\\AppData\\Local\\Temp\\claude\\C--Users-Nick-Documents-GitHub--npo-server\\1e975e87-8972-42fc-a60d-d1089e5171ee\\tasks\\aed374f4f353c3eac.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:7685:299)","timestamp":"2026-04-08T05:22:43.959Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\Nick\\AppData\\Local\\Temp\\claude\\C--Users-Nick-Documents-GitHub--npo-server\\1e975e87-8972-42fc-a60d-d1089e5171ee\\tasks\\a2ff181b69ded8367.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:7685:299)","timestamp":"2026-04-08T05:23:47.347Z"},{"error":"Error: Request was aborted.\n    at oy8 (B:/~BUN/root/src/entrypoints/cli.js:1301:11929)\n    at next (native:1:11)\n    at Wb_ (B:/~BUN/root/src/entrypoints/cli.js:7823:9035)\n    at next (native:1:11)\n    at Lb_ (B:/~BUN/root/src/entrypoints/cli.js:7828:11451)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T05:56:35.788Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description commands plaintext in claude code are color formated incorrectly

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.94
  • Feedback ID: 4e71592e-bbc1-488a-ac28-c97d980228e7

Errors

[{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\Nick\\AppData\\Local\\Temp\\claude\\C--Users-Nick-Documents-GitHub--npo-server\\1e975e87-8972-42fc-a60d-d1089e5171ee\\tasks\\aed374f4f353c3eac.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:7685:299)","timestamp":"2026-04-08T05:22:43.959Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\Nick\\AppData\\Local\\Temp\\claude\\C--Users-Nick-Documents-GitHub--npo-server\\1e975e87-8972-42fc-a60d-d1089e5171ee\\tasks\\a2ff181b69ded8367.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:7685:299)","timestamp":"2026-04-08T05:23:47.347Z"},{"error":"Error: Request was aborted.\n    at oy8 (B:/~BUN/root/src/entrypoints/cli.js:1301:11929)\n    at next (native:1:11)\n    at Wb_ (B:/~BUN/root/src/entrypoints/cli.js:7823:9035)\n    at next (native:1:11)\n    at Lb_ (B:/~BUN/root/src/entrypoints/cli.js:7828:11451)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T05:56:35.788Z"}]
<img width="908" height="203" alt="Image" src="https://github.com/user-attachments/assets/0aa6e437-c1fd-4d58-8742-62927071cdc3" />

extent analysis

TL;DR

The issue with color formatting in Claude code commands may be related to the errors reported, particularly the "ENOENT: no such file or directory" errors, which could indicate a problem with temporary file handling.

Guidance

  • Investigate the temporary file directory C:\\Users\\Nick\\AppData\\Local\\Temp\\claude to ensure it exists and is writable, as the errors suggest issues with unlinking files in this directory.
  • Check the cli.js file at lines 7685 and 1301 for potential issues with file handling or request abort logic that could be contributing to the errors.
  • Consider testing the commands in a different environment or terminal to isolate if the issue is specific to the Windows Terminal or the Claude code itself.
  • Review the image provided for any visual clues about the color formatting issue, as it may offer insights into the problem's nature.

Notes

The provided information does not directly point to a solution for the color formatting issue but suggests that there are underlying errors that need to be addressed first. The errors indicate problems with file handling and requests, which might be unrelated to the color formatting issue or could be indicative of a larger problem affecting multiple aspects of the application.

Recommendation

Apply workaround: Given the lack of direct information linking the errors to the color formatting issue, it's prudent to first address the reported errors as a potential workaround to see if resolving them also fixes the formatting problem.

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