Fix workspace composer focus routing

This commit is contained in:
Mohamed Boudra
2026-04-20 17:41:00 +07:00
parent 33ac657fed
commit 95c1d1fe0f
2 changed files with 32 additions and 8 deletions
+2 -2
View File
@@ -113,7 +113,7 @@ function useAgentPanelDescriptor(
function AgentPanel() {
const { serverId, target, openFileInWorkspace } = usePaneContext();
const { isPaneFocused } = usePaneFocus();
const { isInteractive } = usePaneFocus();
invariant(target.kind === "agent", "AgentPanel requires agent target");
function openWorkspaceFile(input: { filePath: string }) {
@@ -126,7 +126,7 @@ function AgentPanel() {
<AgentPanelContent
serverId={serverId}
agentId={target.agentId}
isPaneFocused={isPaneFocused}
isPaneFocused={isInteractive}
onOpenWorkspaceFile={handleOpenWorkspaceFile}
/>
);