:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(desktop): align space new task repository controls (#85923)
Dylan Martin93874a120d70
diff --git a/products/desktop/packages/ui/src/features/canvas/components/WebsiteNewTask.test.tsx b/products/desktop/packages/ui/src/features/canvas/components/WebsiteNewTask.test.tsxindex 9d90701c7b37..47ed684b6db2 100644--- a/products/desktop/packages/ui/src/features/canvas/components/WebsiteNewTask.test.tsx+++ b/products/desktop/packages/ui/src/features/canvas/components/WebsiteNewTask.test.tsx@@ -21,7 +21,10 @@ const { track, useFolderInstructions, taskInputProps } = vi.hoisted(() => ({// TaskInput is a huge hook-heavy component; stub it down to just the surface// this test cares about — a button that fires onContextChipClick when wired.vi.mock("@posthog/ui/features/task-detail/components/TaskInput", () => ({- TaskInput: (props: { onContextChipClick?: () => void }) => {+ TaskInput: (props: {+ allowNoRepo?: boolean;+ onContextChipClick?: () => void;+ }) => {taskInputProps(props);return (<button@@ -123,6 +126,13 @@ describe("WebsiteNewTask context panel", () => {);});+ it("uses the standard repository and branch selectors", () => {+ useFolderInstructions.mockReturnValue({ data: undefined });+ renderNewTask();++ expect(taskInputProps.mock.lastCall?.[0]).not.toHaveProperty("allowNoRepo");+ });+it("opens the context panel and tracks view_context when the chip is clicked", async () => {const user = userEvent.setup();useFolderInstructions.mockReturnValue({diff --git a/products/desktop/packages/ui/src/features/canvas/components/WebsiteNewTask.tsx b/products/desktop/packages/ui/src/features/canvas/components/WebsiteNewTask.tsxindex 29e5ed2967df..6c5971aedc90 100644--- a/products/desktop/packages/ui/src/features/canvas/components/WebsiteNewTask.tsx+++ b/products/desktop/packages/ui/src/features/canvas/components/WebsiteNewTask.tsx@@ -146,9 +146,6 @@ export function WebsiteNewTask({ channelId }: { channelId: string }) {channelName={channelName}channelId={channelId}channelContextId={channelId}- allowNoRepo- channelRepositories={channel?.repositories}- channelGithubIntegration={channel?.github_integration}// So a prompt handed to openTaskInput survives routing into a channel.initialPrompt={view.initialPrompt}initialPromptKey={view.taskInputRequestId}