feat(server): add pinned & action filter for session query (#12876)

fix AI-222
This commit is contained in:
DarkSky
2025-06-20 16:31:04 +08:00
committed by GitHub
parent fb250c6374
commit c7113b0195
7 changed files with 115 additions and 151 deletions
+5 -3
View File
@@ -145,9 +145,6 @@ type Copilot {
"""Get the session by id"""
session(sessionId: String!): CopilotSessionType!
"""Get the session id list in the workspace"""
sessionIds(docId: String, options: QueryChatSessionsInput): [String!]! @deprecated(reason: "Use `sessions` instead")
"""Get the session list in the workspace"""
sessions(docId: String, options: QueryChatSessionsInput): [CopilotSessionType!]!
workspaceId: ID
@@ -1440,6 +1437,7 @@ input QueryChatHistoriesInput {
fork: Boolean
limit: Int
messageOrder: ChatHistoryOrder
pinned: Boolean
sessionId: String
sessionOrder: ChatHistoryOrder
skip: Int
@@ -1448,6 +1446,10 @@ input QueryChatHistoriesInput {
input QueryChatSessionsInput {
action: Boolean
fork: Boolean
limit: Int
pinned: Boolean
skip: Int
}
type QueryTooLongDataType {