feat: update Makelore modules and conversations
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
inman
2026-07-31 10:08:41 +08:00
parent b8ca3f8eea
commit 80e8386fa6
175 changed files with 8036 additions and 10581 deletions

View File

@@ -28,6 +28,25 @@ describe('opencode message normalization', () => {
}));
});
it('normalizes provider reasoning, reasoning_content, and reasoning_text aliases', () => {
const messages = normalizeOpencodeSessionMessages([{
id: 'msg_reasoning_aliases',
role: 'assistant',
reasoning: 'first',
reasoning_content: 'second',
content: [
{ type: 'reasoning', reasoning_text: 'third' },
{ type: 'text', text: 'answer' },
],
}]);
expect(messages[0]?.content).toEqual([
{ type: 'thinking', thinking: 'first' },
{ type: 'thinking', thinking: 'third' },
{ type: 'text', text: 'answer' },
]);
});
it('surfaces a completed assistant message with no visible content as an error', () => {
const messages = normalizeOpencodeSessionMessages([
{