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

fix(ui): inline delete for history/runs instead of full page reload

Adam Eivy2aeefa938c20
diff --git a/CLAUDE.md b/CLAUDE.md
index 2c9dcda256..47b721af55 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -81,6 +81,7 @@ When CoS agents or AI tools work on managed apps outside PortOS, all research, p
- **Command allowlist** - shell execution restricted to approved commands only
- **No hardcoded localhost** - use `window.location.hostname` for URLs; app accessed via Tailscale remotely
- **Alphabetical navigation** - sidebar nav items in `Layout.jsx` are alphabetically ordered after the Dashboard+CyberCity top section and separator; children within collapsible sections are also alphabetical
+- **Reactive UI updates** - after mutations (delete, create, update), update local state directly instead of refetching the entire list from the server. Use `setState(prev => prev.filter(...))` or similar patterns for immediate feedback
- **Single-line logging** - use emoji prefixes and string interpolation, never log full JSON blobs or arrays
```js
console.log(`🚀 Server started on port ${PORT}`);
diff --git a/client/src/pages/DevTools.jsx b/client/src/pages/DevTools.jsx
index 5622ef3bd5..a021f728b4 100644
--- a/client/src/pages/DevTools.jsx
+++ b/client/src/pages/DevTools.jsx
@@ -48,7 +48,8 @@ export function HistoryPage() {
const handleDelete = async (id, e) => {
e.stopPropagation();
await api.deleteHistoryEntry(id);
- loadData();
+ setHistory(prev => prev.filter(entry => entry.id !== id));
+ if (expandedId === id) setExpandedId(null);
};
const getActionIcon = (action) => {
@@ -342,7 +343,8 @@ export function RunsHistoryPage() {
const handleDelete = async (id, e) => {
e.stopPropagation();
await api.deleteRun(id);
- loadRuns();
+ setRuns(prev => prev.filter(run => run.id !== id));
+ if (expandedId === id) setExpandedId(null);
};
const toggleExpand = async (id) => {
@@ -438,7 +440,7 @@ export function RunsHistoryPage() {
const handleClearFailed = async () => {
const result = await api.deleteFailedRuns().catch(() => null);
if (result) {
- loadRuns();
+ setRuns(prev => prev.filter(r => r.success !== false));
}
};