Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(mobile): reclaim drawer title space and gate HID regressions
DavidShen1c434def0375
diff --git a/.github/workflows/ios-simulator-hid-regression.yml b/.github/workflows/ios-simulator-hid-regression.ymlnew file mode 100644index 0000000000..332a39dcda--- /dev/null+++ b/.github/workflows/ios-simulator-hid-regression.yml@@ -0,0 +1,38 @@+name: ios-simulator-hid-regression++on:+ pull_request:+ paths:+ - ".github/workflows/ios-simulator-hid-regression.yml"+ - "packages/ios-simulator-runtime/native/hid-compatibility.swift"+ - "packages/ios-simulator-runtime/native/ios-simulator-sidecar.swift"+ - "packages/ios-simulator-runtime/native/tests/hid-compatibility-checks.swift"+ - "packages/ios-simulator-runtime/src/native-sidecar/hid-compatibility.test.ts"+ workflow_dispatch:++permissions:+ contents: read++concurrency:+ group: ios-simulator-hid-regression-${{ github.event.pull_request.number || github.ref }}+ cancel-in-progress: true++jobs:+ hid-regression:+ runs-on: macos-15+ timeout-minutes: 10+ steps:+ - name: Checkout client+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1++ # Uses the exact Swift source linked into the helper. These checks use+ # synthetic screen metadata and do not boot or control any simulator.+ - name: Compile HID regression checks+ run: |+ xcrun swiftc \+ packages/ios-simulator-runtime/native/hid-compatibility.swift \+ packages/ios-simulator-runtime/native/tests/hid-compatibility-checks.swift \+ -o "$RUNNER_TEMP/cindy-hid-checks"++ - name: Run HID regression checks+ run: '"$RUNNER_TEMP/cindy-hid-checks"'diff --git a/apps/mobile/src/session/HomeSurface.tsx b/apps/mobile/src/session/HomeSurface.tsxindex 425cf86ac6..a7879dfc50 100644--- a/apps/mobile/src/session/HomeSurface.tsx+++ b/apps/mobile/src/session/HomeSurface.tsx@@ -2825,7 +2825,7 @@ function HomeScreenContent({ active = true, onModeChange, width, onDismiss, newS<View style={{ paddingTop: nativeHomeHeader ? 0 : embedded ? spacing.lg : edgePadding.paddingTop }}>{nativeHomeHeader ? null : (<View style={styles.homeHeader}>- <View style={styles.headerLeadingActions}>+ <View style={[styles.headerLeadingActions, embedded && styles.headerEmbeddedActions]}><HomeHeaderGlassButtonaccessibilityLabel={onDismiss ? t('home.drawer.closeA11y') : t('devices.list.a11y.openMenu')}onPress={onDismiss ?? openChromeMenu}@@ -2862,9 +2862,9 @@ function HomeScreenContent({ active = true, onModeChange, width, onDismiss, newS</NativePullDownMenu>)}{showRemoteGuide ? (- <View style={styles.headerActions} />+ <View style={[styles.headerActions, embedded && styles.headerEmbeddedActions]} />) : (- <View style={styles.headerActions}>+ <View style={[styles.headerActions, embedded && styles.headerEmbeddedActions]}>{selectedDeviceId && !embedded ? (<HomeHeaderGlassButton accessibilityLabel={t('remoteDesktop.title')} onPress={openSelectedRemoteDesktop} testID="home.remoteDesktopButton"><Monitor color={colors.textPrimary} size={iconSize.action} strokeWidth={iconStroke.regular} />@@ -4582,6 +4582,11 @@ const makeStyles = (colors: ThemeColors) => StyleSheet.create({justifyContent: 'flex-end',width: navigationChrome.target * 2 + spacing.xs,},+ headerEmbeddedActions: {+ // Embedded drawers never show the remote-desktop action. Keep both sides+ // symmetric without reserving space for a second button that cannot appear.+ width: navigationChrome.target,+ },// 菜单外层替标题占住顶栏中间的剩余宽度,长设备名在这里截断而不是挤开右侧按钮。headerTitleSlot: {flex: 1,