Function: claude-code-ide--maybe-install-global-advice
claude-code-ide--maybe-install-global-advice is a natively compiled
function defined in claude-code-ide.el.
Signature
(claude-code-ide--maybe-install-global-advice)
Documentation
Install the global terminal advice when the first instance starts.
Source Code
;; Defined in /nix/store/yjvbhwl7p6zrbw9xlnni7y4hra8sa3pl-emacs-packages-deps/share/emacs/site-lisp/claude-code-ide.el
(defun claude-code-ide--maybe-install-global-advice ()
"Install the global terminal advice when the first instance starts."
(when (= (hash-table-count claude-code-ide-mcp--sessions) 1)
(add-hook 'window-selection-change-functions
#'claude-code-ide--note-window-selection)
(when (boundp 'tab-bar-tab-post-open-functions)
(add-hook 'tab-bar-tab-post-open-functions
#'claude-code-ide--strip-new-tab-claude-windows))
(when-let* ((resize-handler
(and claude-code-ide-prevent-reflow-glitch
(claude-code-ide--terminal-resize-handler))))
(advice-add resize-handler
:around #'claude-code-ide--terminal-reflow-filter))))