Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/stable-working-indicator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"kilo-code": patch
---

Reduce chat layout movement when live output finishes and session actions appear.
Original file line number Diff line number Diff line change
Expand Up @@ -97,25 +97,27 @@ export const WorkingIndicator: Component = () => {
}

return (
<Show when={session.status() !== "idle" && !blocked()}>
<div class="working-indicator">
<Spinner />
<span class="working-text">{statusText()}</span>
<Show when={elapsed() > 0}>
<span class="working-elapsed">{formatElapsed()}</span>
</Show>
<Show when={isRetrying()}>
<Button
variant="secondary"
size="small"
onClick={handleCancelRetry}
class="working-cancel"
style={{ "font-weight": "600", color: "var(--vscode-errorForeground, #f85149)" }}
>
{language.t("ui.sessionTurn.cancel") || "Cancel"}
</Button>
</Show>
</div>
</Show>
<div class="working-indicator-slot">
<Show when={session.status() !== "idle" && !blocked()}>
<div class="working-indicator">
<Spinner />
<span class="working-text">{statusText()}</span>
<Show when={elapsed() > 0}>
<span class="working-elapsed">{formatElapsed()}</span>
</Show>
<Show when={isRetrying()}>
<Button
variant="secondary"
size="small"
onClick={handleCancelRetry}
class="working-cancel"
style={{ "font-weight": "600", color: "var(--vscode-errorForeground, #f85149)" }}
>
{language.t("ui.sessionTurn.cancel") || "Cancel"}
</Button>
</Show>
</div>
</Show>
</div>
)
}
6 changes: 6 additions & 0 deletions packages/kilo-vscode/webview-ui/src/styles/chat-layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@
color: var(--vscode-descriptionForeground);
}

.working-indicator-slot {
/* Offset the session actions appearing when work finishes. */
min-height: 10px;
flex-shrink: 0;
}

.working-text {
flex: 1;
min-width: 0;
Expand Down
Loading