Merge pull request #8 from zumayaaustin-creator/claude/agentic-os-setup-5ubuao

Fix UnicodeDecodeError serving dashboard on Windows
This commit is contained in:
zumayaaustin-creator 2026-07-05 13:38:09 -07:00 committed by GitHub
commit cf254b7b99
1 changed files with 1 additions and 1 deletions

View File

@ -1251,7 +1251,7 @@ if dashboard_dir.exists():
def index():
html_file = BASE_DIR / "dashboard" / "index.html"
if html_file.exists():
content = html_file.read_text()
content = html_file.read_text(encoding="utf-8")
content = content.replace('href="styles.css"', 'href="/dashboard/styles.css"')
content = content.replace('src="utils.js"', 'src="/dashboard/utils.js"')
content = content.replace('src="api.js"', 'src="/dashboard/api.js"')