Compare commits

...

2 Commits

Author SHA1 Message Date
Alexander Whitestone
c833d503e2 fix: tighten GOFAI HUD and memory feed for laptop viewports (#704)
Some checks failed
CI / test (pull_request) Failing after 18s
CI / validate (pull_request) Failing after 17s
Review Approval Gate / verify-review (pull_request) Failing after 4s
At 1024px: shrink GOFAI panels (280→220px), reduce padding/gap,
collapse panel content height, and narrow memory feed (320→260px).
At 768px: hide GOFAI HUD and memory feed entirely to free canvas space.

Refs #704
2026-04-13 04:09:18 -04:00
Alexander Whitestone
1b9c1a56f2 fix: closes #704
Some checks failed
CI / test (pull_request) Failing after 19s
CI / validate (pull_request) Failing after 15s
Review Approval Gate / verify-review (pull_request) Failing after 3s
2026-04-13 04:06:38 -04:00
3 changed files with 29 additions and 5 deletions

2
app.js
View File

@@ -57,7 +57,7 @@ let performanceTier = 'high';
/** Escape HTML entities for safe innerHTML insertion. */
function escHtml(s) {
return String(s).replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;');
return String(s).replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/'/g,'&#39;');
}
// ═══ HERMES WS STATE ═══

View File

@@ -103,11 +103,13 @@ async def main():
await stop
logger.info("Shutting down Nexus WS gateway...")
# Close all client connections
if clients:
logger.info(f"Closing {len(clients)} active connections...")
close_tasks = [client.close() for client in clients]
# Close any remaining client connections (handlers may have already cleaned up)
remaining = {c for c in clients if c.open}
if remaining:
logger.info(f"Closing {len(remaining)} active connections...")
close_tasks = [client.close() for client in remaining]
await asyncio.gather(*close_tasks, return_exceptions=True)
clients.clear()
logger.info("Shutdown complete.")

View File

@@ -1346,6 +1346,22 @@ canvas#nexus-canvas {
width: 240px;
bottom: 180px;
}
.gofai-hud {
left: 8px;
gap: 6px;
}
.hud-panel {
width: 220px;
padding: 6px;
}
.panel-content {
max-height: 80px;
}
.memory-feed {
width: 260px;
left: 8px;
bottom: 10px;
}
}
@media (max-width: 768px) {
@@ -1357,6 +1373,12 @@ canvas#nexus-canvas {
.hud-agent-log {
display: none;
}
.gofai-hud {
display: none;
}
.memory-feed {
display: none;
}
.hud-location {
font-size: var(--text-xs);
}