chore: reduce log level for expected command mismatch events

This commit is contained in:
Roo Code 2026-02-02 04:08:30 +00:00
parent fb720e4204
commit b8690913fc
2 changed files with 2 additions and 2 deletions

View file

@ -65,7 +65,7 @@ export abstract class BaseTerminal implements RooTerminal {
// This prevents conda/pyenv/other auto-activation commands from hijacking the stream
if (eventCommand !== undefined && this.process.command) {
if (!BaseTerminal.commandsMatch(this.process.command, eventCommand)) {
console.warn(
console.debug(
`[Terminal ${this.provider}/${this.id}] Ignoring shell execution for non-matching command. ` +
`Expected: "${this.process.command}", Got: "${eventCommand}"`,
)

View file

@ -161,7 +161,7 @@ describe("BaseTerminal", () => {
it("ignores stream when eventCommand does not match process command", () => {
const stream = createMockStream()
const consoleSpy = vi.spyOn(console, "warn").mockImplementation(() => {})
const consoleSpy = vi.spyOn(console, "debug").mockImplementation(() => {})
terminal.setActiveStream(stream, undefined, "conda activate base")