Explorar el Código

fix(client): restore branded running copy

Yichen Jiang hace 2 semanas
padre
commit
d61ba08685

+ 1 - 1
packages/client/ui-chat/src/client/locale.ts

@@ -27,7 +27,7 @@ export const zh = {
   'chat.loadError': '历史加载失败:{message}({code})',
   'chat.loadError': '历史加载失败:{message}({code})',
   'chat.loadOlder': '加载更早',
   'chat.loadOlder': '加载更早',
   'chat.toBottom': '回到底部',
   'chat.toBottom': '回到底部',
-  'chat.deepDiving': '正在深入处理…',
+  'chat.deepDiving': '深度求索中...',
   'fileOpen.title': '无法打开文件',
   'fileOpen.title': '无法打开文件',
   'fileOpen.unknown': '无法打开此文件',
   'fileOpen.unknown': '无法打开此文件',
   'fileOpen.folderTitle': '无法打开文件夹',
   'fileOpen.folderTitle': '无法打开文件夹',

+ 3 - 3
packages/client/ui-chat/tests/chat-view.client.spec.tsx

@@ -914,7 +914,7 @@ describe('ChatView', () => {
     const view = render(<h.ChatView {...h.props} />)
     const view = render(<h.ChatView {...h.props} />)
     expect(view.getByTestId('tool-seat-r1')).toBeTruthy()
     expect(view.getByTestId('tool-seat-r1')).toBeTruthy()
     expect(h.toolOwners[0]?.block).toMatchObject({ callId: 'r1', argsRaw: '{"command":"cmd-r1"}' })
     expect(h.toolOwners[0]?.block).toMatchObject({ callId: 'r1', argsRaw: '{"command":"cmd-r1"}' })
-    expect(view.getByRole('status').textContent).toBe('正在深入处理…')
+    expect(view.getByRole('status').textContent).toBe('深度求索中...')
   })
   })
 
 
   it('keeps the Tool renderer mounted when a running call settles into log order', () => {
   it('keeps the Tool renderer mounted when a running call settles into log order', () => {
@@ -974,7 +974,7 @@ describe('ChatView', () => {
     const view = render(<h.ChatView {...h.props} />)
     const view = render(<h.ChatView {...h.props} />)
     // Freshly mounted (as after a reload) yet already past the 15s gate.
     // Freshly mounted (as after a reload) yet already past the 15s gate.
     const status = view.getByRole('status')
     const status = view.getByRole('status')
-    expect(status.textContent).toMatch(/^正在深入处理…2分0\d秒$/)
+    expect(status.textContent).toMatch(/^深度求索中\.\.\.2分0\d秒$/)
     expect(status.querySelector('[aria-hidden="true"]')).not.toBeNull()
     expect(status.querySelector('[aria-hidden="true"]')).not.toBeNull()
     act(() => {
     act(() => {
       h.setSession({ queue: [{
       h.setSession({ queue: [{
@@ -986,7 +986,7 @@ describe('ChatView', () => {
         text: 'also',
         text: 'also',
       }] })
       }] })
     })
     })
-    expect(status.textContent).toMatch(/^正在深入处理…2分0\d秒$/)
+    expect(status.textContent).toMatch(/^深度求索中\.\.\.2分0\d秒$/)
   })
   })
 
 
   it('hands each ordered root call to the keyed business-node slot', () => {
   it('hands each ordered root call to the keyed business-node slot', () => {