Skip to content

Commit 70db5c0

Browse files
author
Gabor Kajtar
committed
fix: remove noisy logs from external terminal
1 parent c1b6689 commit 70db5c0

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

lua/claudecode/terminal/external.lua

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,10 @@
55
--- @type TerminalProvider
66
local M = {}
77

8-
local logger = require("claudecode.logger")
9-
108
--- Configures the external terminal provider (no-op).
119
-- @param term_config table The terminal configuration (ignored).
1210
function M.setup(term_config)
13-
logger.info(
14-
"terminal",
15-
"External terminal provider configured - Claude Code commands will not launch internal terminals"
16-
)
17-
logger.debug("terminal", "External provider setup complete - assuming external Claude Code instance will connect")
11+
-- Intentionally left blank - external provider assumes Claude Code is running elsewhere
1812
end
1913

2014
--- Opens the Claude terminal (no-op for external provider).
@@ -23,39 +17,36 @@ end
2317
-- @param effective_config table Terminal configuration (ignored).
2418
-- @param focus boolean|nil Whether to focus the terminal (ignored).
2519
function M.open(cmd_string, env_table, effective_config, focus)
26-
logger.debug(
27-
"terminal",
28-
"External terminal provider: open() called - no action taken (assuming external Claude Code)"
29-
)
20+
-- Intentionally left blank - external provider assumes Claude Code is running elsewhere
3021
end
3122

3223
--- Closes the managed Claude terminal (no-op for external provider).
3324
function M.close()
34-
logger.debug("terminal", "External terminal provider: close() called - no action taken")
25+
-- Intentionally left blank - external provider assumes Claude Code is running elsewhere
3526
end
3627

3728
--- Simple toggle: show/hide the Claude terminal (no-op for external provider).
3829
-- @param cmd_string string The command to run (ignored).
3930
-- @param env_table table Environment variables (ignored).
4031
-- @param effective_config table Terminal configuration (ignored).
4132
function M.simple_toggle(cmd_string, env_table, effective_config)
42-
logger.debug("terminal", "External terminal provider: simple_toggle() called - no action taken")
33+
-- Intentionally left blank - external provider assumes Claude Code is running elsewhere
4334
end
4435

4536
--- Smart focus toggle: switches to terminal if not focused, hides if currently focused (no-op for external provider).
4637
-- @param cmd_string string The command to run (ignored).
4738
-- @param env_table table Environment variables (ignored).
4839
-- @param effective_config table Terminal configuration (ignored).
4940
function M.focus_toggle(cmd_string, env_table, effective_config)
50-
logger.debug("terminal", "External terminal provider: focus_toggle() called - no action taken")
41+
-- Intentionally left blank - external provider assumes Claude Code is running elsewhere
5142
end
5243

5344
--- Toggles the Claude terminal open or closed (no-op for external provider).
5445
-- @param cmd_string string The command to run (ignored).
5546
-- @param env_table table Environment variables (ignored).
5647
-- @param effective_config table Terminal configuration (ignored).
5748
function M.toggle(cmd_string, env_table, effective_config)
58-
logger.debug("terminal", "External terminal provider: toggle() called - no action taken")
49+
-- Intentionally left blank - external provider assumes Claude Code is running elsewhere
5950
end
6051

6152
--- Gets the buffer number of the currently active Claude Code terminal.

0 commit comments

Comments
 (0)