Compare commits
2 Commits
fix/1470
...
mimo/code/
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c833d503e2 | ||
|
|
1b9c1a56f2 |
2
app.js
2
app.js
@@ -57,7 +57,7 @@ let performanceTier = 'high';
|
|||||||
|
|
||||||
/** Escape HTML entities for safe innerHTML insertion. */
|
/** Escape HTML entities for safe innerHTML insertion. */
|
||||||
function escHtml(s) {
|
function escHtml(s) {
|
||||||
return String(s).replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"');
|
return String(s).replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/'/g,''');
|
||||||
}
|
}
|
||||||
|
|
||||||
// ═══ HERMES WS STATE ═══
|
// ═══ HERMES WS STATE ═══
|
||||||
|
|||||||
10
server.py
10
server.py
@@ -103,11 +103,13 @@ async def main():
|
|||||||
await stop
|
await stop
|
||||||
|
|
||||||
logger.info("Shutting down Nexus WS gateway...")
|
logger.info("Shutting down Nexus WS gateway...")
|
||||||
# Close all client connections
|
# Close any remaining client connections (handlers may have already cleaned up)
|
||||||
if clients:
|
remaining = {c for c in clients if c.open}
|
||||||
logger.info(f"Closing {len(clients)} active connections...")
|
if remaining:
|
||||||
close_tasks = [client.close() for client in clients]
|
logger.info(f"Closing {len(remaining)} active connections...")
|
||||||
|
close_tasks = [client.close() for client in remaining]
|
||||||
await asyncio.gather(*close_tasks, return_exceptions=True)
|
await asyncio.gather(*close_tasks, return_exceptions=True)
|
||||||
|
clients.clear()
|
||||||
|
|
||||||
logger.info("Shutdown complete.")
|
logger.info("Shutdown complete.")
|
||||||
|
|
||||||
|
|||||||
22
style.css
22
style.css
@@ -1346,6 +1346,22 @@ canvas#nexus-canvas {
|
|||||||
width: 240px;
|
width: 240px;
|
||||||
bottom: 180px;
|
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) {
|
@media (max-width: 768px) {
|
||||||
@@ -1357,6 +1373,12 @@ canvas#nexus-canvas {
|
|||||||
.hud-agent-log {
|
.hud-agent-log {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
.gofai-hud {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.memory-feed {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
.hud-location {
|
.hud-location {
|
||||||
font-size: var(--text-xs);
|
font-size: var(--text-xs);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user