mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 04:30:48 +00:00
Make console message support more robust to logging in the middle of rendering. (#521)
This commit is contained in:
parent
7a3a9066f9
commit
1c3d9d7623
6 changed files with 313 additions and 16 deletions
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue