feat: improve gateway compatibility and complete i18n cleanup

This commit is contained in:
晴天
2026-04-01 15:06:25 +08:00
parent 57b8b25946
commit b427a6b000
59 changed files with 6830 additions and 964 deletions

View File

@@ -236,7 +236,7 @@ async function saveFile(page, state) {
if (!state.currentPath) return
const content = page.querySelector('#file-editor').value
try {
await api.writeMemoryFile(state.currentPath, content, null, state.agentId)
await api.writeMemoryFile(state.currentPath, content, state.category, state.agentId)
toast(t('memory.fileSaved'), 'success')
} catch (e) {
toast(t('memory.saveFailed') + ': ' + e, 'error')