mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
fix(agent-manager): remove redundant terminal comments cast
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user