Matthias Nott
2026-03-03 6a1bf115c16c56d8db462cde70f645e85e84df0f
feat: add hybrid session kind to WsSession type + UI

WsSession now has optional kind field ("api" | "visual").
SessionPicker shows "Headless" or "Visual" labels instead of
just "Claude" / "Terminal".
2 files modified
changed files
components/SessionPicker.tsx patch | view | blame | history
types/index.ts patch | view | blame | history
components/SessionPicker.tsx
....@@ -248,7 +248,7 @@
248248 marginTop: 2,
249249 }}
250250 >
251
- {session.type === "terminal" ? "Terminal" : "Claude"}
251
+ {session.kind === "api" ? "Headless" : session.kind === "visual" ? "Visual" : session.type === "terminal" ? "Terminal" : "Claude"}
252252 {session.isActive ? " — active" : ""}
253253 </Text>
254254 </View>
types/index.ts
....@@ -64,6 +64,7 @@
6464 index: number;
6565 name: string;
6666 type: "claude" | "terminal";
67
+ kind?: "api" | "visual";
6768 isActive: boolean;
6869 id: string;
6970 }