Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(settings): keep the computer name of remote providers in the tip
MagicLizi90b66756b906
diff --git a/apps/desktop/src/renderer/components/settings/OwnRemoteProviders.tsx b/apps/desktop/src/renderer/components/settings/OwnRemoteProviders.tsxindex 33fa0ad307..31ed9361b3 100644--- a/apps/desktop/src/renderer/components/settings/OwnRemoteProviders.tsx+++ b/apps/desktop/src/renderer/components/settings/OwnRemoteProviders.tsx@@ -73,7 +73,7 @@ function RemoteProviderIcon({ provider, size }: { provider: ProviderView; size:);}-/** 左栏里的远程供应商行:接在本机供应商下面,不参与拖动排序。 */+/** 左栏里的远程供应商行:与本机供应商同一行式,接在它们下面、不参与拖动排序;所在电脑只写在悬停提示里。 */export function OwnRemoteProviderRows({entries,selectedKey,@@ -116,16 +116,16 @@ export function OwnRemoteProviderRows({><RemoteProviderIcon provider={entry.provider} size={14} /></span>- <span className="flex min-w-0 flex-1 flex-col">- <span- className="truncate text-13 font-medium"- style={{ color: 'var(--settings-section-title)' }}- >- {name}- </span>- <span className="truncate text-11" style={{ color: 'var(--text-tertiary)' }}>- {entry.deviceName}- </span>+ <span+ className="min-w-0 flex-1 truncate text-13 font-medium"+ style={{ color: 'var(--settings-section-title)' }}+ >+ {name}+ </span>+ <span className="shrink-0 select-none text-11 tabular-nums" style={{ color: 'var(--text-tertiary)' }}>+ {t('settings.providers.models.modelCount', {+ count: readOnlyProviderModels(entry.provider, entry.modelVisibilityOverrides).length,+ })}</span><spanaria-hidden="true"diff --git a/apps/desktop/src/renderer/components/settings/__tests__/OwnRemoteProviders.test.tsx b/apps/desktop/src/renderer/components/settings/__tests__/OwnRemoteProviders.test.tsxindex f8e9f00bb6..fdb0050e6d 100644--- a/apps/desktop/src/renderer/components/settings/__tests__/OwnRemoteProviders.test.tsx+++ b/apps/desktop/src/renderer/components/settings/__tests__/OwnRemoteProviders.test.tsx@@ -92,12 +92,14 @@ describe('OwnRemoteProviderRows / OwnRemoteProviderDetail', () => {expect(container.innerHTML).toBe('');});- it('marks the row as remote, names the computer and selects it', () => {+ it('marks the row as remote, names the computer only in the tip and selects it', () => {const onSelect = vi.fn();render(<OwnRemoteProviderRows entries={[entry]} selectedKey={null} onSelect={onSelect} />);const row = screen.getByTestId('own-remote-provider-row');expect(row.textContent).toContain('Anthropic');- expect(row.textContent).toContain("Magi's Mac Mini");+ expect(row.textContent).not.toContain("Magi's Mac Mini");+ expect(row.getAttribute('aria-label')).toContain("Magi's Mac Mini");+ expect(row.textContent).toContain('settings.providers.models.modelCount:{"count":1}');expect(row.querySelector('[data-remote-source-mark]')).not.toBeNull();fireEvent.click(row);expect(onSelect).toHaveBeenCalledWith(entry.key);diff --git a/docs/product-rules/provider-sharing.md b/docs/product-rules/provider-sharing.mdindex f3190278ed..132091c1fc 100644--- a/docs/product-rules/provider-sharing.md+++ b/docs/product-rules/provider-sharing.md@@ -117,7 +117,7 @@ Desktop 与 Mobile 使用同一写法。Desktop「设置 → 模型供应商」的左栏(2026-10-08 用户裁决):- **自己其他电脑上能用的供应商**也列在左栏,接在本机供应商后面(不参与拖动排序):图标右上角带与模型- 列表同一个远程角标,第二行写所在电脑;点开在右栏只读地看所在电脑、状态与开放的模型,修改要到那台+ 列表同一个远程角标,行式与本机供应商相同,所在电脑只写在悬停提示里;点开在右栏只读地看所在电脑、状态与开放的模型,修改要到那台电脑上去。只列在线、允许远程控制的同账号电脑上已开「允许被远程调用」且已连接的供应商,与模型列表能选的范围一致。- **分享给我的供应商**单独一组「分享给我的供应商」,没有分享时整组不显示:每条用分享者头像标明来自谁,diff --git a/docs/provider-sharing-implementation-plan.md b/docs/provider-sharing-implementation-plan.mdindex 7409151cac..8238ef7701 100644--- a/docs/provider-sharing-implementation-plan.md+++ b/docs/provider-sharing-implementation-plan.md@@ -57,7 +57,7 @@- **供应商设置**:「分享给我的供应商」从页面底部移进左栏,与自己的供应商同列、单独成组;右栏显示来源、状态、对方开放的模型与「退出」。管理分享的入口图标改为分享图标。- **供应商设置(真机反馈二补)**:「输入分享链接…」移到页面右上角(点开弹窗),左栏组末的粘贴行与空态说明去掉;- 没有分享时「分享给我的供应商」整组不显示;自己其他电脑上能用的远程供应商也列进左栏(远程角标 + 所在电脑,只读详情)。+ 没有分享时「分享给我的供应商」整组不显示;自己其他电脑上能用的远程供应商也列进左栏(远程角标,悬停提示写所在电脑;只读详情)。分享者电脑版本太旧、答不了 Agent 能力时,受邀者的模型列表直接提示「请让对方更新 Cindy」,不再只报读取失败。加入页「唤起失败」的指引文案(服务端)需改成新入口名。- **待产品决定**:受邀者能看到分享者电脑的设备名(macOS 默认是「<全名>的 MacBook」,可能含真实姓名)。