Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit 75501ab

Browse files
committed
chore: reduce log level for expected command mismatch events
1 parent 979ed44 commit 75501ab

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/integrations/terminal/BaseTerminal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export abstract class BaseTerminal implements RooTerminal {
6565
// This prevents conda/pyenv/other auto-activation commands from hijacking the stream
6666
if (eventCommand !== undefined && this.process.command) {
6767
if (!BaseTerminal.commandsMatch(this.process.command, eventCommand)) {
68-
console.warn(
68+
console.debug(
6969
`[Terminal ${this.provider}/${this.id}] Ignoring shell execution for non-matching command. ` +
7070
`Expected: "${this.process.command}", Got: "${eventCommand}"`,
7171
)

src/integrations/terminal/__tests__/BaseTerminal.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ describe("BaseTerminal", () => {
161161

162162
it("ignores stream when eventCommand does not match process command", () => {
163163
const stream = createMockStream()
164-
const consoleSpy = vi.spyOn(console, "warn").mockImplementation(() => {})
164+
const consoleSpy = vi.spyOn(console, "debug").mockImplementation(() => {})
165165

166166
terminal.setActiveStream(stream, undefined, "conda activate base")
167167

0 commit comments

Comments
 (0)