Skip to content

Commit 1b40eac

Browse files
committed
fix(web): remove the '* cheatcode' name label entirely from assistant messages
Follow-up to the working-animation change: the owner wants the 'cheatcode' label gone for good, not just replaced while streaming. AssistantHeader now renders the working animation ONLY while the message is streaming and renders NOTHING once it's done (previously it restored the '* cheatcode' label). Verified live: no name label in finished messages; working animation still shows during streaming. Gate green.
1 parent 58088d5 commit 1b40eac

1 file changed

Lines changed: 9 additions & 14 deletions

File tree

apps/web/src/components/chat/message-list.tsx

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -129,28 +129,23 @@ function MessageBubble({
129129
);
130130
}
131131

132-
// While the run streams, the header shows the "Working • Ns" animation; when the run ends
133-
// it restores the static "* cheatcode" label. `streaming` is true only for the last
134-
// assistant message during a live run, so the label auto-restores on completion.
132+
// While the run streams, the header shows the "Working • Ns" animation; once the message
133+
// is done there is NO header at all (the static "* cheatcode" label is intentionally
134+
// removed). `streaming` is true only for the last assistant message during a live run.
135135
function AssistantHeader({
136136
elapsedSeconds,
137137
streaming,
138138
}: {
139139
elapsedSeconds: number;
140140
streaming: boolean;
141141
}) {
142-
if (streaming) {
143-
return (
144-
<WorkingIndicator
145-
className="mb-3 flex items-center gap-2 text-[#a0a0a0] text-[13px]"
146-
elapsedSeconds={elapsedSeconds}
147-
/>
148-
);
142+
if (!streaming) {
143+
return null;
149144
}
150145
return (
151-
<div className="mb-3 flex items-center gap-2 text-[13px]">
152-
<span className="text-[#f8af2c]">*</span>
153-
<span className="font-semibold text-[#1b1b1b]">cheatcode</span>
154-
</div>
146+
<WorkingIndicator
147+
className="mb-3 flex items-center gap-2 text-[#a0a0a0] text-[13px]"
148+
elapsedSeconds={elapsedSeconds}
149+
/>
155150
);
156151
}

0 commit comments

Comments
 (0)