[Bug] /terminal-setup hangs indefinitely with immutable config files on NixOS

Resolved 💬 5 comments Opened Feb 11, 2026 by witchof0x20 Closed Mar 13, 2026

Bug Description
When using alacritty on NixOS (which when using home-manager can often have an immmutable config file), /terminal-setup just freezes up infinitely. I was able to prompt Claude into reverse engineering itself to dump the config changes it would have added as a workaround, but it may be good to just print out the config as a fallback

Environment Info

  • Platform: linux
  • Terminal: alacritty
  • Version: 2.1.32
  • Feedback ID: 46d5836c-cbf8-4174-a6de-a0bb1d43a238

Errors

[{"error":"Error: EBUSY: resource busy or locked, rename '/home/jade/.claude.json.tmp.200334.1770852606126' -> '/home/jade/.claude.json'\n    at Module.renameSync (node:fs:1018:11)\n    at file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1397\n    at FJ (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:40842)\n    at Object.renameSync (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1361)\n    at Nf (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:6248:761)\n    at ZHq (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:6248:5164)\n    at OA (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:6248:2624)\n    at iJz (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:7568:9880)\n    at iuA.<anonymous> (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:7601:5607)\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)","timestamp":"2026-02-11T23:30:06.141Z"},{"error":"Error: EBUSY: resource busy or locked, rename '/home/jade/.claude.json.tmp.200334.1770852606257' -> '/home/jade/.claude.json'\n    at Module.renameSync (node:fs:1018:11)\n    at file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1397\n    at FJ (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:40842)\n    at Object.renameSync (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1361)\n    at Nf (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:6248:761)\n    at ZHq (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:6248:5164)\n    at R2 (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:6261:224)\n    at DKq (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:4045:5867)","timestamp":"2026-02-11T23:30:06.257Z"},{"error":"Error: EROFS: read-only file system, open '/home/jade/.config/alacritty/alacritty.toml'\n    at writeFileSync (node:fs:2427:20)\n    at c8 (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:11:8907)\n    at mZ9 (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:963:3)\n    at FOA (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:949:7606)\n    at call (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:980:116)\n    at HG1 (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:2994:10269)\n    at file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:2996:2639\n    at new Promise (<anonymous>)\n    at ZRY (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:2996:2621)\n    at sd4 (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:2996:1031)","timestamp":"2026-02-11T23:30:07.381Z"},{"error":"Error: EBUSY: resource busy or locked, rename '/home/jade/.claude.json.tmp.200334.1770852627651' -> '/home/jade/.claude.json'\n    at Module.renameSync (node:fs:1018:11)\n    at file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1397\n    at FJ (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:40842)\n    at Object.renameSync (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1361)\n    at Nf (file:///nix/store/2cw476clk3dpkbp8db1y07phmp3mzzc3-claude-code-2.1.32/lib/node_modules/@anthropic-ai/claude-code/cli.js:6248:761)\n    at ZHq (file://…

Note: Content was truncated.

View original on GitHub ↗

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