From a242a912d5856646b1173051bcbb91c78eaae06c Mon Sep 17 00:00:00 2001 From: marius-kilocode Date: Tue, 15 Sep 2026 09:33:23 +0200 Subject: [PATCH] fix(agent-manager): enable row worktree control before project state loads --- .../kilo-vscode/webview-ui/agent-manager/ProjectList.tsx | 1 - .../webview-ui/agent-manager/ProjectRowActions.tsx | 8 +++++--- .../webview-ui/agent-manager/ProjectsSection.tsx | 2 -- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/kilo-vscode/webview-ui/agent-manager/ProjectList.tsx b/packages/kilo-vscode/webview-ui/agent-manager/ProjectList.tsx index caa3572064f..3b9306de6ed 100644 --- a/packages/kilo-vscode/webview-ui/agent-manager/ProjectList.tsx +++ b/packages/kilo-vscode/webview-ui/agent-manager/ProjectList.tsx @@ -245,7 +245,6 @@ export const ProjectList: Component = (props) => { onSection={(projectId) => newSection(projectId)} onSettings={(projectId) => vscode.postMessage({ type: "openSettingsPanel", tab: "agentManager", projectId })} bindings={props.bindings} - loaded={(projectId) => props.states[projectId] !== undefined} baseBranch={(projectId) => props.states[projectId]?.defaultBaseBranch ?? props.local[projectId]?.branch ?? "main"} onExpand={(projectId, expanded) => vscode.postMessage({ type: "agentManager.setProjectExpanded", projectId, expanded }) diff --git a/packages/kilo-vscode/webview-ui/agent-manager/ProjectRowActions.tsx b/packages/kilo-vscode/webview-ui/agent-manager/ProjectRowActions.tsx index ad42f891182..c6384573d09 100644 --- a/packages/kilo-vscode/webview-ui/agent-manager/ProjectRowActions.tsx +++ b/packages/kilo-vscode/webview-ui/agent-manager/ProjectRowActions.tsx @@ -4,7 +4,7 @@ import { Show, type Component } from "solid-js" import { IconButton } from "@kilocode/kilo-ui/icon-button" import { WorktreeCreate, type WorktreeCreateProps } from "./ProjectActions" -interface Props extends WorktreeCreateProps { +interface Props extends Omit { pinned: boolean onHistory: () => void onSettings: () => void @@ -14,14 +14,16 @@ interface Props extends WorktreeCreateProps { /** * Project row actions: the new-worktree split control plus the individual * project actions. Clicks stay off the row toggle so the plus opens the dialog - * without expanding a collapsed project. + * without expanding a collapsed project. The control is not gated on the + * project's pushed state: create messages are state-gated on the host, so a + * collapsed project that has never been expanded still works. */ export const ProjectRowActions: Component = (props) => (
event.stopPropagation()}> void onSettings: (id: string) => void count: (id: string) => number | undefined - loaded: (id: string) => boolean baseBranch: (id: string) => string tools?: JSX.Element body: (project: AgentProjectSnapshot) => JSX.Element @@ -81,7 +80,6 @@ export const ProjectsSection: Component = (props) => ( props.onCreate(project().id)}