Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(desktop): close pending chat selection act scopes and sync dev
Alfredo Lopez16c403f7cf17
diff --cc control-ui/package-lock.jsonindex ace5d18fc,f47184ebe..2038ce421--- a/control-ui/package-lock.json+++ b/control-ui/package-lock.json@@@ -1,12 -1,12 +1,12 @@@{"name": "clerum-control-ui",- "version": "0.1.704",- "version": "0.1.703",++ "version": "0.1.705","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-ui",- "version": "0.1.704",- "version": "0.1.703",++ "version": "0.1.705","dependencies": {"@clerum/display-field": "file:../packages/display-field","@clerum/frontend-components": "file:../packages/frontend-components",diff --cc control-ui/package.jsonindex 7b4f7e30a,9ca36273b..f3337eb58--- a/control-ui/package.json+++ b/control-ui/package.json@@@ -1,6 -1,6 +1,6 @@@{"name": "clerum-control-ui",- "version": "0.1.704",- "version": "0.1.703",++ "version": "0.1.705","private": true,"scripts": {"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",diff --cc desktop-app/ui/src/hooks/domain/__tests__/pendingChatSelection.characterization.test.tsxindex 7e0a7078a,7e0a7078a..4cd6b56a8--- a/desktop-app/ui/src/hooks/domain/__tests__/pendingChatSelection.characterization.test.tsx+++ b/desktop-app/ui/src/hooks/domain/__tests__/pendingChatSelection.characterization.test.tsx@@@ -203,7 -203,7 +203,9 @@@ describe('pendingChatSelection effect'})await waitFor(() => expect(clerum.chat.getIndex.mock.calls.length).toBeGreaterThan(1))-- const sendPromise = act(async () => {++ // Keep the index pending while the send finishes, and close this act scope++ // before waiting for progress or resolving the list in another scope.++ await act(async () => {await result.current.handleSendAgentMessage('keep latest from stealing this chat')})await waitFor(() => expect(clerum.hasProgressHandler('task-latest-race')).toBe(true))@@@ -219,7 -219,7 +221,6 @@@})})-- await sendPromiseexpect(result.current.activeChatId).toBe(createdChatId)expect(clerum.rpc.loadSessionMessages).not.toHaveBeenCalledWith('agent-x',@@@ -332,7 -332,7 +333,7 @@@await waitFor(() => expect(clerum.chat.getIndex).toHaveBeenCalled())-- const sendPromise = act(async () => {++ await act(async () => {await result.current.handleSendAgentMessage('keep this visible')})await waitFor(() => expect(clerum.hasProgressHandler('task-race')).toBe(true))@@@ -348,7 -348,7 +349,6 @@@})})-- await sendPromiseexpect(result.current.activeChatId).toBe(createdChatId)expect(clerum.rpc.loadSessionMessages).not.toHaveBeenCalledWith('agent-x',