Merge pull request #10833 from Kilo-Org/worried-crabapple

Keep Kilo Console terminals stable during refresh
This commit is contained in:
Catriel Müller
2026-06-02 18:06:56 -03:00
committed by GitHub
6 changed files with 33 additions and 5 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@kilocode/cli": patch
---
Keep Kilo Console terminals and worktree changes visible while refreshing diffs.
+5
View File
@@ -0,0 +1,5 @@
---
"@kilocode/cli": patch
---
Use the updated favicon in Kilo Console.
+2
View File
@@ -3,6 +3,8 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<title>Kilo Console</title>
</head>
<body>
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32">
<rect width="32" height="32" fill="oklch(95% 0.15 108)"/>
<g fill="#000000">
<path d="M23,26v-2h3v-5l-2-2h-4v2h-3v5l2,2h4ZM20,20h3v3h-3v-3Z"/>
<rect x="12" y="17" width="3" height="3"/>
<polygon points="26 12 23 12 23 9 20 6 17 6 17 9 20 9 20 12 17 12 17 15 26 15 26 12"/>
<path d="M0,0v32h32V0H0ZM29,29H3V3h26v26Z"/>
<polygon points="15 26 15 23 9 23 9 17 6 17 6 23.1875 8.8125 26 15 26"/>
<rect x="12" y="6" width="3" height="3"/>
<polygon points="9 12 12 12 12 15 15 15 15 12 12 9 9 9 9 6 6 6 6 15 9 15 9 12"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 686 B

@@ -89,9 +89,12 @@ function eventSession(event: ProjectConsoleEvent) {
}
function eventType(event: ProjectConsoleEvent) {
const payload = event.payload
const payload = event.payload as { type?: string; name?: unknown; syncEvent?: { type?: unknown } }
if (!payload.type) return ""
if (payload.type !== "sync") return payload.type
return payload.name
if (typeof payload.name === "string") return payload.name
if (typeof payload.syncEvent?.type === "string") return payload.syncEvent.type
return ""
}
function messageEvent(event: ProjectConsoleEvent) {
@@ -699,7 +702,7 @@ export function ProjectConsoleRoute() {
return { url: base.url, dir: item.directory, scope: "project" }
})
return (
<Show keyed when={input()}>
<Show when={input()}>
{(target) => {
const item = pty()
if (!item) return null
@@ -710,7 +713,7 @@ export function ProjectConsoleRoute() {
aria-hidden={terminal() !== key}
>
<GhosttyTerminal
query={target}
query={target()}
pty={item.id}
active={terminal() === key}
onExit={() => {
@@ -751,7 +754,7 @@ export function ProjectConsoleRoute() {
</div>
<div class="project-info-card grow">
<div class="project-panel-heading">Changes</div>
<Show when={diffs.loading}>
<Show when={diffs.loading && !diffs()}>
<p class="empty">Loading diff...</p>
</Show>
<Show when={diffs.error}>