You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
} else if ((newMessage as MessageType).type === 'progress' && isEphemeralToolProgress((newMessage as ProgressMessage<unknown>).data.type)) {
2612
+
} else if ((newMessage as MessageType).type === 'progress' && isEphemeralToolProgress(((newMessage as MessageType).data as { type: string }).type)) {
2609
2613
// Replace the previous ephemeral progress tick for the same tool
2610
2614
// call instead of appending. Sleep/Bash emit a tick per second and
2611
2615
// only the last one is rendered; appending blows up the messages
@@ -2618,7 +2622,7 @@ export function REPL({
2618
2622
// "Initializing…" because it renders the full progress trail.
2619
2623
setMessages(oldMessages => {
2620
2624
const last = oldMessages.at(-1);
2621
-
if (last?.type === 'progress' && last.parentToolUseID === (newMessage as MessageType).parentToolUseID && last.data.type === (newMessage as ProgressMessage<unknown>).data.type) {
2625
+
if (last?.type === 'progress' && (last as MessageType).parentToolUseID === (newMessage as MessageType).parentToolUseID && ((last as MessageType).data as { type: string }).type === ((newMessage as MessageType).data as { type: string }).type) {
2622
2626
const copy = oldMessages.slice();
2623
2627
copy[copy.length - 1] = newMessage;
2624
2628
return copy;
@@ -2683,7 +2687,7 @@ export function REPL({
2683
2687
// title silently fell through to the "Claude Code" default.
2684
2688
if (!titleDisabled && !sessionTitle && !agentTitle && !haikuTitleAttemptedRef.current) {
0 commit comments