Skip to content

Commit be21c19

Browse files
danielycclaude
andcommitted
fix(web): hide the prompt suggestion when another provider is selected
The suggestion belongs to the Claude instance that produced it, so picking a different provider in the composer hides it; switching back shows it again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 98e0eaf commit be21c19

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/web/src/components/ChatView.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4018,10 +4018,12 @@ export default function ChatView(props: ChatViewProps) {
40184018
[],
40194019
);
40204020
const latestPromptSuggestion = promptSuggestionQuery.data ?? null;
4021-
// Tied to the completed run it follows, so a rollback or a later run hides it.
4021+
// Tied to the completed run it follows and to its provider instance, so a
4022+
// rollback, a later run, or picking another provider hides it.
40224023
const promptSuggestion =
40234024
latestRunSettled &&
40244025
activeLatestRun?.status === "completed" &&
4026+
selectedProviderEntry?.instanceId === promptSuggestionInstanceId &&
40254027
latestPromptSuggestion !== null &&
40264028
latestPromptSuggestion.runId === activeLatestRun?.runId &&
40274029
!dismissedPromptSuggestionIds.has(latestPromptSuggestion.id)

0 commit comments

Comments
 (0)