-
[NA] [FE] Parse entity references in OpiKAssist tool call display names (#4825)
发布于
2026-01-20 15:27:43 +00:00 - [NA] [FE] Parse entity references in OpiKAssist tool call display names
OpiKAssist backend now sends tool call display names with entity references
in the format {type:id} (e.g., {span:01978716-1435-7749-b575-ff4982e17264}).
This change parses these references and replaces them with human-readable
span names from the loaded trace data, improving readability for users.- Add parseEntityReferences utility function with regex-based parsing
- Add parseEntityReferencesToParts for structured parsing (future use)
- Update TraceChatMessage to use entity map from TreeDetailsStore
- Add comprehensive unit tests (21 test cases)
- Falls back to showing ID if span not found in tree
- [NA] [FE] Parse entity references in OpiKAssist tool call display names
OpiKAssist backend now sends tool call display names with entity references
in the format {type:id} (e.g., {span:01978716-1435-7749-b575-ff4982e17264}).
This change parses these references and replaces them with human-readable
span names from the loaded trace data, improving readability for users.- Add parseEntityReferences utility function with regex-based parsing
- Add parseEntityReferencesToParts for structured parsing (future use)
- Update TraceChatMessage to use entity map from TreeDetailsStore
- Add comprehensive unit tests (21 test cases)
- Falls back to showing ID if span not found in tree
- [NA] [FE] Parse entity references in OpiKAssist tool call display names
OpiKAssist backend now sends tool call display names with entity references
in the format {type:id} (e.g., {span:01978716-1435-7749-b575-ff4982e17264}).
This change parses these references and replaces them with human-readable
span names from the loaded trace data, improving readability for users.- Add parseEntityReferences utility function with regex-based parsing
- Update TraceChatMessage to build entity map from raw span data
- Entity map includes ALL spans regardless of filters or collapsed state
- Add comprehensive unit tests (13 test cases)
- Falls back to showing ID if span not found
- Revision 2: Optimize entityMap computation and make parseEntityReferences fully generic
下载附件