MCPcopy Index your code
hub / github.com/anomalyco/opencode / commentInReview

Function commentInReview

packages/app/src/components/prompt-input.tsx:272–279  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

270 }).activeFileTab
271
272 const commentInReview = (path: string) => {
273 const sessionID = props.controls.session.id
274 if (!sessionID) return false
275
276 const diffs = sync().data.session_diff[sessionID]
277 if (!diffs) return false
278 return diffs.some((diff) => diff.file === path)
279 }
280
281 const openComment = (item: { path: string; commentID?: string; commentOrigin?: "review" | "file" }) => {
282 if (!item.commentID) return

Callers 1

openCommentFunction · 0.85

Calls 1

syncFunction · 0.50

Tested by

no test coverage detected