mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Fix compiling marker logic
This commit is contained in:
@@ -337,8 +337,10 @@ export class TerminalProcess extends EventEmitter<TerminalProcessEvents> {
|
|||||||
clearTimeout(this.hotTimer)
|
clearTimeout(this.hotTimer)
|
||||||
}
|
}
|
||||||
// these markers indicate the command is some kind of local dev server recompiling the app, which we want to wait for output of before sending request to claude
|
// these markers indicate the command is some kind of local dev server recompiling the app, which we want to wait for output of before sending request to claude
|
||||||
const compilingMarkers = ["compiling", "building", "bundling", "transpiling", "generating"]
|
const compilingMarkers = ["compiling", "building", "bundling", "transpiling", "generating", "starting"]
|
||||||
const markerNullifiers = [
|
const markerNullifiers = [
|
||||||
|
"compiled",
|
||||||
|
"success",
|
||||||
"finish",
|
"finish",
|
||||||
"complete",
|
"complete",
|
||||||
"succeed",
|
"succeed",
|
||||||
@@ -348,11 +350,11 @@ export class TerminalProcess extends EventEmitter<TerminalProcessEvents> {
|
|||||||
"exit",
|
"exit",
|
||||||
"terminate",
|
"terminate",
|
||||||
"error",
|
"error",
|
||||||
"failed",
|
"fail",
|
||||||
]
|
]
|
||||||
const isCompiling =
|
const isCompiling =
|
||||||
compilingMarkers.some((marker) => command.toLowerCase().includes(marker.toLowerCase())) &&
|
compilingMarkers.some((marker) => data.toLowerCase().includes(marker.toLowerCase())) &&
|
||||||
!markerNullifiers.some((nullifier) => command.toLowerCase().includes(nullifier.toLowerCase()))
|
!markerNullifiers.some((nullifier) => data.toLowerCase().includes(nullifier.toLowerCase()))
|
||||||
this.hotTimer = setTimeout(
|
this.hotTimer = setTimeout(
|
||||||
() => {
|
() => {
|
||||||
this.isHot = false
|
this.isHot = false
|
||||||
|
|||||||
Reference in New Issue
Block a user