fraudTech commited on
Commit
ab6da44
·
1 Parent(s): 8195c94

fix thinking content for V3

Browse files
Files changed (1) hide show
  1. web/src/App.tsx +0 -2
web/src/App.tsx CHANGED
@@ -1024,7 +1024,6 @@ function App() {
1024
  // On done → flush into content (final response).
1025
  // This prevents any flash of text in the main area before it moves to Thinking.
1026
  let pendingContent = '';
1027
- let toolFired = false;
1028
 
1029
  while (true) {
1030
  const { done, value } = await reader.read();
@@ -1080,7 +1079,6 @@ function App() {
1080
  );
1081
  } else if (event === 'tool_start') {
1082
  // Flush pending content → Thinking panel (it's intermediate LLM reasoning)
1083
- toolFired = true;
1084
  setStatusMessage(`Generating ${data.name}...`);
1085
  const flushed = pendingContent;
1086
  pendingContent = '';
 
1024
  // On done → flush into content (final response).
1025
  // This prevents any flash of text in the main area before it moves to Thinking.
1026
  let pendingContent = '';
 
1027
 
1028
  while (true) {
1029
  const { done, value } = await reader.read();
 
1079
  );
1080
  } else if (event === 'tool_start') {
1081
  // Flush pending content → Thinking panel (it's intermediate LLM reasoning)
 
1082
  setStatusMessage(`Generating ${data.name}...`);
1083
  const flushed = pendingContent;
1084
  pendingContent = '';