Skip to content

feat: enhance chat response handling with external links and user info #1743

feat: enhance chat response handling with external links and user info

feat: enhance chat response handling with external links and user info #1743

Triggered via pull request August 10, 2025 03:22
Status Failure
Total duration 1m 16s
Artifacts

fastgpt-test.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 1 warning
test
Process completed with exit code 1.
test/cases/global/core/chat/utils.test.ts > addStatisticalDataToHistoryItem > should handle nested plugin and loop details: test/cases/global/core/chat/utils.test.ts#L189
AssertionError: expected { Object (obj, value, ...) } to deeply equal { Object (obj, value, ...) } - Expected + Received @@ -1,7 +1,6 @@ { - "historyPreviewLength": undefined, "llmModuleAccount": 3, "obj": "AI", "responseData": [ { "id": "1", @@ -21,11 +20,10 @@ }, ], "runningTime": 1, }, ], - "totalQuoteList": [], "value": [ { "text": { "content": "test response", }, ❯ test/cases/global/core/chat/utils.test.ts:189:20
test/cases/global/core/chat/utils.test.ts > addStatisticalDataToHistoryItem > should handle empty arrays and undefined values: test/cases/global/core/chat/utils.test.ts#L155
AssertionError: expected { Object (obj, value, ...) } to deeply equal { Object (obj, value, ...) } - Expected + Received @@ -1,7 +1,6 @@ { - "historyPreviewLength": undefined, "llmModuleAccount": 1, "obj": "AI", "responseData": [ { "id": "1", @@ -9,11 +8,10 @@ "moduleType": "chatNode", "nodeId": "1", "runningTime": 0, }, ], - "totalQuoteList": [], "value": [ { "text": { "content": "test response", }, ❯ test/cases/global/core/chat/utils.test.ts:155:20
test/cases/global/core/chat/utils.test.ts > addStatisticalDataToHistoryItem > should return original item if responseData is undefined: test/cases/global/core/chat/utils.test.ts#L97
AssertionError: expected { obj: 'AI', value: [ { …(2) } ] } to be { obj: 'AI', value: [ { …(2) } ] } // Object.is equality If it should pass with deep equality, replace "toBe" with "toStrictEqual" Expected: { obj: 'AI', value: [ { …(2) } ] } Received: serializes to the same string Compared values have no visual difference. ❯ test/cases/global/core/chat/utils.test.ts:97:51
test/cases/global/core/chat/utils.test.ts > addStatisticalDataToHistoryItem > should return original item if totalQuoteList is already defined: test/cases/global/core/chat/utils.test.ts#L88
AssertionError: expected { Object (obj, value, ...) } to be { Object (obj, value, ...) } // Object.is equality If it should pass with deep equality, replace "toBe" with "toStrictEqual" Expected: { Object (obj, value, ...) } Received: serializes to the same string Compared values have no visual difference. ❯ test/cases/global/core/chat/utils.test.ts:88:51
test/cases/global/core/chat/utils.test.ts > transformPreviewHistories > should transform histories correctly with responseDetail=true: test/cases/global/core/chat/utils.test.ts#L34
AssertionError: expected { Object (obj, value, ...) } to deeply equal { Object (obj, value, ...) } - Expected + Received @@ -1,11 +1,9 @@ { - "historyPreviewLength": undefined, "llmModuleAccount": 1, "obj": "AI", "responseData": undefined, - "totalQuoteList": [], "value": [ { "text": { "content": "test response", }, ❯ test/cases/global/core/chat/utils.test.ts:34:23
test
Couldn't write a comment to the pull request. Please make sure your job has the permission 'pull-requests: write'. Original Error was: [HttpError] - Resource not accessible by integration - https://docs.github.com/rest/issues/comments#create-an-issue-comment