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(pet): keep registration retries going after a failed snapshot (#2422)
Call Whiteaa4c7d8a180f
diff --git a/ui/src/pet/PetPage.test.tsx b/ui/src/pet/PetPage.test.tsxindex 6753c605a..72e8e0cd5 100644--- a/ui/src/pet/PetPage.test.tsx+++ b/ui/src/pet/PetPage.test.tsx@@ -403,6 +403,20 @@ describe('PetPage other conversations', () => {expect(api.getRunningAgents.mock.calls.length).toBe(settled);}, 15000);+ it('keeps re-reading a started turn after a failed read', async () => {+ canUseAgents = true;+ devBind('S');+ render(<PetPage />);+ await waitFor(() => expect(api.getRunningAgents).toHaveBeenCalled());+ const before = api.getRunningAgents.mock.calls.length;+ // The read turn.start asks for fails, as during a short controller outage.+ api.getRunningAgents.mockRejectedValueOnce(new Error('controller restarting'));+ await emit((h) => h.onTurnStart?.({ session_id: 'T' }));+ await waitFor(() => expect(api.getRunningAgents.mock.calls.length).toBe(before + 1));+ runningAgents = workingIn('T');+ await waitFor(() => expect(pose()).toBe('running'), { timeout: 5000 });+ }, 15000);+it('re-reads on every event that can change who is working, and catches up on visibility', async () => {const { REFRESH_TRIGGERS } = await import('./useConversationAgentWorking');canUseAgents = true;diff --git a/ui/src/pet/useConversationAgentWorking.ts b/ui/src/pet/useConversationAgentWorking.tsindex 283ee63fe..38f581f2b 100644--- a/ui/src/pet/useConversationAgentWorking.ts+++ b/ui/src/pet/useConversationAgentWorking.ts@@ -58,7 +58,12 @@ class ConversationWorkingSource {onWorking(conversationAgentWorking(result));this.settle(activeSessions(result));},- fail: () => onWorking(false),+ fail: () => {+ onWorking(false);+ // A failed read registers nothing: keep waiting on every started turn+ // until its cap, as `turn.start` is not replayed.+ this.settle(new Set());+ },});}