feat(cursor): sync local conversation history to Cursor transcripts

Project sidecar context history into Cursor-compatible JSONL transcripts so previous conversations remain readable when referenced from new chats. Backfill existing sessions on startup and preserve Cursor-managed turn status entries during atomic updates.
This commit is contained in:
DedSecer
2026-08-01 21:08:14 +08:00
parent 00f52166b2
commit 68e63c7a72
6 changed files with 749 additions and 1 deletions
+3
View File
@@ -260,6 +260,9 @@ func applyRunRewindMetadata(conversation *ConversationFile, source *Conversation
conversation.ParentConversationID = strings.TrimSpace(source.ParentConversationID)
conversation.ParentToolCallID = strings.TrimSpace(source.ParentToolCallID)
conversation.SubagentTypeName = strings.TrimSpace(source.SubagentTypeName)
if folder := normalizeAgentTranscriptsFolder(source.AgentTranscriptsFolder); folder != "" {
conversation.AgentTranscriptsFolder = folder
}
if strings.TrimSpace(source.Mode) != "" {
conversation.Mode = strings.TrimSpace(source.Mode)
}