diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c11fada..a26e291d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,8 @@ jobs: - run: pnpm workbench:check - - run: pnpm headless:test + - id: host_tests + run: pnpm headless:test - name: Verify settings and chat in real sandboxed Chrome timeout-minutes: 4 @@ -58,6 +59,13 @@ jobs: timeout-minutes: 5 run: node scripts/workbench/e2e-attachments.mjs + - name: Verify conversation preferences across two independent owner logins + # Independent UI fixture: record its own outcome even if a previous Chrome workflow failed. + # Other failed steps still fail the overall job. + if: ${{ !cancelled() && steps.host_tests.outcome == 'success' }} + timeout-minutes: 5 + run: node scripts/workbench/e2e-sessions.mjs + - name: Select the same installed Chrome for UI and worker run: bash scripts/workbench/ci-select-chromium.sh diff --git a/apps/desktop/src/renderer/src/redesign/ModelMenu.tsx b/apps/desktop/src/renderer/src/redesign/ModelMenu.tsx index 6e7383bf..b4f65f73 100644 --- a/apps/desktop/src/renderer/src/redesign/ModelMenu.tsx +++ b/apps/desktop/src/renderer/src/redesign/ModelMenu.tsx @@ -4,7 +4,7 @@ * 每行只写模型名(悬停提示写完整 ID)。服务商名是灰色小字、滚动时吸顶;组间不画线、不放色点。 * 列表自己滚动;打开时把当前模型滚到可见范围中间。 */ -import { useLayoutEffect, useRef } from 'react' +import { useLayoutEffect, useRef, type ReactNode } from 'react' import { Check, ChevronDown } from 'lucide-react' import './model-panel.css' import type { ModelDef, Provider } from '../mock/models' @@ -19,8 +19,12 @@ export function ModelMenu({ groups, activePid, activeMid, - onPick + onPick, + leading, + menuId }: { + leading?: ReactNode + menuId?: string groups: ModelGroup[] activePid: string | null activeMid: string | null @@ -39,7 +43,8 @@ export function ModelMenu({ }, []) return ( -
{c.saving}
+ if (!entry.issue) return entry.reading && !entry.confirmed ?{c.loading}
: null + return{c[wk.listIssue]}{' '} {wk.listIssue === 'listFailure' && }
} - {shown.length ? shown.map((s) =>{c.inputLimit}
}