claudefix 2.5.1 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -17
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,25 +32,13 @@ That's it! The install script:
|
|
|
32
32
|
|
|
33
33
|
**Works with both npm-installed Claude AND native Claude installs** (the new self-updating version at `~/.local/share/claude/versions`).
|
|
34
34
|
|
|
35
|
-
##
|
|
35
|
+
## How It Works
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
Claude Code is a compiled binary that uses Ink (React for terminals). We wrap it in a PTY and:
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
Here's what the wrapper actually does to the output stream:
|
|
44
|
-
|
|
45
|
-
1. **Strips background colors** - Removes ANSI background color codes (like `\x1b[48;5;XXm`) that cause VTE rendering glitches on Linux
|
|
46
|
-
2. **Clears scrollback periodically** - Sends `\x1b[3J` every 500 renders or 60 seconds to prevent terminal lag
|
|
47
|
-
3. **Debounces resize events** - Batches SIGWINCH signals instead of thrashing the terminal
|
|
48
|
-
|
|
49
|
-
**You can verify this yourself:**
|
|
50
|
-
- Read `bin/claude-fixed.js` - it's ~100 lines of straightforward PTY spawn + regex filtering
|
|
51
|
-
- Set `CLAUDEFIX_DISABLED=1` to bypass the wrapper entirely
|
|
52
|
-
- Run `claude` directly if you don't trust it - you'll just get the screen glitches back
|
|
53
|
-
- It's MIT licensed, fully open source, nothing hidden
|
|
39
|
+
1. **Strip background colors** - Removes ANSI background color codes that cause VTE glitches
|
|
40
|
+
2. **Clear scrollback periodically** - Every 500 renders or 60 seconds
|
|
41
|
+
3. **Debounce resize events** - Batches SIGWINCH instead of thrashing
|
|
54
42
|
|
|
55
43
|
## Config
|
|
56
44
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claudefix",
|
|
3
|
-
"version": "2.5.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.5.2",
|
|
4
|
+
"description": "Fixes screen glitching, blocky colors, AND MEMORY LEAKS in Claude Code CLI on Linux and macOS. All features optional via env vars. Shows config options on install. Developed by Hardwick Software Services @ https://justcalljon.pro",
|
|
5
5
|
"main": "index.cjs",
|
|
6
6
|
"bin": {
|
|
7
7
|
"claude-fixed": "bin/claude-fixed.js",
|