Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

refactor: code quality improvements

Adam Eivy96aa6057420a
diff --git a/client/src/components/AppTile.jsx b/client/src/components/AppTile.jsx
index 54050298b4..b509bac315 100644
--- a/client/src/components/AppTile.jsx
+++ b/client/src/components/AppTile.jsx
@@ -32,7 +32,6 @@ export default function AppTile({ app, onUpdate }) {
};
const isOnline = app.overallStatus === 'online';
- const isStopped = app.overallStatus === 'stopped';
return (
<div className="bg-port-card border border-port-border rounded-xl p-5 hover:border-port-accent/50 transition-colors">
@@ -83,7 +82,7 @@ export default function AppTile({ app, onUpdate }) {
</a>
)}
- {/* Start/Stop/Restart */}
+ {/* Start button for non-online states (stopped, not_started, not_found, etc) */}
{!isOnline && (
<button
onClick={() => handleAction('start')}
@@ -94,6 +93,7 @@ export default function AppTile({ app, onUpdate }) {
</button>
)}
+ {/* Restart/Stop buttons for online apps */}
{isOnline && (
<>
<button
@@ -112,16 +112,6 @@ export default function AppTile({ app, onUpdate }) {
</button>
</>
)}
-
- {isStopped && (
- <button
- onClick={() => handleAction('start')}
- disabled={loading === 'start'}
- className="px-3 py-1.5 text-sm rounded-lg bg-port-success hover:bg-port-success/80 text-white transition-colors disabled:opacity-50"
- >
- {loading === 'start' ? '...' : 'Start'}
- </button>
- )}
</div>
</div>
);
diff --git a/client/src/services/socket.js b/client/src/services/socket.js
index 8774a6357e..64c5f16921 100644
--- a/client/src/services/socket.js
+++ b/client/src/services/socket.js
@@ -12,15 +12,15 @@ const socket = io({
});
socket.on('connect', () => {
- console.log('Socket connected:', socket.id);
+ // Connection established
});
-socket.on('disconnect', (reason) => {
- console.log('Socket disconnected:', reason);
+socket.on('disconnect', () => {
+ // Connection lost - Socket.IO will attempt reconnection automatically
});
-socket.on('connect_error', (error) => {
- console.error('Socket connection error:', error.message);
+socket.on('connect_error', () => {
+ // Connection error - Socket.IO will retry automatically
});
export default socket;
diff --git a/server/services/memory.js b/server/services/memory.js
index 9ae86e5b19..e791c7867f 100644
--- a/server/services/memory.js
+++ b/server/services/memory.js
@@ -152,8 +152,8 @@ async function deleteMemoryFiles(id) {
}
/**
- * Generate summary from content (simple truncation for now)
- * TODO: Use LLM for better summaries
+ * Generate summary from content using simple truncation
+ * Note: LLM-based summaries could improve quality but add latency and cost
*/
function generateSummary(content, maxLength = 150) {
if (content.length <= maxLength) return content;