refactor: centralize tool status symbols in constants (#7054)

This commit is contained in:
Arya Gummadi
2025-08-27 07:54:32 -07:00
committed by GitHub
parent 83a40ff9d4
commit 4c3ec1f0cc
3 changed files with 28 additions and 14 deletions

View File

@@ -19,3 +19,13 @@ export const SHELL_COMMAND_NAME = 'Shell Command';
export const SCREEN_READER_USER_PREFIX = 'User: ';
export const SCREEN_READER_MODEL_PREFIX = 'Model: ';
// Tool status symbols used in ToolMessage component
export const TOOL_STATUS = {
SUCCESS: '✓',
PENDING: 'o',
EXECUTING: '⊷',
CONFIRMING: '?',
CANCELED: '-',
ERROR: 'x',
} as const;