fix: Todo-Liste parst nur letzte ID korrekt (\r\n-Problem)

Backend: sb.AppendLine() durch sb.Append()+\n ersetzt für
konsistente Zeilenenden auf allen Plattformen.

Frontend: \r defensiv entfernen vor Regex-Matching, da
JS-Regex (.+)$ kein \r matcht und nur letzte Zeile geparsed wurde.
This commit is contained in:
Meleki committed 2026-03-09 18:53:25 +01:00
1 parent d6d7b6c04f
commit fa947c82ed
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -197,7 +197,7 @@ function buildTodoList(result, isError) {
const container = document.createElement('div');
container.className = 'todo-list' + (isError ? ' tool-error' : '');
const lines = result.split('\n').filter(l => l.trim());
const lines = result.split('\n').map(l => l.replace(/\r$/, '')).filter(l => l.trim());
for (const line of lines) {
// Format: ICON [id] [priority] content
const m = line.match(/^(\S+)\s+\[([^\]]+)\]\s+(?:\[([^\]]+)\]\s+)?(.+)$/);