diff --git a/app.py b/app.py index ba877de..25e91c0 100644 --- a/app.py +++ b/app.py @@ -2566,8 +2566,8 @@ def clear_history(): os.unlink(file_path) elif os.path.isdir(file_path): shutil.rmtree(file_path) - except Exception: - pass + except Exception as exc: + logger.warning("Failed to remove execution log entry %s: %s", file_path, exc) # Clear session logs if os.path.exists(SESSION_LOG_DIR): @@ -2578,8 +2578,8 @@ def clear_history(): os.unlink(file_path) elif os.path.isdir(file_path): shutil.rmtree(file_path) - except Exception: - pass + except Exception as exc: + logger.warning("Failed to remove session log entry %s: %s", file_path, exc) return jsonify({ 'success': True, diff --git a/ui/app.js b/ui/app.js index bf7725b..0b3b9b5 100644 --- a/ui/app.js +++ b/ui/app.js @@ -2153,12 +2153,59 @@ function updateProgressTrackerUI() { // ─── CLI Helpers ─── +function createTerminalEmptyState(message = 'Select a script or run a command to start streaming output.') { + const emptyState = document.createElement('div'); + emptyState.className = 'terminal-empty-state'; + emptyState.innerHTML = ` +
+