fix(agent-manager): remove redundant terminal comments cast

This commit is contained in:
marius-kilocode
2026-05-14 14:21:21 +02:00
parent da9292fbcc
commit 1daaa0a8de
@@ -20,7 +20,6 @@ import "@xterm/xterm/css/xterm.css"
import { useVSCode } from "../../src/context/vscode"
import { useLanguage } from "../../src/context/language"
import { formatReviewCommentsMarkdown } from "../../src/utils/review-comment-markdown"
import type { ReviewComment } from "../../src/types/messages"
interface Props {
terminalId: string
@@ -283,7 +282,7 @@ export const TerminalTab: Component<Props> = (props) => {
const fontSub = vscode.onMessage((message) => {
if (message.type === "appendReviewCommentsToTerminal") {
if (message.targetTerminalId !== props.terminalId) return
const comments = (message as { comments?: ReviewComment[] }).comments
const comments = message.comments
if (!Array.isArray(comments) || comments.length === 0) return
term.paste(`${formatReviewCommentsMarkdown(comments)}\n`)
return