mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-21 14:07:20 +08:00
style(cli): add kilocode markers in toast
This commit is contained in:
@@ -60,6 +60,7 @@ function init() {
|
||||
const { duration, ...currentToast } = parsedOptions
|
||||
setStore("currentToast", currentToast)
|
||||
if (timeoutHandle) clearTimeout(timeoutHandle)
|
||||
// kilocode_change start
|
||||
timeoutHandle = null
|
||||
if (duration && duration > 0) {
|
||||
timeoutHandle = setTimeout(() => {
|
||||
@@ -73,6 +74,7 @@ function init() {
|
||||
timeoutHandle = null
|
||||
setStore("currentToast", null)
|
||||
},
|
||||
// kilocode_change end
|
||||
error: (err: any) => {
|
||||
if (err instanceof Error)
|
||||
return toast.show({
|
||||
|
||||
Reference in New Issue
Block a user