Merge pull request #7554 from paperclipai/codex/pap-10343-comment-redaction

[codex] Redact deleted issue comments
This commit is contained in:
Dotta
2026-06-05 05:32:08 -10:00
committed by GitHub
30 changed files with 40631 additions and 98 deletions
@@ -93,6 +93,7 @@ export interface DocumentAnnotationComment {
authorAgentId: string | null;
authorUserId: string | null;
createdByRunId: string | null;
issueCommentId?: string | null;
createdAt: Date;
updatedAt: Date;
}
@@ -123,10 +124,12 @@ export interface CreateDocumentAnnotationThreadRequest {
baseRevisionNumber: number;
selector: DocumentAnnotationAnchorSelector;
body: string;
issueCommentId?: string | null;
}
export interface CreateDocumentAnnotationCommentRequest {
body: string;
issueCommentId?: string | null;
}
export interface UpdateDocumentAnnotationThreadRequest {
+5
View File
@@ -579,6 +579,11 @@ export interface IssueComment {
body: string;
presentation: IssueCommentPresentation | null;
metadata: IssueCommentMetadata | null;
deletedAt?: Date | null;
deletedByType?: "agent" | "user" | null;
deletedByAgentId?: string | null;
deletedByUserId?: string | null;
deletedByRunId?: string | null;
followUpRequested?: boolean;
createdAt: Date;
updatedAt: Date;
@@ -48,10 +48,12 @@ export const createDocumentAnnotationThreadSchema = z.object({
baseRevisionNumber: z.number().int().positive(),
selector: documentAnnotationAnchorSelectorSchema,
body: multilineTextSchema.pipe(z.string().min(1).max(20_000)),
issueCommentId: z.string().uuid().nullable().optional(),
}).strict();
export const createDocumentAnnotationCommentSchema = z.object({
body: multilineTextSchema.pipe(z.string().min(1).max(20_000)),
issueCommentId: z.string().uuid().nullable().optional(),
}).strict();
export const updateDocumentAnnotationThreadSchema = z.object({