[codex] Add visual draw annotation context (#1547)

* feat(web): add visual draw annotation context

* Fix visual draw annotation staging

* Fix concurrent visual annotation IDs
This commit is contained in:
Caprika
2026-05-13 20:02:19 +08:00
committed by GitHub
parent fb545b8d21
commit a3276ec542
14 changed files with 623 additions and 65 deletions
+6 -1
View File
@@ -3,10 +3,12 @@ import type {
PreviewCommentMember,
PreviewCommentPosition,
PreviewCommentSelectionKind,
PreviewVisualMarkKind,
} from './comments';
import type { ResearchOptions } from './research';
export type ChatRole = 'user' | 'assistant';
export type ChatCommentSelectionKind = PreviewCommentSelectionKind | 'visual';
export interface ChatRequest {
agentId: string;
@@ -107,9 +109,12 @@ export interface ChatCommentAttachment {
currentText: string;
pagePosition: PreviewCommentPosition;
htmlHint: string;
selectionKind?: PreviewCommentSelectionKind;
selectionKind?: ChatCommentSelectionKind;
memberCount?: number;
podMembers?: PreviewCommentMember[];
screenshotPath?: string;
markKind?: PreviewVisualMarkKind;
intent?: string;
source?: 'saved-comment' | 'board-batch';
}
+1
View File
@@ -16,6 +16,7 @@ export interface PreviewCommentPosition {
}
export type PreviewCommentSelectionKind = 'element' | 'pod';
export type PreviewVisualMarkKind = 'click' | 'stroke' | 'click+stroke';
export interface PreviewCommentMember {
elementId: string;