mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
fix: verify Cursor chat store before reopen (#1037)
* test: reproduce issue #841 * test: cover Cursor chat store discovery * fix: verify Cursor chat store before resume (closes #841) * test: preserve non-Cursor resume behavior * test: cover conservative Cursor resume gating * fix: gate Cursor reopen until store verification * test: cover legacy Cursor drawer fallback * fix: scan unique legacy Cursor store drawer * test: preserve raw Cursor workspace path hashing * fix: hash raw Cursor workspace path * test: pin Cursor probe owner and machine * fix: probe Cursor store on recorded owner * test: normalize Cursor probe owner home * fix: normalize Cursor probe owner home
This commit is contained in:
@@ -119,6 +119,13 @@ export const ReopenSessionMissingMetadataResponseSchema = z.object({
|
||||
|
||||
export type ReopenSessionMissingMetadataResponse = z.infer<typeof ReopenSessionMissingMetadataResponseSchema>
|
||||
|
||||
export const CursorChatStoreStatusSchema = z.object({
|
||||
onDisk: z.boolean(),
|
||||
store: z.enum(['legacy', 'acp']).nullable()
|
||||
})
|
||||
|
||||
export type CursorChatStoreStatus = z.infer<typeof CursorChatStoreStatusSchema>
|
||||
|
||||
export const SessionCollaborationModeRequestSchema = z.object({
|
||||
mode: CodexCollaborationModeSchema
|
||||
})
|
||||
|
||||
@@ -10,6 +10,7 @@ export const RPC_METHODS = {
|
||||
StopRunner: 'stop-runner',
|
||||
ListMachineDirectory: 'list-directory',
|
||||
PathExists: 'path-exists',
|
||||
CursorChatStoreStatus: 'cursor-chat-store-status',
|
||||
GitStatus: 'git-status',
|
||||
GitDiffNumstat: 'git-diff-numstat',
|
||||
GitDiffFile: 'git-diff-file',
|
||||
|
||||
Reference in New Issue
Block a user