feat(server): allow chat session dangling & pin session support (#12849)

fix AI-181
fix AI-179
fix AI-178
fix PD-2682
fix PD-2683
This commit is contained in:
DarkSky
2025-06-19 13:17:01 +08:00
committed by GitHub
parent d80bfac1d2
commit bd04930560
28 changed files with 1422 additions and 394 deletions
+13 -2
View File
@@ -241,6 +241,7 @@ type CopilotHistories {
action: String
createdAt: DateTime!
messages: [ChatMessage!]!
pinned: Boolean!
sessionId: String!
"""The number of tokens used in the session"""
@@ -332,10 +333,12 @@ type CopilotQuota {
}
type CopilotSessionType {
docId: String
id: ID!
model: String!
optionalModels: [String!]!
parentSessionId: ID
pinned: Boolean!
promptName: String!
}
@@ -386,7 +389,8 @@ input CreateChatMessageInput {
}
input CreateChatSessionInput {
docId: String!
docId: String
pinned: Boolean
"""The prompt name to use for the session"""
promptName: String!
@@ -570,6 +574,7 @@ enum ErrorNames {
COPILOT_PROVIDER_SIDE_ERROR
COPILOT_QUOTA_EXCEEDED
COPILOT_SESSION_DELETED
COPILOT_SESSION_INVALID_INPUT
COPILOT_SESSION_NOT_FOUND
COPILOT_TRANSCRIPTION_AUDIO_NOT_PROVIDED
COPILOT_TRANSCRIPTION_JOB_EXISTS
@@ -1751,8 +1756,14 @@ input UpdateAppConfigInput {
}
input UpdateChatSessionInput {
"""The workspace id of the session"""
docId: String
"""Whether to pin the session"""
pinned: Boolean
"""The prompt name to use for the session"""
promptName: String!
promptName: String
sessionId: String!
}