The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 10:45 UTC
fix(server): read the smallest iOS simulator text size as small (#22114)
Co-authored-by: GPT-6.1 Sol <noreply@openai.com>
Victor Vogel committed
Oct 30, 2026 at 20:23 UTC
0d51b146381c53d7f64d0a20bdd3839a3dedd846
2 files changed
+14
-4
apps/server/src/device/DeviceActions.test.ts
+12
@@ -155,6 +155,18 @@ describe("runDeviceAction", () => {
155
});
156
157
describe("readDeviceDetail", () => {
158
+ it.effect("reads the smallest iOS text size as small", () =>
159
+ Effect.gen(function* () {
160
+ const { ready } = makeReady((call) =>
161
+ call.args.join(" ").endsWith("ui SIM-1 content_size")
162
+ ? { stdout: "extra-small\n" }
163
+ : { code: 1 },
164
+ );
165
+ const detail = yield* readDeviceDetail(ready, "ios", udid);
166
+ expect(detail.settings.textSize).toBe("small");
167
+ }),
168
+ );
169
+
170
it.effect("reads iOS settings from simctl and the accessibility helper", () =>
171
Effect.gen(function* () {
172
const { ready } = makeReady((call) => {
apps/server/src/device/DeviceActions.ts
+2
-4
@@ -102,10 +102,8 @@ const textSizeFromIos = (category: string): DeviceTextSize | undefined => {
102
);
103
if (entry) return entry[0];
104
if (category.startsWith("accessibility")) return "extra-large";
105
- if (category.includes("extra")) return "large";
106
- return category === "extra-small" || category === "small" || category === "medium"
107
- ? "small"
108
- : "default";
105
+ if (category === "extra-small" || category === "small" || category === "medium") return "small";
106
+ return category.includes("extra") ? "large" : "default";
107
};
108
109
const textSizeFromAndroid = (scale: number): DeviceTextSize => {