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(chat): keep Vibey's hidden retry row out of the transcript (#2859)
Call White54ef5f0f9cb4
diff --git a/ui/src/components/workbench/ChatPage.tsx b/ui/src/components/workbench/ChatPage.tsxindex 4a7a366c3..5eebb4e31 100644--- a/ui/src/components/workbench/ChatPage.tsx+++ b/ui/src/components/workbench/ChatPage.tsx@@ -2275,7 +2275,13 @@ export const ChatPage: React.FC = () => {: parsed?.fallback ?? t('chat.retryFailed'));return false;}- if (body?.author && body?.id && body?.state !== 'reserved' && !body?.queued) {+ // The retry's input row joins the transcript like any other ingest, through+ // the same type filter: Vibey's retry is a hidden control row (it resumes the+ // transcript and writes no input), which no transcript read ever returns.+ if (+ body?.author && body?.id && body?.state !== 'reserved' && !body?.queued+ && isTranscriptMessage(body as WorkbenchMessage)+ ) {if (historicalWindowRef.current) await reloadLatestMessages();else appendMessage(body as WorkbenchMessage);}diff --git a/ui/src/components/workbench/ChatRowOptimisticWrites.test.tsx b/ui/src/components/workbench/ChatRowOptimisticWrites.test.tsxindex b735e17d1..debe8da59 100644--- a/ui/src/components/workbench/ChatRowOptimisticWrites.test.tsx+++ b/ui/src/components/workbench/ChatRowOptimisticWrites.test.tsx@@ -356,6 +356,30 @@ describe('the chat row under an optimistic write', () => {expect(screen.getByRole('button', { name: 'chat.retryRequested' })).toBeTruthy();});+ it.each([+ // Vibey resumes its transcript: the response is the hidden control row.+ ['a hidden Vibey resume row', { type: 'agent_initiated', author: 'harness', source: 'harness', text: '' }, 0],+ // A native backend continues with a visible `continue` input.+ ['a visible continue input', { type: 'user', author: 'user', source: 'user', text: 'continue' }, 1],+ ])('draws %s from the retry response only when the transcript shows it', async (_name, row, drawn) => {+ await mountChat();+ const failure = {+ id: 'msg-failure', session_id: SESSION_ID, author: 'agent', source: 'agent',+ type: 'notify', text: 'failed', content: {},+ metadata: { event: 'backend_failure', turn_id: 'failed-turn', failure_id: 'failed-turn' },+ } as WorkbenchMessage;+ act(() => mocks.events?.onMessageNew?.(failure));+ mocks.apiFetch.mockResolvedValue({+ ok: true, status: 202,+ json: async () => ({+ id: 'msg-retry-input', session_id: SESSION_ID, content: {}, metadata: {},+ state: 'accepted', delivery_state: 'accepted', ...row,+ }),+ });+ await act(async () => { fireEvent.click(screen.getByRole('button', { name: 'common.retry' })); });+ expect(document.querySelectorAll('[data-message-id="msg-retry-input"]')).toHaveLength(drawn);+ });+it('updates an existing notify action without appending another message', async () => {await mountChat();const failure = {