mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 16:25:51 +00:00
24 lines
688 B
TypeScript
24 lines
688 B
TypeScript
/**
|
|
* SnipBoundaryMessage — visual separator showing where conversation was snipped.
|
|
*/
|
|
import * as React from 'react';
|
|
import { Box, Text } from '@anthropic/ink';
|
|
import type { Message } from '../../types/message.js';
|
|
|
|
type Props = {
|
|
message: Message;
|
|
};
|
|
|
|
export function SnipBoundaryMessage({ message }: Props): React.ReactNode {
|
|
const content =
|
|
typeof (message as Record<string, unknown>).content === 'string'
|
|
? ((message as Record<string, unknown>).content as string)
|
|
: '[snip] Conversation history before this point has been snipped.';
|
|
|
|
return (
|
|
<Box marginTop={1} marginBottom={1}>
|
|
<Text dimColor>── {content} ──</Text>
|
|
</Box>
|
|
);
|
|
}
|