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

Function removeSessionComment

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

Source from the content-addressed store, hash-verified

430}
431
432export function removeSessionComment(
433 opts: SessionChatStoreOptions,
434 designId: string,
435 id: string,
436): boolean {
437 const exists = listSessionComments(opts, designId).some((row) => row.id === id);
438 if (!exists) return false;
439 appendCommentEvent(opts, designId, { schemaVersion: 1, action: 'remove', id });
440 return true;
441}
442
443export function markSessionCommentsApplied(
444 opts: SessionChatStoreOptions,

Callers 2

registerSnapshotsIpcFunction · 0.90

Calls 2

listSessionCommentsFunction · 0.85
appendCommentEventFunction · 0.85

Tested by

no test coverage detected