claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

"/terminal-setup command missing in Alacritty terminal"

Open arathald opened this issue 8 months ago • 6 comments

Bug Description /terminal-setup command isn't available on alacritty - I don't know if this is due to some limitation of alacritty, but the command not being available is confusing. I think at very least, the command should be available, and give a message that my terminal emulator isn't supported if that's the case.

Environment Info

  • Platform: macos
  • Terminal: alacritty
  • Version: 1.0.3
  • Feedback ID: 0e920629-8097-4eae-a997-b024fc584186

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:882:11)\n    at execSync (node:child_process:954:15)\n    at cG (file:///Users/greg/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:644:3513)\n    at file:///Users/greg/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:574:15313\n    at Q (file:///Users/greg/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:532:13335)\n    at sR1 (file:///Users/greg/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:574:14562)\n    at aI (file:///Users/greg/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:574:14179)\n    at FU2 (file:///Users/greg/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1965:20997)","timestamp":"2025-05-25T01:49:20.059Z"}]

arathald avatar May 25 '25 01:05 arathald

This alacritty config seems to work (on Linux at least)

[keyboard]
bindings = [
    { key = "Return", mods = "Shift", chars = "\n" } 
]

dk-nc avatar Sep 19 '25 08:09 dk-nc

[keyboard]
bindings = [
    { key = "Return", mods = "Shift", chars = "\n" } 
]

Can confirm that this config update does work for Claude running standalone in Alacritty but it does not work if Claude is running in a TMUX session. Looking more into this hoping to find a solution.

BrandonMathis avatar Sep 29 '25 21:09 BrandonMathis

Can confirm that this config update does work for Claude running standalone in Alacritty but it does not work if Claude is running in a TMUX session. Looking more into this hoping to find a solution.

Are you sure? It works for me in a tmux session.

dk-nc avatar Sep 29 '25 23:09 dk-nc

[keyboard] bindings = [ { key = "Return", mods = "Shift", chars = "\n" } ]

Confirmed this is working in Alacritty with or without tmux session

owenthereal avatar Oct 06 '25 15:10 owenthereal

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 08 '25 10:12 github-actions[bot]

I confirm the issue is still here, I confirm the solution of @dk-nc works. Only the Claude integration is missing to remove the error

The error output by claude-code

Terminal setup cannot be run from alacritty.

     This command configures a convenient Shift+Enter shortcut for multi-line prompts.
     Note: You can already use backslash (\) + return to add newlines.

     To set up the shortcut (optional):
     1. Exit tmux/screen temporarily
     2. Run /terminal-setup directly in one of these terminals:
        • IDE: VSCode, Cursor, Windsurf
        • Other: Ghostty, WezTerm
     3. Return to tmux/screen - settings will persist

ztec avatar Dec 12 '25 16:12 ztec