Skip to content

Commit f6de234

Browse files
committed
fix(web): review-comment markdown skill chips can view instructions
1 parent c1b9611 commit f6de234

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎apps/web/src/components/ChatMarkdown.browser.test.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,6 @@ describe("ChatMarkdown skill chips", () => {
268268
environmentId: EnvironmentId.make("workspace"),
269269
threadId: ThreadId.make("thread"),
270270
};
271-
using openFile = vi
272-
.spyOn(useRightPanelStore.getState(), "openFile")
273-
.mockImplementation(() => {});
274271
await using screen = await renderText("Run $review now", {
275272
threadRef,
276273
skills: [
@@ -283,6 +280,9 @@ describe("ChatMarkdown skill chips", () => {
283280
},
284281
],
285282
});
283+
using openFile = vi
284+
.spyOn(useRightPanelStore.getState(), "openFile")
285+
.mockImplementation(() => {});
286286

287287
await userEvent.click(screen.getByRole("button", { name: "Skill Review. Show details" }));
288288
await expect.element(page.getByText("Reviews the current branch.")).toBeVisible();

‎apps/web/src/components/chat/UserMessageContextChips.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ function UserMessageReviewCommentCard({ comment }: { comment: ReviewCommentConte
554554
<ChatMarkdown
555555
text={comment.text}
556556
cwd={ctx.markdownCwd}
557+
threadRef={ctx.threadRef ?? undefined}
557558
skills={ctx.skills}
558559
parseRawHtml={false}
559560
lineBreaks

0 commit comments

Comments
 (0)