Merge branch 'message-format-migration' of https://github.com/continuedev/continue into message-format-migration
This commit is contained in:
commit
961050f35f
3 changed files with 3 additions and 3 deletions
|
|
@ -198,7 +198,7 @@ export function loadSession(): Session | null {
|
|||
|
||||
const files = fs
|
||||
.readdirSync(sessionDir)
|
||||
.filter((f) => f.endsWith(".json") && !f.includes("sessions-list"))
|
||||
.filter((f) => f.endsWith(".json") && f !== "sessions.json")
|
||||
.map((f) => ({
|
||||
name: f,
|
||||
path: path.join(sessionDir, f),
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ export const MemoizedMessage = memo<MemoizedMessageProps>(
|
|||
<Box marginLeft={1} marginBottom={1}>
|
||||
<Text color="white">●</Text>
|
||||
<Text> </Text>
|
||||
<MarkdownRenderer content={message.content as string} />
|
||||
<MarkdownRenderer content={typeof message.content === "string" ? message.content : JSON.stringify(message.content)} />
|
||||
</Box>
|
||||
)}
|
||||
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ export function useSelectors(
|
|||
setChatHistory((prev) => [
|
||||
...prev,
|
||||
{
|
||||
message: { role: "system", content: message.content },
|
||||
message: { role: message.role, content: message.content },
|
||||
contextItems: [],
|
||||
},
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue