iOS: hinge control and fold state for leased iPhone Duo simulators
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- ios, typescript
调研方向
Start by reading the input socket handling for hinge control (0x10) and the existing fold support through agent-device described in the issue, along with related issues #1013, #1019, #1531, and #1534. Trace how stream size changes reach clients and where input and stream metadata are defined. Done means leased iOS Duo simulators accept hinge control and report hinge support, pose or angle, and active screen to clients.
由索引模型根据 Issue 内容生成。
描述
The problem
A client that shows a leased iPhone Duo can't control its hinge, and can't tell which pose it is in.
- Hinge control isn't implemented. The input socket answers hinge control (
0x10) with{ok:false}on every platform (#1013), and #1019 left "Duo devices and their hinge" out of scope. - Folding works, but only through agent-device.
agent-device fold open | closed | half-openworks through the agent-device front, and since #1531/#1534 the stream follows the panel in use and changes size on a fold. - The stream reports only the picture's size. It doesn't say that the device is foldable, its pose or hinge angle, or which screen is in use.
As a result, T3 Code's Device panel turns its iPhone Duo 3D view off for pool devices, and draws the unfolded inner panel (720×506) into a portrait frame, squeezed about 2× (pingdotgg/t3code#38343). T3 Code's own device hub gives it these fields for local simulators: supportsHingeAngle, hingeAngle (0 to 180), hingePose (closed, book, open, laptop, tent) and screenId.
Who runs into this
A developer building an app for the iPhone 18 Pro and the iPhone Duo. A Mac mini M1 runs Simlock 0.8.0 (gateway and worker side by side, with one slim iPhone 18 Pro and one slim iPhone Duo kept warm). A T3 Code environment on another Mac leases from it over Tailscale, and builds and serves the app (Metro) from there. Agents drive the devices with agent-device. People review the UI in T3 Code's Device panel, which is where folding by hand and seeing the true unfolded shape matter.
What you would like to happen
-
Hinge control on iOS foldable simulators.
0x10sets the pose or hinge angle on a leased iPhone Duo and answers{ok:true}, asagent-device foldalready can. -
Fold state reported to stream and input clients:
- that the device supports a hinge;
- its current pose or angle;
- which screen is in use.
This would ride beside the existing mid-stream size change, so a client can draw the right frame and its own fold controls.
-
Optionally, a flag on the lease or device saying it is foldable, so a client knows before the stream opens.
Anything else
- Versions: Simlock 0.8.0, agent-device 0.21.36, Xcode 27.2 (27B52), runtime
iOS-27-2-iPhone19-4(24B91016s), macOS 27.0.1 on the worker. - Today's workaround: fold with
agent-device foldfrom the agent's machine. For a person to fold by hand, or for a 3D view, use a local Duo outside Simlock. - Related: #1013, #1019, #1531, #1534, #1559, #1539 (orientation on an iPhone Duo through the agent-device front).
- 主要语言
- TypeScript
- 星标
- 705
- 派生
- 40
- 平均合并
- 12 小时 9 分钟
- 30 天内合并 PR
- 376
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
callstackincubator/simlock 的其他 Issue
-
request:new
难度 2/5 1-3 小时 新手友好度 72/100
callstackincubator/simlock#1806 ·
维护者通常 1 天内回复
-
bug:new
难度 2/5 1-3 小时 新手友好度 78/100
callstackincubator/simlock#1780 · 1 条评论 ·
维护者通常 1 天内回复
-
task:draft
难度 2/5 1-3 小时 新手友好度 72/100
callstackincubator/simlock#1441 ·
维护者通常 1 天内回复
-
bug:new
难度 2/5 1-3 小时 新手友好度 45/100
callstackincubator/simlock#1805 · 1 条评论 ·
维护者通常 1 天内回复
-
bug:new
难度 2/5 1-3 小时 新手友好度 45/100
callstackincubator/simlock#1804 · 1 条评论 ·
维护者通常 1 天内回复
查看 callstackincubator/simlock 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 82/100
维护者通常 1 天内回复
-
Update project links after the repository renames可能已有人在做 @JonathanTSilva 今天认领。 未关闭ai-generated priority: p2 size: xs type: bug
难度 2/5 1-3 小时 新手友好度 85/100
JonathanTSilva/jts-website#119 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 74/100
promplate/code-review#158 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
[Docs] CONTRIBUTING points the Backend Remake milestone at a branch that does not exist可能已有人在做 @franpts2 今天认领。 未关闭docs
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 3 天内回复