Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,12 @@ export function pendingResponseReducer(
};
}

function ThinkingMessage() {
function ThinkingMessage({ label = 'Thinking' }: { label?: string }) {
return (
<Message from="assistant" className="chat-reasoning-message">
<MessageContent>
<Shimmer className="text-sm font-light" direction="rl" duration={1}>
Thinking
{label}
</Shimmer>
</MessageContent>
</Message>
Expand Down Expand Up @@ -602,10 +602,12 @@ export function FastSessionTranscript({
/>
{pendingResponseState.pendingAfter !== null ? (
<ThinkingMessage />
) : !isSending &&
conversationResponding !== true &&
runningTaskCount > 0 &&
openTasksPanel ? (
) : conversationResponding === true ? (
// Visible output (a tool call, an acknowledgement) has arrived
// but the turn is still running: the responding lease is the
// authority, and it clears the moment the closeout lands.
<ThinkingMessage label="Working" />
) : !isSending && runningTaskCount > 0 && openTasksPanel ? (
<RunningTasksMessage
count={runningTaskCount}
onOpenTasks={openTasksPanel}
Expand Down
Loading