Merge dev to main: Security improvements and comprehensive test infrastructure #39

Merged
jimmy merged 195 commits from dev into main 2026-04-08 01:42:27 +08:00
2 changed files with 15 additions and 3 deletions
Showing only changes of commit 09acdcf868 - Show all commits
@@ -80,8 +80,9 @@ Only propose actions you can actually execute. Be specific and actionable."""
temperature = self.config.get("temperature", 0.7)
try:
headers = {}
if self.litellm_api_key:
headers = {"Content-Type": "application/json"}
# Only add auth header if API key is set and not empty
if self.litellm_api_key and self.litellm_api_key.strip():
headers["Authorization"] = f"Bearer {self.litellm_api_key}"
async with httpx.AsyncClient(timeout=60.0) as client:
+12 -1
View File
@@ -11,9 +11,20 @@
let loading = $state(true);
let showTaskModal = $state(false);
let editingTask = $state(null);
let showAgentPanel = $state(false);
let showAgentPanel = $state(
typeof localStorage !== 'undefined'
? localStorage.getItem('opc_showAgentPanel') !== 'false'
: true
);
let unsubscribe = null;
// Persist agent panel visibility
$effect(() => {
if (typeof localStorage !== 'undefined') {
localStorage.setItem('opc_showAgentPanel', showAgentPanel);
}
});
async function loadData() {
loading = true;
try {