mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
fix(cli): skip input bell on route change
This commit is contained in:
@@ -165,17 +165,19 @@ export function Session() {
|
||||
// kilocode_change start - ring terminal bell when input is needed
|
||||
createEffect(
|
||||
on(
|
||||
() => permissions().length,
|
||||
(len, prev) => {
|
||||
if (prev !== undefined && len > (prev ?? 0)) bell()
|
||||
() => [route.sessionID, permissions().length] as const,
|
||||
([id, len], prev) => {
|
||||
if (!prev || prev[0] !== id) return
|
||||
if (len > prev[1]) bell()
|
||||
},
|
||||
),
|
||||
)
|
||||
createEffect(
|
||||
on(
|
||||
() => questions().length,
|
||||
(len, prev) => {
|
||||
if (prev !== undefined && len > (prev ?? 0)) bell()
|
||||
() => [route.sessionID, questions().length] as const,
|
||||
([id, len], prev) => {
|
||||
if (!prev || prev[0] !== id) return
|
||||
if (len > prev[1]) bell()
|
||||
},
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user