akseljoonas HF Staff commited on
Commit
c767204
·
1 Parent(s): c7fb1d4

Show 4 rolling subtool steps in research display

Browse files
frontend/src/components/Chat/ToolCallGroup.tsx CHANGED
@@ -163,7 +163,7 @@ function formatResearchStep(raw: string): { label: string } {
163
  /** Rolling 2-line display of research sub-tool calls — hidden when complete. */
164
  function ResearchSteps({ steps, isRunning }: { steps: string[]; isRunning: boolean }) {
165
  if (!isRunning) return null;
166
- const visible = steps.slice(-2);
167
  if (visible.length === 0) return null;
168
 
169
  return (
 
163
  /** Rolling 2-line display of research sub-tool calls — hidden when complete. */
164
  function ResearchSteps({ steps, isRunning }: { steps: string[]; isRunning: boolean }) {
165
  if (!isRunning) return null;
166
+ const visible = steps.slice(-4);
167
  if (visible.length === 0) return null;
168
 
169
  return (