Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
fix(tasks): limit request recovery to service
cyh2c523c0afd3a
diff --git a/core/scheduled_tasks.py b/core/scheduled_tasks.pyindex 818a40e8f..1dc7c3624 100644--- a/core/scheduled_tasks.py+++ b/core/scheduled_tasks.py@@ -283,7 +283,6 @@ class TaskExecutionStore:self.processing_dir = self.root / "processing"self.completed_dir = self.root / "completed"self._ensure_dirs()- self.recover_processing()def _ensure_dirs(self) -> None:self.pending_dir.mkdir(parents=True, exist_ok=True)@@ -408,6 +407,7 @@ class ScheduledTaskService:self._reconcile_task: Optional[asyncio.Task] = Noneself._job_signatures: Dict[str, tuple[Any, ...]] = {}self._running = False+ self.request_store.recover_processing()def validate_platform(self, platform: str) -> None:if platform not in self.controller.platform_settings_managers:diff --git a/tests/test_scheduled_tasks.py b/tests/test_scheduled_tasks.pyindex 75cd2fc49..90e759bd4 100644--- a/tests/test_scheduled_tasks.py+++ b/tests/test_scheduled_tasks.py@@ -258,6 +258,21 @@ def test_request_store_enqueue_claim_and_complete(tmp_path: Path) -> None:assert not (store.processing_dir / f"{request.id}.json").exists()+def test_request_store_constructor_does_not_requeue_processing_files(tmp_path: Path) -> None:+ root = tmp_path / "task_requests"+ store = TaskExecutionStore(root)+ request = store.enqueue_hook_send(session_key="slack::channel::C123", prompt="hello")+ claimed = store.claim(request.id)++ assert claimed is not None+ assert (store.processing_dir / f"{request.id}.json").exists()++ producer_view = TaskExecutionStore(root)++ assert not (producer_view.pending_dir / f"{request.id}.json").exists()+ assert (producer_view.processing_dir / f"{request.id}.json").exists()++def test_drain_requests_executes_hook_send(tmp_path: Path) -> None:request_store = TaskExecutionStore(tmp_path / "task_requests")request = request_store.enqueue_hook_send(session_key="slack::channel::C123", prompt="ship it")