message api respond sort #9722

Closed
opened 2026-02-21 18:38:11 -05:00 by yindo · 0 comments
Owner

Originally created by @marsDes on GitHub (Mar 6, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.0.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

send message by chat-messages api

{"inputs":{},"query":"111","conversation_id":"6ff16cac-108a-4f19-b1f7-e6570254fc43","response_mode":"streaming","user":"test","files":[]}
...
{"inputs":{},"query":"222","conversation_id":"6ff16cac-108a-4f19-b1f7-e6570254fc43","response_mode":"streaming","user":"test","files":[]},
{"inputs":{},"query":"333","conversation_id":"6ff16cac-108a-4f19-b1f7-e6570254fc43","response_mode":"streaming","user":"test","files":[]}

then get messages history by api or refresh webapp

✔️ Expected Behavior

retrun respon

{
    "limit": 2,
    "has_more": true,
    "data": [
        {
            "id": "f0429390-573c-42ba-a474-0a12e90b4d03",
            "conversation_id": "6ff16cac-108a-4f19-b1f7-e6570254fc43",
            "parent_message_id": "00000000-0000-0000-0000-000000000000",
            "inputs": {},
            "query": "111",
            "answer": "回复:111",
            "message_files": [],
            "feedback": null,
            "retriever_resources": [],
            "created_at": 1741318726,
            "agent_thoughts": [],
            "status": "normal",
            "error": null
        },
        {
            "id": "b9f17600-2b2f-4a78-ba0f-eb9e75aef0ed",
            "conversation_id": "6ff16cac-108a-4f19-b1f7-e6570254fc43",
            "parent_message_id": "00000000-0000-0000-0000-000000000000",
            "inputs": {},
            "query": "222",
            "answer": "回复:222",
            "message_files": [],
            "feedback": null,
            "retriever_resources": [],
            "created_at": 1741318717,
            "agent_thoughts": [],
            "status": "normal",
            "error": null
        }
    ]
}

Image

Actual Behavior

retrun respon

{
    "limit": 2,
    "has_more": true,
    "data": [
        {
            "id": "f0429390-573c-42ba-a474-0a12e90b4d03",
            "conversation_id": "6ff16cac-108a-4f19-b1f7-e6570254fc43",
            "parent_message_id": "00000000-0000-0000-0000-000000000000",
            "inputs": {},
            "query": "222",
            "answer": "回复:222",
            "message_files": [],
            "feedback": null,
            "retriever_resources": [],
            "created_at": 1741318726,
            "agent_thoughts": [],
            "status": "normal",
            "error": null
        },
        {
            "id": "b9f17600-2b2f-4a78-ba0f-eb9e75aef0ed",
            "conversation_id": "6ff16cac-108a-4f19-b1f7-e6570254fc43",
            "parent_message_id": "00000000-0000-0000-0000-000000000000",
            "inputs": {},
            "query": "111",
            "answer": "回复:111",
            "message_files": [],
            "feedback": null,
            "retriever_resources": [],
            "created_at": 1741318717,
            "agent_thoughts": [],
            "status": "normal",
            "error": null
        }
    ]
}

Image

Originally created by @marsDes on GitHub (Mar 6, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.0.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce send message by chat-messages api ``` {"inputs":{},"query":"111","conversation_id":"6ff16cac-108a-4f19-b1f7-e6570254fc43","response_mode":"streaming","user":"test","files":[]} ... {"inputs":{},"query":"222","conversation_id":"6ff16cac-108a-4f19-b1f7-e6570254fc43","response_mode":"streaming","user":"test","files":[]}, {"inputs":{},"query":"333","conversation_id":"6ff16cac-108a-4f19-b1f7-e6570254fc43","response_mode":"streaming","user":"test","files":[]} ``` then get messages history by api or refresh webapp ### ✔️ Expected Behavior retrun respon ``` { "limit": 2, "has_more": true, "data": [ { "id": "f0429390-573c-42ba-a474-0a12e90b4d03", "conversation_id": "6ff16cac-108a-4f19-b1f7-e6570254fc43", "parent_message_id": "00000000-0000-0000-0000-000000000000", "inputs": {}, "query": "111", "answer": "回复:111", "message_files": [], "feedback": null, "retriever_resources": [], "created_at": 1741318726, "agent_thoughts": [], "status": "normal", "error": null }, { "id": "b9f17600-2b2f-4a78-ba0f-eb9e75aef0ed", "conversation_id": "6ff16cac-108a-4f19-b1f7-e6570254fc43", "parent_message_id": "00000000-0000-0000-0000-000000000000", "inputs": {}, "query": "222", "answer": "回复:222", "message_files": [], "feedback": null, "retriever_resources": [], "created_at": 1741318717, "agent_thoughts": [], "status": "normal", "error": null } ] } ``` ![Image](https://github.com/user-attachments/assets/b71506d2-569f-4cc7-9358-b17b0903218a) ### ❌ Actual Behavior retrun respon ``` { "limit": 2, "has_more": true, "data": [ { "id": "f0429390-573c-42ba-a474-0a12e90b4d03", "conversation_id": "6ff16cac-108a-4f19-b1f7-e6570254fc43", "parent_message_id": "00000000-0000-0000-0000-000000000000", "inputs": {}, "query": "222", "answer": "回复:222", "message_files": [], "feedback": null, "retriever_resources": [], "created_at": 1741318726, "agent_thoughts": [], "status": "normal", "error": null }, { "id": "b9f17600-2b2f-4a78-ba0f-eb9e75aef0ed", "conversation_id": "6ff16cac-108a-4f19-b1f7-e6570254fc43", "parent_message_id": "00000000-0000-0000-0000-000000000000", "inputs": {}, "query": "111", "answer": "回复:111", "message_files": [], "feedback": null, "retriever_resources": [], "created_at": 1741318717, "agent_thoughts": [], "status": "normal", "error": null } ] } ``` ![Image](https://github.com/user-attachments/assets/654d0202-919b-437f-9e54-b7cec281c57b)
yindo added the 🐞 bug label 2026-02-21 18:38:11 -05:00
yindo closed this issue 2026-02-21 18:38:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#9722