From a5c058e584dce24c47af5a88f6c83b69d79211d2 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sun, 25 Jan 2026 12:05:15 +0000 Subject: [PATCH 01/26] ignore: update download stats 2026-01-25 --- STATS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/STATS.md b/STATS.md index 6ecb1606b26..a8be3156512 100644 --- a/STATS.md +++ b/STATS.md @@ -210,3 +210,4 @@ | 2026-01-22 | 5,766,340 (+321,498) | 2,029,487 (+66,956) | 7,795,827 (+388,454) | | 2026-01-23 | 6,096,236 (+329,896) | 2,096,235 (+66,748) | 8,192,471 (+396,644) | | 2026-01-24 | 6,371,019 (+274,783) | 2,156,870 (+60,635) | 8,527,889 (+335,418) | +| 2026-01-25 | 6,639,082 (+268,063) | 2,187,853 (+30,983) | 8,826,935 (+299,046) | From ddc4e893598b7aeb54d8476e97332ab97c02002f Mon Sep 17 00:00:00 2001 From: adamelmore <2363879+adamdottv@users.noreply.github.com> Date: Sun, 25 Jan 2026 06:20:44 -0600 Subject: [PATCH 02/26] fix(app): cleanup comment component usage --- packages/app/src/pages/session.tsx | 114 ++++-------------- packages/ui/src/components/line-comment.css | 61 ++++++++++ packages/ui/src/components/line-comment.tsx | 105 +++++++++++++++- packages/ui/src/components/session-review.css | 62 ---------- packages/ui/src/components/session-review.tsx | 94 +++------------ 5 files changed, 207 insertions(+), 229 deletions(-) diff --git a/packages/app/src/pages/session.tsx b/packages/app/src/pages/session.tsx index 38717317df5..a14b6bcf6fe 100644 --- a/packages/app/src/pages/session.tsx +++ b/packages/app/src/pages/session.tsx @@ -15,7 +15,7 @@ import { DiffChanges } from "@opencode-ai/ui/diff-changes" import { ResizeHandle } from "@opencode-ai/ui/resize-handle" import { Tabs } from "@opencode-ai/ui/tabs" import { useCodeComponent } from "@opencode-ai/ui/context/code" -import { LineCommentAnchor } from "@opencode-ai/ui/line-comment" +import { LineComment as LineCommentView, LineCommentEditor } from "@opencode-ai/ui/line-comment" import { SessionTurn } from "@opencode-ai/ui/session-turn" import { createAutoScroll } from "@opencode-ai/ui/hooks" import { SessionReview } from "@opencode-ai/ui/session-review" @@ -1885,7 +1885,6 @@ export default function Page() { }) let wrap: HTMLDivElement | undefined - let textarea: HTMLTextAreaElement | undefined const fileComments = createMemo(() => { const p = path() @@ -1898,7 +1897,6 @@ export default function Page() { const [openedComment, setOpenedComment] = createSignal(null) const [commenting, setCommenting] = createSignal(null) const [draft, setDraft] = createSignal("") - const [draftError, setDraftError] = createSignal(false) const [positions, setPositions] = createSignal>({}) const [draftTop, setDraftTop] = createSignal(undefined) @@ -1986,7 +1984,6 @@ export default function Page() { const range = commenting() if (!range) return setDraft("") - requestAnimationFrame(() => textarea?.focus()) }) createEffect(() => { @@ -2047,7 +2044,7 @@ export default function Page() { /> {(comment) => ( - (current === comment.id ? null : comment.id)) file.setSelectedLines(p, comment.selection) }} - > -
-
- {comment.comment} -
-
- Comment on {commentLabel(comment.selection)} -
-
-
+ comment={comment.comment} + selection={commentLabel(comment.selection)} + /> )}
{(range) => ( - textarea?.focus()} + value={draft()} + selection={commentLabel(range())} + onInput={setDraft} + onCancel={() => setCommenting(null)} + onSubmit={(comment) => { + const p = path() + if (!p) return + addCommentToContext({ + file: p, + selection: range(), + comment, + origin: "file", + }) + setCommenting(null) + }} onPopoverFocusOut={(e) => { const target = e.relatedTarget as Node | null if (target && e.currentTarget.contains(target)) return @@ -2093,79 +2095,7 @@ export default function Page() { } }, 0) }} - > -
-