fix(agent-builder): don't auto-send prompt when opening the dock#3486
Draft
dmarticus wants to merge 1 commit into
Draft
fix(agent-builder): don't auto-send prompt when opening the dock#3486dmarticus wants to merge 1 commit into
dmarticus wants to merge 1 commit into
Conversation
Opening the Agent Builder dock via a contextual action ("New agent",
"Edit configuration", etc.) used to auto-send the seeded prompt, so the
sidebar started a chat on its own. Instead, prefill the composer with the
seeded prompt and let the user review and hit send.
Since prefilling is non-destructive, the start-fresh-vs-continue
confirmation dialog is no longer needed and is removed.
Generated-By: PostHog Code
Task-Id: fc2c5587-1464-4cb1-9116-0e7a34f70734
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
|
React Doctor found 2 issues in 2 files · 2 warnings. 2 warnings
Reviewed by React Doctor for commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In the agent-platform Agent Builder UI, the "new agent" flow started with an automatic prompt: clicking the contextual header action (e.g. "New agent") opened the dock and immediately fired a canned prompt into the chat. Opening the sidebar shouldn't trigger a chat on its own — it should present an empty chat.
Changes
AgentBuilderSeedDialog).How did you test this?
pnpm --filter @posthog/ui typecheck— cleanpnpm biome linton the changed files — cleanpnpm --filter @posthog/ui test— 1659 tests passAutomatic notifications
Created with PostHog from a Slack thread