Skip to content

Commit 35ce8d5

Browse files
committed
fix(ai): clear stale clarification on new turn and use green tool color
Clear _queuedClarification at the start of sendPrompt to prevent text from a previous turn leaking into the next clarification read. Also change getUserClarification tool icon color to green (#6bc76b) to match Read file tool bubbles.
1 parent 5dbba83 commit 35ce8d5

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src-node/claude-code-agent.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ exports.sendPrompt = async function (params) {
148148
currentSessionId = null;
149149
}
150150

151+
// Clear any stale clarification from a previous turn
152+
_queuedClarification = null;
153+
151154
// Cancel any in-flight query
152155
if (currentAbortController) {
153156
currentAbortController.abort();

src/core-ai/AIChatPanel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ define(function (require, exports, module) {
942942
"mcp__phoenix-editor__controlEditor": { icon: "fa-solid fa-code", color: "#6bc76b", label: Strings.AI_CHAT_TOOL_CONTROL_EDITOR },
943943
"mcp__phoenix-editor__resizeLivePreview": { icon: "fa-solid fa-arrows-left-right", color: "#66bb6a", label: Strings.AI_CHAT_TOOL_RESIZE_PREVIEW },
944944
"mcp__phoenix-editor__wait": { icon: "fa-solid fa-hourglass-half", color: "#adb9bd", label: Strings.AI_CHAT_TOOL_WAIT },
945-
"mcp__phoenix-editor__getUserClarification": { icon: "fa-solid fa-comment-dots", color: "#e8a838", label: Strings.AI_CHAT_TOOL_CLARIFICATION },
945+
"mcp__phoenix-editor__getUserClarification": { icon: "fa-solid fa-comment-dots", color: "#6bc76b", label: Strings.AI_CHAT_TOOL_CLARIFICATION },
946946
TodoWrite: { icon: "fa-solid fa-list-check", color: "#66bb6a", label: Strings.AI_CHAT_TOOL_TASKS },
947947
AskUserQuestion: { icon: "fa-solid fa-circle-question", color: "#66bb6a", label: Strings.AI_CHAT_TOOL_QUESTION },
948948
Task: { icon: "fa-solid fa-diagram-project", color: "#6b9eff", label: Strings.AI_CHAT_TOOL_TASK }

0 commit comments

Comments
 (0)