MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / resolveFeedbackSubmission

Function resolveFeedbackSubmission

cli/src/utils/feedback-submission.ts:13–22  ·  view source on GitHub ↗
(
  activeClientFeedbackId: string | null,
  submittedClientFeedbackId: string,
)

Source from the content-addressed store, hash-verified

11 * - different active id => a newer feedback session exists; ignore stale result
12 */
13export function resolveFeedbackSubmission(
14 activeClientFeedbackId: string | null,
15 submittedClientFeedbackId: string,
16): FeedbackSubmissionResolution {
17 const isCurrentSubmission = activeClientFeedbackId === submittedClientFeedbackId
18 return {
19 isCurrentSubmission,
20 shouldSettleSubmission: isCurrentSubmission || activeClientFeedbackId === null,
21 }
22}

Callers 2

FeedbackContainerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected