Skip to content

Commit cc15fd4

Browse files
committed
fix(app): render question dock text as markdown
The question text in the dock was rendered as plain text, making plan content from plan_exit unreadable. Use the Markdown component to render it properly.
1 parent 3c371de commit cc15fd4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/app/src/pages/session/composer/session-question-dock.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useMutation } from "@tanstack/solid-query"
44
import { Button } from "@opencode-ai/ui/button"
55
import { DockPrompt } from "@opencode-ai/ui/dock-prompt"
66
import { Icon } from "@opencode-ai/ui/icon"
7+
import { Markdown } from "@opencode-ai/ui/markdown"
78
import { showToast } from "@opencode-ai/ui/toast"
89
import type { QuestionAnswer, QuestionRequest } from "@opencode-ai/sdk/v2"
910
import { useLanguage } from "@/context/language"
@@ -469,7 +470,9 @@ export const SessionQuestionDock: Component<{ request: QuestionRequest; onSubmit
469470
</>
470471
}
471472
>
472-
<div data-slot="question-text">{question()?.question}</div>
473+
<div data-slot="question-text">
474+
<Markdown text={question()?.question ?? ""} />
475+
</div>
473476
<Show when={multi()} fallback={<div data-slot="question-hint">{language.t("ui.question.singleHint")}</div>}>
474477
<div data-slot="question-hint">{language.t("ui.question.multiHint")}</div>
475478
</Show>

0 commit comments

Comments
 (0)