chore: format

This commit is contained in:
Nate 2025-08-26 10:37:19 -07:00
parent d631b5c7ed
commit 48159eecce
2 changed files with 11 additions and 3 deletions

View file

@ -86,10 +86,12 @@ function getCurrentSessionId(): string {
/**
* Save session to file
*/
export function saveSession(sessionOrHistory: Session | ChatHistoryItem[]): void {
export function saveSession(
sessionOrHistory: Session | ChatHistoryItem[],
): void {
try {
let session: Session;
// Handle both Session objects and ChatHistoryItem[] arrays
if (Array.isArray(sessionOrHistory)) {
// If it's a ChatHistoryItem array, create/update the session

View file

@ -61,7 +61,13 @@ export const MemoizedMessage = memo<MemoizedMessageProps>(
<Box marginLeft={1} marginBottom={1}>
<Text color="white">●</Text>
<Text> </Text>
<MarkdownRenderer content={typeof message.content === "string" ? message.content : JSON.stringify(message.content)} />
<MarkdownRenderer
content={
typeof message.content === "string"
? message.content
: JSON.stringify(message.content)
}
/>
</Box>
)}