From 52c8d6f7b409b8768bcbd1309285e4a54834110b Mon Sep 17 00:00:00 2001 From: jnjpng Date: Wed, 28 Jan 2026 15:01:03 -0800 Subject: [PATCH] refactor: use constants for system-reminder tags (#728) --- src/cli/components/UserMessageRich.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cli/components/UserMessageRich.tsx b/src/cli/components/UserMessageRich.tsx index 594fca3..de7418b 100644 --- a/src/cli/components/UserMessageRich.tsx +++ b/src/cli/components/UserMessageRich.tsx @@ -1,6 +1,7 @@ import { Text } from "ink"; import { memo } from "react"; import stringWidth from "string-width"; +import { SYSTEM_REMINDER_CLOSE, SYSTEM_REMINDER_OPEN } from "../../constants"; import { useTerminalWidth } from "../hooks/useTerminalWidth"; import { colors, hexToBgAnsi, hexToFgAnsi } from "./colors"; @@ -51,8 +52,8 @@ function splitSystemReminderBlocks( text: string, ): Array<{ text: string; isSystemReminder: boolean }> { const blocks: Array<{ text: string; isSystemReminder: boolean }> = []; - const tagOpen = ""; - const tagClose = ""; + const tagOpen = SYSTEM_REMINDER_OPEN; + const tagClose = SYSTEM_REMINDER_CLOSE; let remaining = text;