mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
chore: reduce log level for expected command mismatch events
This commit is contained in:
parent
fb720e4204
commit
b8690913fc
2 changed files with 2 additions and 2 deletions
|
|
@ -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}"`,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue