Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(mobile): 保留伙伴头像条原有默认显示
fmfsaisaib7da5b4a6e69
diff --git a/apps/mobile/src/__tests__/HomeTeammatesSection.test.tsx b/apps/mobile/src/__tests__/HomeTeammatesSection.test.tsxindex 4211d5dfbc..60887325fc 100644--- a/apps/mobile/src/__tests__/HomeTeammatesSection.test.tsx+++ b/apps/mobile/src/__tests__/HomeTeammatesSection.test.tsx@@ -4,7 +4,7 @@ import { createRoot, type Root } from 'react-dom/client';import { afterEach, beforeEach, expect, it, vi } from 'vitest';const h = vi.hoisted(() => ({ cloudRefresh: vi.fn(async () => {}), cloudError: null as string | null, push: vi.fn(),openTeammate: vi.fn(async (_row: unknown) => {}),- cloudActor: null as null | { id: string }, createOptions: null as any, collapsed: false, showAvatars: false, unread: false,+ cloudActor: null as null | { id: string }, createOptions: null as any, collapsed: false, showAvatars: true, unread: false,cacheRevision: 0, cacheListeners: new Set<() => void>(), unreadIds: new Set<string>(),stripRenders: [] as string[], avatarRenders: [] as string[], identityReads: 0 }));vi.mock('@/session/remoteSessionStore', () => ({ remoteSessionStore: { subscribe: () => () => {}, getPendingInteractions: () => [], getSessionLiveActivity: () => null } }));@@ -76,7 +76,7 @@ const roster = { items: [item], createTargets: [], groupTargets: [], loading: faisOnline: () => true, connectionState: undefined, refresh: vi.fn(async () => {}) };const groups = { items: [] as any[], supported: true, refreshing: false, error: null, isOnline: () => true, refresh: vi.fn(async () => {}) };let root: Root; let node: HTMLDivElement;-beforeEach(() => { Object.assign(globalThis, { IS_REACT_ACT_ENVIRONMENT: true }); node = document.createElement('div'); root = createRoot(node); vi.clearAllMocks(); h.cloudActor = null; vi.useFakeTimers(); roster.error = 'LIST_FAILED'; h.collapsed = false; h.showAvatars = false; h.unread = false; groups.items = [];+beforeEach(() => { Object.assign(globalThis, { IS_REACT_ACT_ENVIRONMENT: true }); node = document.createElement('div'); root = createRoot(node); vi.clearAllMocks(); h.cloudActor = null; vi.useFakeTimers(); roster.error = 'LIST_FAILED'; h.collapsed = false; h.showAvatars = true; h.unread = false; groups.items = [];h.cacheRevision = 0; h.unreadIds.clear(); h.stripRenders = []; h.avatarRenders = []; h.identityReads = 0;h.cloudError = null; getHomeViewSession().write('teammatesShowAll', false);});@@ -235,10 +235,10 @@ it('retries a cloud roster failure without restarting healthy computer or groupexpect(roster.refresh).not.toHaveBeenCalled(); expect(groups.refresh).not.toHaveBeenCalled();});-// Unit: the approved space-saving default must hide the entire body, including an empty create row.-// Existing strip coverage requires the explicit opt-in and never covered header-only/search transitions.-it('keeps only the header by default, restores the strip on opt-in, and never changes the fold when the setting changes', async () => {- h.collapsed = true;+// Unit: explicitly hiding avatars must remove the entire body, including an empty create row.+// Keep header-only/search transitions and the independent fold covered through the real section.+it('keeps only the header when avatars are disabled, restores the strip when enabled, and never changes the fold when the setting changes', async () => {+ h.collapsed = true; h.showAvatars = false;await render(0);expect(byId('home.teammatesHeader')).not.toBeNull();expect(byId('home.teammatesStrip')).toBeNull();@@ -259,8 +259,8 @@ it('keeps only the header by default, restores the strip on opt-in, and never chexpect(byId('row.bot')).toBeNull();expect(byId('home.teammatesStrip')).toBeNull();});-it('keeps the compact create action without an empty body when collapsed', async () => {- h.collapsed = true;+it('keeps the compact create action without an empty body when collapsed with avatars disabled', async () => {+ h.collapsed = true; h.showAvatars = false;await render(0, { context: { navigation: null, route: null, shared: {roster: { ...roster, items: [], createTargets: [item.host] }, groups,} } } as any);@@ -271,7 +271,7 @@ it('keeps the compact create action without an empty body when collapsed', asyncexpect(byId('home.teammatesAdd')).not.toBeNull();});it('carries unread and pending attention on the hidden header without opening it or changing read receipts', async () => {- h.collapsed = true;+ h.collapsed = true; h.showAvatars = false;const group = { ...item, key: 'host:group', chatUnread: { count: 1, threadCount: 1 },item: { ...item.item, ref: { collectionId: 'bot-groups', kind: 'bot-group', id: 'group' }, display: { title: 'Team' } } };groups.items = [group];diff --git a/apps/mobile/src/__tests__/homeChromeMenus.test.ts b/apps/mobile/src/__tests__/homeChromeMenus.test.tsindex c9b78f86d5..0a42ef8b19 100644--- a/apps/mobile/src/__tests__/homeChromeMenus.test.ts+++ b/apps/mobile/src/__tests__/homeChromeMenus.test.ts@@ -270,12 +270,14 @@ describe("home chrome menus", () => {expect(homeDisplayActionPatch("group", displayState)).toBeNull();});// Unit: the appearance submenu is distinct from filtering teammate-created tasks.- // Existing menu tests did not cover this independently checked, default-off action.- it('places avatar opt-in in a normal Teammates appearance submenu', () => {+ // Existing menu tests did not cover this independently checked, default-on action and the first click with no stored override.+ it('keeps avatars checked by default and toggles an absent or explicit override', () => {const menu = build().find(action => action.id === 'appearance')!;const submenu = menu.subactions!.find(action => action.id === 'teammates')!;- expect(submenu.subactions).toEqual([{ id: 'teammates.showCollapsedAvatars', title: 'devices.list.menu.showCollapsedTeammateAvatars', state: 'off' }]);- expect(homeDisplayActionPatch('teammates.showCollapsedAvatars', displayState)).toEqual({ showCollapsedTeammateAvatars: true });+ expect(submenu.subactions).toEqual([{ id: 'teammates.showCollapsedAvatars', title: 'devices.list.menu.showCollapsedTeammateAvatars', state: 'on' }]);+ expect(homeDisplayActionPatch('teammates.showCollapsedAvatars', displayState)).toEqual({ showCollapsedTeammateAvatars: false });+ expect(find(build({ showCollapsedTeammateAvatars: false }), 'teammates.showCollapsedAvatars')?.state).toBe('off');+ expect(homeDisplayActionPatch('teammates.showCollapsedAvatars', { ...displayState, showCollapsedTeammateAvatars: false })).toEqual({ showCollapsedTeammateAvatars: true });expect(homeDisplayActionPatch('teammates.showCollapsedAvatars', { ...displayState, showCollapsedTeammateAvatars: true })).toEqual({ showCollapsedTeammateAvatars: false });});diff --git a/apps/mobile/src/__tests__/teammateNavigation.test.ts b/apps/mobile/src/__tests__/teammateNavigation.test.tsindex 46a477024d..9c82f195bf 100644--- a/apps/mobile/src/__tests__/teammateNavigation.test.ts+++ b/apps/mobile/src/__tests__/teammateNavigation.test.ts@@ -24,7 +24,7 @@ describe('account-scoped home navigation overrides', () => {expect(await readHomeNavigationPreferences('account-a')).toEqual({});expect(AsyncStorage.setItem).not.toHaveBeenCalled();});- // Unit: old collapsed records are not avatar opt-ins; explicit false survives account switches.+ // Unit: old collapsed records do not acquire an explicit avatar override; explicit false survives account switches.// No prior test covered an independently persisted avatar setting.it('keeps explicit avatar choices per account without inferring them from an old collapsed state', async () => {await saveHomeNavigationPreferences('account-a', { teammatesCollapsed: true });diff --git a/apps/mobile/src/__tests__/useTeammateNavigation.test.tsx b/apps/mobile/src/__tests__/useTeammateNavigation.test.tsxindex 504e943e51..ac97e1f486 100644--- a/apps/mobile/src/__tests__/useTeammateNavigation.test.tsx+++ b/apps/mobile/src/__tests__/useTeammateNavigation.test.tsx@@ -50,24 +50,39 @@ describe('header/home shared navigation', () => {routeAfterClose?.();expect(h.push).toHaveBeenCalledExactlyOnceWith(expect.objectContaining({ pathname: '/resources/[collectionId]/[resourceId]' }));});- // Unit: menu and section share the account-scoped hook; remounts must retain the override,- // while changing it must not overwrite the independent expanded/collapsed choice.- it('restores avatar opt-in, keeps the fold independent, and isolates another account', async () => {+ // Unit: #7929 changed the existing default. An old fold-only record must show avatars+ // without writing an override; explicit false must survive remounts and account switches.+ it('defaults avatars on without saving, retains an explicit off choice, and isolates accounts', async () => {const originalUser = h.user;- await saveHomeNavigationPreferences(homeNavigationOwner(h.user), { showCollapsedTeammateAvatars: true });+ await saveHomeNavigationPreferences(homeNavigationOwner(h.user), { teammatesCollapsed: true });+ h.set.mockClear();await render();expect(result.showCollapsedTeammateAvatars).toBe(true);- expect(result.teammatesCollapsed).toBe(false);+ expect(result.teammatesCollapsed).toBe(true);+ expect(h.set).not.toHaveBeenCalled();+ expect(await readHomeNavigationPreferences(result.owner)).toEqual({ teammatesCollapsed: true });await act(async () => result.setShowCollapsedTeammateAvatars(false));- expect(result.teammatesCollapsed).toBe(false);+ expect(result.teammatesCollapsed).toBe(true);await act(async () => root!.unmount()); root = undefined;await render(); expect(result.showCollapsedTeammateAvatars).toBe(false);- await act(async () => result.setShowCollapsedTeammateAvatars(true));h.user = { ...h.user, id: 'avatar-other-account' }; await render();- expect(result.showCollapsedTeammateAvatars).toBe(false);+ expect(result.showCollapsedTeammateAvatars).toBe(true);+ expect(result.teammatesCollapsed).toBe(false);+ expect(await readHomeNavigationPreferences(result.owner)).toEqual({});h.user = originalUser; await render();+ expect(result.showCollapsedTeammateAvatars).toBe(false);+ expect(await readHomeNavigationPreferences(result.owner)).toEqual({ teammatesCollapsed: true, showCollapsedTeammateAvatars: false });+ await act(async () => result.setShowCollapsedTeammateAvatars(true));+ expect(result.showCollapsedTeammateAvatars).toBe(true);+ expect(result.teammatesCollapsed).toBe(true);+ });+ // Unit: a rejected storage read has no user override and must retain the original default.+ it('keeps avatars on without writing an override when reading preferences fails', async () => {+ h.get.mockRejectedValueOnce(new Error('storage unavailable'));+ await render();+ expect(result.hydrated).toBe(true);expect(result.showCollapsedTeammateAvatars).toBe(true);- expect(await readHomeNavigationPreferences(result.owner)).toEqual({ showCollapsedTeammateAvatars: true });+ expect(h.set).not.toHaveBeenCalled();});it('restores the remembered teammate and section fold, and returning home keeps them', async () => {const owner = homeNavigationOwner(h.user);@@ -162,15 +177,18 @@ describe('header/home shared navigation', () => {await act(async () => { finish(JSON.stringify({ teammatesCollapsed: false, lastTeammate: teammateIdentity(teammate) })); await change; });expect(result.teammatesCollapsed).toBe(true); expect(result.lastTeammate).toEqual(teammateIdentity(teammate));});- it('does not let a hung preference read blank home forever, then fills in the late values', async () => {+ it.each([undefined, false, true])('keeps avatars on during a hung read, then restores the late override %s', async (showCollapsedTeammateAvatars) => {vi.useFakeTimers();let finish!: (raw: string) => void;h.get.mockImplementationOnce(() => new Promise<string>((resolve) => { finish = resolve; }));await render(); expect(result.hydrated).toBe(false);+ expect(result.showCollapsedTeammateAvatars).toBe(true);await act(async () => vi.advanceTimersByTimeAsync(2000));expect(result.hydrated).toBe(true); expect(result.teammatesCollapsed).toBe(false);- await act(async () => finish(JSON.stringify({ teammatesCollapsed: true, lastTeammate: teammateIdentity(teammate) })));+ expect(result.showCollapsedTeammateAvatars).toBe(true);+ await act(async () => finish(JSON.stringify({ teammatesCollapsed: true, lastTeammate: teammateIdentity(teammate), showCollapsedTeammateAvatars })));expect(result.teammatesCollapsed).toBe(true); expect(result.lastTeammate).toEqual(teammateIdentity(teammate));+ expect(result.showCollapsedTeammateAvatars).toBe(showCollapsedTeammateAvatars ?? true);expect(h.set).not.toHaveBeenCalled(); expect(h.push).not.toHaveBeenCalled();});it('fences rapid selections before asynchronous storage so the remembered identity matches the opened route', async () => {diff --git a/apps/mobile/src/session/HomeTeammatesSection.tsx b/apps/mobile/src/session/HomeTeammatesSection.tsxindex b75813b128..6438735bb8 100644--- a/apps/mobile/src/session/HomeTeammatesSection.tsx+++ b/apps/mobile/src/session/HomeTeammatesSection.tsx@@ -4,7 +4,7 @@ import { useTeammateStatus, useRosterActivities, teammateAttention } from './use/*** 任务首页顶部的「伙伴」段(对照桌面 TeammatesSection.tsx 与 2026-10-24 手机「A+B 合一」定稿):* 展开 = 伙伴行(CompanionListRow,默认 3 位,多了「显示全部」);- * 收起 = 段头;用户开启「收起时显示头像」后显示原有头像条。两个选择分别按账号记住。+ * 收起默认显示原有头像条;用户关闭「收起时显示头像」后只保留段头。两个选择分别按账号记住。* 伙伴与群聊按最近活动混排;不跟随顶栏的电脑范围筛选(与桌面一致)。手机没有单独的伙伴首页,* 搜索时本段只列出名字匹配的伙伴与群聊。只在首页(有共享伙伴名册)出现;没有伙伴也没有能新建的* 电脑时整段不显示。diff --git a/apps/mobile/src/session/homeChromeMenus.ts b/apps/mobile/src/session/homeChromeMenus.tsindex fa0159d3ae..2f509d6067 100644--- a/apps/mobile/src/session/homeChromeMenus.ts+++ b/apps/mobile/src/session/homeChromeMenus.ts@@ -334,7 +334,7 @@ export function buildHomeDisplayPullDownActions(input: {HOME_TASK_INFO_FIELDS.map((field) =>checkable(`taskInfo.${field}`, t(`${MENU}.taskInfo.${field}`), state.taskInfoFields.includes(field), true))),submenu("teammates", t("devices.companions.title"), "", "person.2", [- checkable("teammates.showCollapsedAvatars", t(`${MENU}.showCollapsedTeammateAvatars`), state.showCollapsedTeammateAvatars === true),+ checkable("teammates.showCollapsedAvatars", t(`${MENU}.showCollapsedTeammateAvatars`), state.showCollapsedTeammateAvatars !== false),]),]),];@@ -345,7 +345,7 @@ export function homeDisplayActionPatch(id: string,state: HomeDisplayMenuState,): HomeDisplayPatch | null {- if (id === "teammates.showCollapsedAvatars") return { showCollapsedTeammateAvatars: !state.showCollapsedTeammateAvatars };+ if (id === "teammates.showCollapsedAvatars") return { showCollapsedTeammateAvatars: !(state.showCollapsedTeammateAvatars ?? true) };if (id === "group.project") return { groupByProject: !state.groupByProject };if (id === "group.dialogue") return { groupDialogue: !state.groupDialogue };if (id === "filter.reset") return { lastActivityFilter: "all", projectFilter: "all", teammateFilter: "all", vendorFilter: "all" };diff --git a/apps/mobile/src/session/homeViewPreferenceStore.ts b/apps/mobile/src/session/homeViewPreferenceStore.tsindex 9508b11177..7ee8675356 100644--- a/apps/mobile/src/session/homeViewPreferenceStore.ts+++ b/apps/mobile/src/session/homeViewPreferenceStore.ts@@ -259,7 +259,7 @@ export interface HomeNavigationPreferences {lastTeammate?: LastTeammateIdentity;/** The task home's teammate section: expanded rows or collapsed header. */teammatesCollapsed?: boolean;- /** Explicit account override; absent defaults to hiding the collapsed avatar strip. */+ /** Explicit account override; absent defaults to showing the collapsed avatar strip. */showCollapsedTeammateAvatars?: boolean;}const NAVIGATION_PREFIX = 'cindy.mobile.home.navigation.v1.';diff --git a/apps/mobile/src/session/useHomeMode.ts b/apps/mobile/src/session/useHomeMode.tsindex 780fec2c67..d892cb951f 100644--- a/apps/mobile/src/session/useHomeMode.ts+++ b/apps/mobile/src/session/useHomeMode.ts@@ -16,7 +16,7 @@ interface Snapshot {teammatesCollapsed: boolean;showCollapsedTeammateAvatars: boolean;}-const initial: Snapshot = { hydrated: false, lastTeammate: null, teammatesCollapsed: false, showCollapsedTeammateAvatars: false };+const initial: Snapshot = { hydrated: false, lastTeammate: null, teammatesCollapsed: false, showCollapsedTeammateAvatars: true };interface Entry { snapshot: Snapshot; revision: number; loading?: Promise<void> }const entries = new Map<string, Entry>();const listeners = new Set<() => void>();@@ -39,12 +39,12 @@ function hydrate(owner: string, entry: Entry): Promise<void> {publish(entry, entry.revision === revision? { hydrated: true, lastTeammate: stored.lastTeammate ?? null,teammatesCollapsed: stored.teammatesCollapsed ?? false,- showCollapsedTeammateAvatars: stored.showCollapsedTeammateAvatars ?? false }+ showCollapsedTeammateAvatars: stored.showCollapsedTeammateAvatars ?? true }: { hydrated: true });if (timedOut) void read.completion.then((result) => {// Late values only fill in what the user has not changed since the timeout.if (result.ok && entry.revision === revision) publish(entry, {- showCollapsedTeammateAvatars: result.value.showCollapsedTeammateAvatars ?? false,+ showCollapsedTeammateAvatars: result.value.showCollapsedTeammateAvatars ?? true,lastTeammate: result.value.lastTeammate ?? null, teammatesCollapsed: result.value.teammatesCollapsed ?? false,});});diff --git a/docs/design-rules/DESIGN.md b/docs/design-rules/DESIGN.mdindex d25ddba989..73d818acd4 100644--- a/docs/design-rules/DESIGN.md+++ b/docs/design-rules/DESIGN.md@@ -781,7 +781,7 @@ without clearing the list or splitting Cindy by computer.### Mobile task home teammate section (owner-approved “A+B”, 2026-10-24)-The task home opens with a “Teammates” section above shared tasks, Pinned and projects. Its header uses the project/Pinned header geometry (56pt, 22 chevron + 20 icon + 16/28 title + 13 count) and a trailing 20pt “+” whose 44pt target ends on the 16pt right edge. Expanded, it shows 78pt teammate rows (teammates and groups mixed by activity), previewing three; the “Show all N” / “Show less” row is 48pt, 15/20 secondary text aligned to the rows’ text column (72pt). Collapsed, it keeps only the 56pt header and its small create action by default, with no empty body. The existing home display menu (···) has a “Teammates” submenu whose “Show avatars when collapsed” item enables the horizontally scrolling strip: 48pt avatars in 56pt cells, 8pt gap, 16pt side insets, 12/18 names (primary + medium when unread), one 10pt solid status dot in a 2pt surface ring anchored 1pt beyond the bottom-right edge, and a dashed 48pt create cell last. Phones scroll instead of the Desktop +N. Desktop uses the same 48px collapsed avatar, 44px list avatar, and status-dot geometry as iOS and Android. A pending decision (cyan) takes priority over error/offline (red), running (orange), completed unread (green), and ordinary unread (blue); idle has no dot. The overflow entry aggregates the highest-priority hidden state. Completion requires a real result and a local unread receipt; selection alone never clears a pending decision. Roster avatars have no online dot or working ring; unread counts remain separate. Teammate selection uses the quiet theme surface with normal sidebar text (never the task sidebar’s inverse fill); collapsed selection is a 1px tertiary circular outline with 2px separation. Selection does not replace or recolor the activity dot. Phones navigate to the full-screen chat and retain their native press feedback, without a persistent selected home row. The avatar preference is an explicit account-scoped override, default off for new and existing users and independent of the remembered fold state; changing it while expanded takes effect on the next collapse. When avatars are hidden, existing attention and bot/group unread (including threads) appear as a small header dot with an accessible status and no fabricated count. New messages never expand the section or enable avatars; header taps only expand/collapse. Both states swap with the list’s 225ms disclosure; reduced motion switches instantly. Every language must fit the header and names without widening; long names truncate to one line within the cell.+The task home opens with a “Teammates” section above shared tasks, Pinned and projects. Its header uses the project/Pinned header geometry (56pt, 22 chevron + 20 icon + 16/28 title + 13 count) and a trailing 20pt “+” whose 44pt target ends on the 16pt right edge. Expanded, it shows 78pt teammate rows (teammates and groups mixed by activity), previewing three; the “Show all N” / “Show less” row is 48pt, 15/20 secondary text aligned to the rows’ text column (72pt). Collapsed, it shows the existing avatar strip by default; disabling avatars keeps only the 56pt header and its small create action, with no empty body. The existing home display menu (···) has a “Teammates” submenu whose “Show avatars when collapsed” item controls the horizontally scrolling strip: 48pt avatars in 56pt cells, 8pt gap, 16pt side insets, 12/18 names (primary + medium when unread), one 10pt solid status dot in a 2pt surface ring anchored 1pt beyond the bottom-right edge, and a dashed 48pt create cell last. Phones scroll instead of the Desktop +N. Desktop uses the same 48px collapsed avatar, 44px list avatar, and status-dot geometry as iOS and Android. A pending decision (cyan) takes priority over error/offline (red), running (orange), completed unread (green), and ordinary unread (blue); idle has no dot. The overflow entry aggregates the highest-priority hidden state. Completion requires a real result and a local unread receipt; selection alone never clears a pending decision. Roster avatars have no online dot or working ring; unread counts remain separate. Teammate selection uses the quiet theme surface with normal sidebar text (never the task sidebar’s inverse fill); collapsed selection is a 1px tertiary circular outline with 2px separation. Selection does not replace or recolor the activity dot. Phones navigate to the full-screen chat and retain their native press feedback, without a persistent selected home row. The avatar preference is an explicit account-scoped override, default on for new and existing users without writing an override, preserving explicit off choices and independent of the remembered fold state; changing it while expanded takes effect on the next collapse. When avatars are hidden, existing attention and bot/group unread (including threads) appear as a small header dot with an accessible status and no fabricated count. New messages never expand the section or enable avatars; header taps only expand/collapse. Both states swap with the list’s 225ms disclosure; reduced motion switches instantly. Every language must fit the header and names without widening; long names truncate to one line within the cell.There is one mobile home, as on Desktop (owner decision, 2026-10-24): no separate teammate home, no Tasks/Teammates switch in the drawer and no Teammates entry in the title scope menu. Home search keeps the section and lists every matching teammate and group as expanded rows, without the fold toggle or create entries; with no match the section is absent. Clearing search restores the saved display choice. Teammate unread shows on the section's rows, enabled strip cells, or compact header, not as a count on a mode switch. Implementation and regression coverage: `apps/mobile/src/session/HomeTeammatesSection.tsx`, `homeChromeMenus.ts`, and `src/__tests__/HomeTeammatesSection.test.tsx`.diff --git a/docs/product-rules/cindy-bots-runtime.md b/docs/product-rules/cindy-bots-runtime.mdindex ab7698c7a8..fbccd4ce64 100644--- a/docs/product-rules/cindy-bots-runtime.md+++ b/docs/product-rules/cindy-bots-runtime.md@@ -1234,7 +1234,7 @@ Codex 切模型重建时,线程索引里的路径不等于文件已经落盘## 导航未读与系统角标- 桌面伙伴与任务共用一个侧栏(2026-10-13 定稿):「伙伴」是侧栏第一层的一段,固定在置顶上方,与置顶、全部任务并存;点伙伴只切换主区域,不再整栏切换,也不再有顶部导航的「伙伴 / 返回任务」入口。段名在「展开(行列表)」与「收起成单行头像」之间切换,默认展开,按账号记住;收起时只占一行,放不下的收进末尾「+N」(点开即展开),正在看的聊天始终留在行内,群聊沿用[群聊界面规则](bot-group-chat.md#5-界面)的成员组合头像与单聊区分(`features/bots/TeammatesSection.tsx`、`teammatesSectionPrefs.ts`)。原伙伴列表的新建伙伴 / 群聊、加入群聊、群聊与私聊混排、多设备 Cindy、置顶 / 隐藏 / 复制 / 删除、已隐藏、需要处理的伙伴都留在段内;伙伴不默认置顶。伙伴段没有独立搜索框:侧栏总搜索同时匹配伙伴(名字、简介、技能,含已隐藏、不含已停止)、远程伙伴(含电脑名)与群聊(群名、成员名),命中排在会话结果之前(`TeammateSearchResults`)。侧栏收窄(rail)时由一个带未读数的伙伴图标直达 `/bots`(上次看的伙伴,没有则 Cindy)。-- 手机任务首页同样以「伙伴」段开头(2026-10-24 定稿「A+B 合一」):段头与置顶段头同款,固定在共享任务、置顶与项目组之上;**展开**为伙伴页同款伙伴行(伙伴与群聊按最近活动混排,默认 3 行,多出的收进「显示全部 N / 收起」),段头右侧「+」新建伙伴或群聊;**收起**默认只保留标题行、数量与小号新建入口,不保留头像、名字、大号新建格或空白。首页现有「···」显示菜单的外观区域增加普通「伙伴」子菜单,与「显示」「任务信息」平级,其中「收起时显示头像」勾选项开启后保留原有横向头像条(12/18 名字、未读角点、在回话环,最后一格新建);不是「筛选 → 伙伴」的任务创建者筛选。手机用横滑代替桌面的「+N」。收起状态(`teammatesCollapsed`)与头像开关(`showCollapsedTeammateAvatars`)分别按账号与首页导航偏好一起记住。新开关未设置一律关闭,不能把旧版自动显示头像当作用户选择;显式开关跨刷新、重启与首页/抽屉重挂载保留。展开期间改开关不改变当前展开状态,下次收起生效;标题点击始终只有展开/收起两种动作。隐藏头像时,伙伴未读、群聊主时间线及话题未读、既有待处理状态通过轻量标题提示承接,不另造计数或修改读位;新消息不会自动开启头像或展开列表。段落不跟随顶栏电脑范围筛选(与桌面一致);首页搜索时伙伴段只列出匹配的伙伴与群聊(无匹配则隐藏,搜索期间不收起、不显示新建,清除搜索恢复原显示选择),筛选与归档视图时隐藏;没有可用电脑、首页显示连接引导时仍保留(服务器群聊与云端伙伴不依赖电脑,这是手机上打开它们的唯一入口);没有伙伴时展开或已开启头像条仍显示一行「添加伙伴」,已收起且头像关闭则只留标题与小号新建入口;既无伙伴也无可新建的电脑或仍在首次加载时整段不显示。手机与桌面一样只有一个首页(2026-10-24 定稿):抽屉不再有「任务/伙伴」切换,标题范围菜单不列出伙伴,独立伙伴页已退役;从伙伴聊天返回总是回到任务首页,旧版本记住的「停在伙伴页」在下次写入时清除。实现见 Mobile `HomeTeammatesSection.tsx`,行与排序复用 `TeammateList.tsx` 的 `useTeammateEntries` / `useTeammateRowRenderer`。+- 手机任务首页同样以「伙伴」段开头(2026-10-24 定稿「A+B 合一」):段头与置顶段头同款,固定在共享任务、置顶与项目组之上;**展开**为伙伴页同款伙伴行(伙伴与群聊按最近活动混排,默认 3 行,多出的收进「显示全部 N / 收起」),段头右侧「+」新建伙伴或群聊;**收起**默认保留原有横向头像条;用户关闭头像后只保留标题行、数量与小号新建入口,不保留头像、名字、大号新建格或空白。首页现有「···」显示菜单的外观区域增加普通「伙伴」子菜单,与「显示」「任务信息」平级,其中「收起时显示头像」勾选项开启后保留原有横向头像条(12/18 名字、未读角点、在回话环,最后一格新建);不是「筛选 → 伙伴」的任务创建者筛选。手机用横滑代替桌面的「+N」。收起状态(`teammatesCollapsed`)与头像开关(`showCollapsedTeammateAvatars`)分别按账号与首页导航偏好一起记住。新开关未设置时新老用户都保留原有默认显示,不主动写入用户覆盖值,也不覆盖已保存的关闭选择;显式开关跨刷新、重启与首页/抽屉重挂载保留。展开期间改开关不改变当前展开状态,下次收起生效;标题点击始终只有展开/收起两种动作。隐藏头像时,伙伴未读、群聊主时间线及话题未读、既有待处理状态通过轻量标题提示承接,不另造计数或修改读位;新消息不会自动开启头像或展开列表。段落不跟随顶栏电脑范围筛选(与桌面一致);首页搜索时伙伴段只列出匹配的伙伴与群聊(无匹配则隐藏,搜索期间不收起、不显示新建,清除搜索恢复原显示选择),筛选与归档视图时隐藏;没有可用电脑、首页显示连接引导时仍保留(服务器群聊与云端伙伴不依赖电脑,这是手机上打开它们的唯一入口);没有伙伴时展开或已开启头像条仍显示一行「添加伙伴」,已收起且头像关闭则只留标题与小号新建入口;既无伙伴也无可新建的电脑或仍在首次加载时整段不显示。手机与桌面一样只有一个首页(2026-10-24 定稿):抽屉不再有「任务/伙伴」切换,标题范围菜单不列出伙伴,独立伙伴页已退役;从伙伴聊天返回总是回到任务首页,旧版本记住的「停在伙伴页」在下次写入时清除。实现见 Mobile `HomeTeammatesSection.tsx`,行与排序复用 `TeammateList.tsx` 的 `useTeammateEntries` / `useTeammateRowRenderer`。- 系统通知(完成 / 出错 / 待回复)只由任务侧栏一处发出,`/bots` 路由同样由它观察;正在看的伙伴会话按「注视中」处理,不记未读、不发通知(`useViewedBotSessionId`)。群专线仍不通知。- 伙伴未读按**有未读的对话数**聚合可见、未归档的伙伴私聊与群聊;私聊行仍显示原有的回复条数,群聊行标记该群未读。生成状态、工具过程、内部私信回执和静默巡检不新增未读。收起成头像时以头像角点提示未读,rail 伙伴图标显示聚合数。- 桌面 Dock 的完整投影为本机待关注任务数 + 本机未读伙伴对话数。远程伙伴可以出现在伙伴段,但不扩大本机 Dock 范围;目录加载前的通知事件兜底仍由既有 appBadgeService 管理,目录覆盖的伙伴底层 Session ID 用于去重。