Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions packages/types/src/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,6 @@ export const clineMessageSchema = z.object({
isProtected: z.boolean().optional(),
apiProtocol: z.union([z.literal("openai"), z.literal("anthropic")]).optional(),
isAnswered: z.boolean().optional(),
metadata: z
.object({
gpt5: z
.object({
previous_response_id: z.string().optional(),
})
.optional(),
})
.optional(),
})

export type ClineMessage = z.infer<typeof clineMessageSchema>
Expand Down
23 changes: 10 additions & 13 deletions src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,20 @@ export interface SingleCompletionHandler {
}

export interface ApiHandlerCreateMessageMetadata {
mode?: string
taskId: string
previousResponseId?: string
/**
* When true, the provider must NOT fall back to internal continuity state
* (e.g., lastResponseId) if previousResponseId is absent.
* Used to enforce "skip once" after a condense operation.
* Task ID used for tracking and provider-specific features:
* - DeepInfra: Used as prompt_cache_key for caching
* - Roo: Sent as X-Roo-Task-ID header
* - Requesty: Sent as trace_id
* - Unbound: Sent in unbound_metadata
*/
suppressPreviousResponseId?: boolean
taskId: string
/**
* Controls whether the response should be stored for 30 days in OpenAI's Responses API.
* When true (default), responses are stored and can be referenced in future requests
* using the previous_response_id for efficient conversation continuity.
* Set to false to opt out of response storage for privacy or compliance reasons.
* @default true
* Current mode slug for provider-specific tracking:
* - Requesty: Sent in extra metadata
* - Unbound: Sent in unbound_metadata
*/
store?: boolean
mode?: string
}

export interface ApiHandler {
Expand Down
Loading