auto(0131): agents v0.2 — per-agent goroutine control + clear_memory + delete_cache #2
Reference in New Issue
Block a user
Delete Branch "auto/0131-agents-v02"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Resumen
POST /agents/{id}/clear_memory(borra messages+facts de memory.db) yPOST /agents/{id}/delete_cache(elimina crypto/ + cache/).uptime_seconds(desde startedAt) ymessages_24h(SQLite read-only, TTL 30s).task_run_id
task_e5a42e5ace47bcd8
Verificar antes de mergear
CGO_ENABLED=0 go test -tags goolm ./..../dev-scripts/server/restart.shen organic-machine.compytest -x -q projects/element_agents/apps/agents_dashboard/tests/test_connect_e2e.py- Manager: RegisterUnifiedAgent/UnregisterUnifiedAgent/StopUnifiedAgent/ IsUnifiedAgentRunning/UptimeSeconds — cancela goroutines individuales sin matar el launcher - Manager: UptimeSeconds en AgentStatus via startedAt map - api/server: AgentController interface + WithController/WithDataDir builders + rutas POST /agents/{id}/clear_memory y /agents/{id}/delete_cache - api/handlers: handleStartAgent/Stop/Restart delegan a controller en modo unified; Messages24h enriquecido via queryMessages24h (cache 30s) - api/handlers: handleClearMemory — para la goroutine, borra messages+facts de memory.db, responde {status,messages_deleted,facts_deleted} - api/handlers: handleDeleteCache — para la goroutine, elimina crypto/ y cache/, responde {status,paths_deleted} - launcher/registry: launchGoroutine extrae goroutine con contexto per-agente; deps.procMgr hookea RegisterUnified; startAgent permite relanzar via reload - launcher/main: agentController implementa api.AgentController sobre registry; mgr compartido entre API y registry; WithController+WithDataDir cableados Co-Authored-By: fn-orquestador <noreply@fn-registry>View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.