From 01244b533323a6c6f341061a9c99a5902257ba74 Mon Sep 17 00:00:00 2001 From: Fernando Gomes Date: Thu, 21 May 2026 15:53:01 -0300 Subject: [PATCH 1/3] fix(task-input): stop composer flicker on long multi-line prompts The "New task" composer column was wrapped in a framer-motion `` with a 250ms transition. Each line added to the Tiptap editor triggered a layout animation; rapid keystrokes interrupted each other, producing a visible one-line up/down oscillation as the prompt grew past a few lines. Replace the wrapper with a plain `
` so the editor's natural growth is instantaneous. The suggestions panel below still animates entry/exit through its own `AnimatePresence`. Generated-By: PostHog Code Task-Id: 2184b3af-160d-4a75-bd82-199fecf70f41 --- .../task-detail/components/TaskInput.tsx | 391 +++++++++--------- 1 file changed, 190 insertions(+), 201 deletions(-) diff --git a/apps/code/src/renderer/features/task-detail/components/TaskInput.tsx b/apps/code/src/renderer/features/task-detail/components/TaskInput.tsx index eb00b588c..b0b351b1c 100644 --- a/apps/code/src/renderer/features/task-detail/components/TaskInput.tsx +++ b/apps/code/src/renderer/features/task-detail/components/TaskInput.tsx @@ -46,7 +46,6 @@ import { } from "@stores/navigationStore"; import { useQuery } from "@tanstack/react-query"; import { FOCUSABLE_SELECTOR } from "@utils/overlay"; -import { LayoutGroup, motion } from "framer-motion"; import { useCallback, useEffect, useMemo, useRef, useState } from "react"; import { usePreviewConfig } from "../hooks/usePreviewConfig"; import { useTaskCreation } from "../hooks/useTaskCreation"; @@ -627,220 +626,210 @@ export function TaskInput({ className="relative px-4 pt-[10vh]" > - - - - + + + {workspaceMode === "worktree" && ( + - {workspaceMode === "worktree" && ( - - )} - - {workspaceMode === "cloud" ? ( - - ) : ( - - )} - + {workspaceMode === "cloud" ? ( + + ) : ( + - - {cloudRegion === "dev" && ( - - - - Dev - - )} - - - - + currentBranch={currentBranch} + defaultBranch={ + workspaceMode === "cloud" ? cloudDefaultBranch : defaultBranch } - historyButton={ - + disabled={ + isCreatingTask || + (workspaceMode === "cloud" && !selectedCloudRepository) } - reasoningSelector={ - !isPreviewLoading && ( - - ) + loading={workspaceMode === "cloud" ? false : branchLoading} + workspaceMode={workspaceMode} + selectedBranch={selectedBranch} + onBranchSelect={setSelectedBranch} + busyState={busyState} + cloudBranches={cloudBranches} + cloudBranchesLoading={cloudBranchesLoading} + isRefreshing={cloudBranchesRefreshing} + cloudBranchesFetchingMore={cloudBranchesFetchingMore} + cloudBranchesHasMore={cloudBranchesHasMore} + cloudSearchQuery={cloudBranchSearchQuery} + onCloudPickerClose={handleCloudBranchPickerClose} + onCloudSearchChange={handleCloudBranchSearchChange} + onCloudLoadMore={handleLoadMoreCloudBranches} + onRefresh={ + workspaceMode === "cloud" ? handleRefreshBranches : undefined } - getPromptHistory={getPromptHistory} - onEmptyChange={handleEditorEmptyChange} - onSubmitClick={handleSubmit} - onSubmit={() => { - if (canSubmit) handleSubmit(); - }} + anchor={buttonGroupRef} /> - {activeReportAssociation && ( -
- - - This task will be associated with report - - + + {cloudRegion === "dev" && ( + + + + Dev + + + )} + + + + + } + historyButton={ + + } + reasoningSelector={ + !isPreviewLoading && ( + + ) + } + getPromptHistory={getPromptHistory} + onEmptyChange={handleEditorEmptyChange} + onSubmitClick={handleSubmit} + onSubmit={() => { + if (canSubmit) handleSubmit(); + }} + /> + {activeReportAssociation && ( +
+ + + This task will be associated with report - - - + + + + + +
+ )} + {effectiveWorkspaceMode === "cloud" && + !isLoadingRepos && + !hasGithubIntegration && ( +
+
)} - {effectiveWorkspaceMode === "cloud" && - !isLoadingRepos && - !hasGithubIntegration && ( -
- -
- )} - -
- - + + +
Date: Thu, 21 May 2026 16:34:00 -0300 Subject: [PATCH 2/3] fix: aliogn center --- .../src/renderer/features/task-detail/components/TaskInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/code/src/renderer/features/task-detail/components/TaskInput.tsx b/apps/code/src/renderer/features/task-detail/components/TaskInput.tsx index b0b351b1c..a927fb624 100644 --- a/apps/code/src/renderer/features/task-detail/components/TaskInput.tsx +++ b/apps/code/src/renderer/features/task-detail/components/TaskInput.tsx @@ -620,7 +620,7 @@ export function TaskInput({ > Date: Thu, 21 May 2026 16:40:58 -0300 Subject: [PATCH 3/3] chore: center flex --- .../src/renderer/features/task-detail/components/TaskInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/code/src/renderer/features/task-detail/components/TaskInput.tsx b/apps/code/src/renderer/features/task-detail/components/TaskInput.tsx index 920590850..dd3bf3afa 100644 --- a/apps/code/src/renderer/features/task-detail/components/TaskInput.tsx +++ b/apps/code/src/renderer/features/task-detail/components/TaskInput.tsx @@ -620,7 +620,7 @@ export function TaskInput({ >