kunwp1 commented on code in PR #9252:
URL: https://github.com/apache/texera/pull/9252#discussion_r4448505665
##########
agent-service/src/agent/tools/workflow-execution-tools.ts:
##########
@@ -559,7 +486,7 @@ export async function executeOperatorAndFormat(
dataString = [headerLine, ...keptRows].join("\n");
}
- const shapeLine = formatInputOutput(workflowState, operatorId, opInfo,
columns);
+ const shapeLine = formatInputOutputMetadata(workflowState, operatorId,
opInfo, columns);
Review Comment:
The success path still repeats the rest of `formatOperatorResult`. The
visible-column count above and the shape line, warnings, summary and join here
are the same as `result-formatting.ts` lines 33–35 and 55–61. The copies now
differ in only two ways: this path truncates to the char limit, and
`formatOperatorResult` swaps `html-content` / `json-content` for a placeholder.
The second difference looks like a real gap. The backend sends a chart's
HTML untruncated, and the truncation here always keeps at least one row. So
`executeOperator` on a chart operator hands the whole HTML to the model.
To fix both, move the truncation into `result-formatting.ts` behind an
optional `charLimit`. Then end this function, after the `onResult` loop, with
`return formatOperatorResult(operatorId, opInfo, workflowState, charLimit)`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]