Update dashboard, memory, root (~6)

This commit is contained in:
Echo
2026-02-02 12:47:34 +00:00
parent 9d080a099e
commit 170c65f579
6 changed files with 352 additions and 78 deletions

View File

@@ -192,11 +192,15 @@ class TaskBoardHandler(SimpleHTTPRequestHandler):
).stdout.strip()
# Parse uncommitted into structured format
# Format: XY PATH where XY is 2 chars (index + working tree status)
# Examples: "M file" (staged), " M file" (unstaged), "?? file" (untracked)
uncommitted_parsed = []
for line in uncommitted:
if len(line) >= 3:
status = line[:2].strip()
filepath = line[3:].strip()
# Path starts at position 3 for most cases, but we use lstrip
# to handle edge cases where there's no separator space
filepath = line[2:].lstrip().strip()
uncommitted_parsed.append({'status': status, 'path': filepath})
self.send_json({