mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
Make console message support more robust to logging in the middle of rendering. (#521)
This commit is contained in:
@@ -40,6 +40,7 @@ export const useConsolePatcher = ({
|
||||
onNewMessage({
|
||||
type,
|
||||
content: formatArgs(args),
|
||||
count: 1,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -64,6 +64,9 @@ export const DetailedMessagesDisplay: React.FC<
|
||||
<Text color={textColor}>{icon} </Text>
|
||||
<Text color={textColor} wrap="wrap">
|
||||
{msg.content}
|
||||
{msg.count && msg.count > 1 && (
|
||||
<Text color={Colors.SubtleComment}> (x{msg.count})</Text>
|
||||
)}
|
||||
</Text>
|
||||
</Box>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user