`fold` always fails on Xcode 27.1 RC: its pose check calls `devicectl device motion hinge-angle`, which this devicectl doesn't have
维护者通常 1 天内回复
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- cli, mobile-dev
调研方向
Start at the fold pose check, which runs devicectl device motion hinge-angle and emits the 'Unknown option' hint, and at the apple_fold_pose_dispatched logging just before it. Reproduce on an iPhone Duo simulator with iOS 27.1 using fold open, and confirm the command runs even though devicectl 651.13.5 lacks motion. Done means that a devicectl without motion either verifies the pose another way or reports a distinct 'dispatched but unverified' error code, and that fold closed behaves the same way.
由索引模型根据 Issue 内容生成。
描述
Environment
- agent-device 0.21.13 (reproduced). The latest, 0.21.27, has the same check (
devicectl device motion hinge-angle --device <udid> --session-timeout 1 --timeout 5) and the same hint, with no other way to verify the pose. - Xcode 27.1 RC, build 27A9275. devicectl 651.13.5.
- macOS 27.0.
- Simulator: iPhone Duo (
com.apple.CoreSimulator.SimDeviceType.iPhone-Duo) on iOS 27.1 (24A94232).
Steps
- Create and boot a stock Duo simulator:
xcrun simctl create "Duo test" com.apple.CoreSimulator.SimDeviceType.iPhone-Duo com.apple.CoreSimulator.SimRuntime.iOS-27-1 xcrun simctl boot <udid> - Open Settings, then unfold:
agent-device open com.apple.Preferences --device "Duo test" agent-device fold open
Expected: fold open reports the verified pose open.
Actual: within about a second it fails:
Error (COMMAND_FAILED): CoreDevice reported no hinge angle sample: Unknown option '--device'
Hint: This Xcode/CoreDevice toolchain does not stream 'devicectl device motion hinge-angle' for this device. Foldable poses can be verified only through that stream; update Xcode to a version that ships it.
But the fold has already happened:
- The request log shows
apple_fold_pose_dispatchedwith the requested pose before the failure. agent-device screenshotnow reports the inner panel's size (951x669). Settings is shown in landscape split view.fold closedfails the same way and brings back the outer panel (466x678).
Why: devicectl 651.13.5 has no motion subcommand. xcrun devicectl help device lists appResize, capture, copy, info, install, notification, orientation, pairings, pasteboard, process, profile, reboot, rename, settings, simulate, sysdiagnose, uninstall, and xcrun devicectl device motion hinge-angle --device <udid> fails with Error: Unknown option '--device'. devicectl device info displays --device <udid> still works on this build and lists both integrated panels.
Suggestion: on a devicectl without device motion, verify the pose another way. For example, use the lit panel's size from a capture, as fold already reports it. Or report the pose as dispatched but unverified, with its own error code, so callers can tell "sent, not verified" from "failed".
- 主要语言
- TypeScript
- 星标
- 5k
- 派生
- 334
- 平均合并
- 11 小时 48 分钟
- 30 天内合并 PR
- 605
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
callstack/agent-device 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
callstack/agent-device#3407 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
callstack/agent-device#3353 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
callstack/agent-device#1869 ·
维护者通常 1 天内回复
-
iOS: fill rejects the right text as `TEXT_ENTRY_MISMATCH` when the focused field moves while typing (since 0.21.25)可能已有人在做 @Lanchez 今天认领。 未关闭
难度 3/5 1-2 天 新手友好度 42/100
callstack/agent-device#3595 ·
维护者通常 1 天内回复
-
ready-for-agent refactor
难度 4/5 3-5 天 新手友好度 22/100
callstack/agent-device#3576 ·
维护者通常 1 天内回复
查看 callstack/agent-device 的全部 Issue
相似的 Issue
-
ui(ListToolbar): search takes the full row on a phone instead of sharing it with the result count未关闭
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
priority:high
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
immich-app/immich#32426 ·
维护者通常 1 天内回复
-
documentation good first issue hacktoberfest help wanted
难度 2/5 1-3 小时 新手友好度 78/100
libredb/libredb-studio#1756 ·
维护者通常 1 天内回复