Ma77Ball opened a new pull request, #9432:
URL: https://github.com/apache/texera/pull/9432

   ### What changes were proposed in this PR?
   - Replaced the `any` parameters and returns in 
`ReActStepDetailModalComponent`'s message helpers with two local interfaces: 
`MessagePart` (a flat content-part shape with the optional fields the modal 
reads) and `InputMessage` (a role plus string-or-parts content).
   - `getTextFromMessage`, `getToolCallSummaries`, `getToolResultFullItems`, 
and `getToolResultItems` take `InputMessage | null` and filter parts by their 
type tag; `getToolCallSummaries` returns `fullArgs` as `Record<string, 
unknown>` and `buildToolCallNameMap` records a tool call only when both id and 
name are present.
   - `formatResult`, `formatJson`, and `getToolResult` take and return 
`unknown`, since they stringify arbitrary payloads.
   ### Any related issues, documentation, discussions?
   Closes: #9429
   ### How was this PR tested?
   - Run `npx ng test --watch=false 
--include="src/app/workspace/component/agent/agent-panel/react-step-detail-modal/react-step-detail-modal.component.spec.ts"`
 from `frontend/`, expect all 24 tests to pass (they pass locally).
   - The run type-checks the whole project, so success also confirms the new 
types hold against the component template.
   ### Was this PR authored or co-authored using generative AI tooling?
   Co-authored with Claude Opus 4.8 in compliance with ASF
   


-- 
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]

Reply via email to