MCPcopy
hub / github.com/OpenCoworkAI/open-codesign / updateSessionComment

Function updateSessionComment

apps/desktop/src/main/session-chat.ts:420–430  ·  view source on GitHub ↗
(
  opts: SessionChatStoreOptions,
  designId: string,
  id: string,
  patch: CommentUpdateInput,
)

Source from the content-addressed store, hash-verified

418}
419
420export function updateSessionComment(
421 opts: SessionChatStoreOptions,
422 designId: string,
423 id: string,
424 patch: CommentUpdateInput,
425): CommentRow | null {
426 const existing = listSessionComments(opts, designId).find((row) => row.id === id);
427 if (existing === undefined) return null;
428 appendCommentEvent(opts, designId, { schemaVersion: 1, action: 'update', id, patch });
429 return { ...existing, ...patch };
430}
431
432export function removeSessionComment(
433 opts: SessionChatStoreOptions,

Callers 2

registerSnapshotsIpcFunction · 0.90

Calls 2

listSessionCommentsFunction · 0.85
appendCommentEventFunction · 0.85

Tested by

no test coverage detected