fix(status): classify multiedit as editing (#1209)

* fix(status): classify multiedit as editing

* fix(status): preserve multiedit status phrase

---------

Co-authored-by: Isaac Sanchez <isanchez-hawkins@arize.com>
This commit is contained in:
Isaac Sanchez-Hawkins
2026-05-12 10:57:04 +03:00
committed by GitHub
co-authored by Isaac Sanchez
parent 291ff98f18
commit f1317d7f71
+3 -2
View File
@@ -224,7 +224,7 @@ export function useAssistantStatus(): AssistantStatusSnapshot {
let activePartType: 'text' | 'tool' | 'reasoning' | 'editing' | undefined = undefined;
let activeToolName: string | undefined = undefined;
const editingTools = new Set(['edit', 'write', 'apply_patch']);
const editingTools = new Set(['edit', 'write', 'multiedit', 'apply_patch']);
for (let i = (lastAssistant.parts ?? []).length - 1; i >= 0; i -= 1) {
const part = lastAssistant.parts?.[i];
@@ -245,6 +245,7 @@ export function useAssistantStatus(): AssistantStatusSnapshot {
const toolName = getToolDisplayName(part);
if (editingTools.has(toolName)) {
activePartType = 'editing';
activeToolName = toolName;
} else {
activePartType = 'tool';
activeToolName = toolName;
@@ -317,7 +318,7 @@ export function useAssistantStatus(): AssistantStatusSnapshot {
const isGenericStatus = activePartType === undefined;
const statusText = (() => {
if (activePartType === 'editing') return 'editing file';
if (activePartType === 'editing') return activeToolName === 'multiedit' ? getToolStatusPhrase(activeToolName) : 'editing file';
if (activePartType === 'tool' && activeToolName) return getToolStatusPhrase(activeToolName);
if (activePartType === 'reasoning') return 'thinking';
if (activePartType === 'text') return 'composing';