Function: claude-code-ide-stop
claude-code-ide-stop is an interactive and natively compiled function
defined in claude-code-ide.el.
Signature
(claude-code-ide-stop)
Documentation
Stop a Claude Code instance of the current project or directory.
Stopping is destructive, so the target is never guessed: the current terminal buffer, the sole instance, or the sole visible one is unambiguous; otherwise (and with a prefix argument) a completing-read picks the instance.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/yjvbhwl7p6zrbw9xlnni7y4hra8sa3pl-emacs-packages-deps/share/emacs/site-lisp/claude-code-ide.el
;;;###autoload
(defun claude-code-ide-stop ()
"Stop a Claude Code instance of the current project or directory.
Stopping is destructive, so the target is never guessed: the current
terminal buffer, the sole instance, or the sole visible one is
unambiguous; otherwise (and with a prefix argument) a completing-read
picks the instance."
(interactive)
(let ((session (claude-code-ide--resolve-session 'prompt "Stop Claude instance: ")))
(if (not session)
(claude-code-ide-log "No Claude Code session is running in this directory")
(let ((display-name (claude-code-ide--session-display-name session))
(buffer (claude-code-ide-mcp-session-buffer session)))
(if (and buffer (buffer-live-p buffer))
;; Kill the buffer (cleanup will be handled by hooks)
;; The process sentinel will handle cleanup when the process dies
(kill-buffer buffer)
(claude-code-ide--cleanup-session session))
(claude-code-ide-log "Stopping Claude Code %s..." display-name)))))