From 28dcdb4a2eb7c49688341969d2182386a7db6871 Mon Sep 17 00:00:00 2001 From: marius-kilocode Date: Thu, 28 May 2026 10:06:48 +0200 Subject: [PATCH] fix(vscode): focus history session rename editor --- .../src/components/history/SessionList.tsx | 6 ++++- .../webview-ui/src/styles/history.css | 22 ------------------- 2 files changed, 5 insertions(+), 23 deletions(-) diff --git a/packages/kilo-vscode/webview-ui/src/components/history/SessionList.tsx b/packages/kilo-vscode/webview-ui/src/components/history/SessionList.tsx index db81a08e071..2c5807ff483 100644 --- a/packages/kilo-vscode/webview-ui/src/components/history/SessionList.tsx +++ b/packages/kilo-vscode/webview-ui/src/components/history/SessionList.tsx @@ -105,7 +105,11 @@ const SessionList: Component = (props) => { {node} - + { + if (renamingId() === item.id) event.preventDefault() + }} + > startRename(item)}> {language.t("common.rename")} diff --git a/packages/kilo-vscode/webview-ui/src/styles/history.css b/packages/kilo-vscode/webview-ui/src/styles/history.css index 5c665971384..b41b8b9473f 100644 --- a/packages/kilo-vscode/webview-ui/src/styles/history.css +++ b/packages/kilo-vscode/webview-ui/src/styles/history.css @@ -61,28 +61,6 @@ body.vscode-light opacity: 1; } -.session-list-menu { - min-width: 180px; - border: 1px solid color-mix(in oklch, var(--border-base) 50%, transparent) !important; - box-shadow: var(--shadow-md) !important; - - [data-slot="context-menu-item"] { - padding: 6px 10px; - font-size: var(--font-size-small); - line-height: var(--line-height-large); - transition: none; - - &:hover, - &[data-highlighted] { - background: var(--surface-raised-base-hover); - } - } - - [data-slot="context-menu-separator"] { - margin: 4px 0; - } -} - /* History View (unified Local + Cloud tabs) */ .history-view { display: flex;