diff --git a/packages/app/src/app/pages/settings.tsx b/packages/app/src/app/pages/settings.tsx index 787251bb1..d94276dde 100644 --- a/packages/app/src/app/pages/settings.tsx +++ b/packages/app/src/app/pages/settings.tsx @@ -1204,167 +1204,182 @@ export default function SettingsView(props: SettingsViewProps) {
-
-
-
-
Host pairing
-
Share these details with a trusted device.
+
+
+
+
+
OpenWork host pairing
+
+ Share these details with a trusted device. Keep the host on the same network for the fastest setup. +
+
+
+ {hostStatusLabel()} +
-
- {hostStatusLabel()} + +
+
+
+
OpenWork Server URL
+
+ {hostConnectUrl() || "Starting server…"} +
+ +
+ {hostConnectUrlUsesMdns() + ? ".local names are easier to remember but may not resolve on all networks." + : "Use your local IP on the same Wi-Fi for the fastest connection."} +
+
+
+ +
+ +
+
+
Client token
+
+ {clientTokenVisible() + ? hostInfo()?.clientToken || "—" + : hostInfo()?.clientToken + ? "••••••••••••" + : "—"} +
+
Use on phones or laptops connecting to this host.
+
+
+ + +
+
+ +
+
+
Host token
+
+ {hostTokenVisible() + ? hostInfo()?.hostToken || "—" + : hostInfo()?.hostToken + ? "••••••••••••" + : "—"} +
+
Keep private. Required for host approvals.
+
+
+ + +
+
-
-
-
-
OpenWork Server URL
-
- {hostConnectUrl() || "Starting server…"} -
- -
- {hostConnectUrlUsesMdns() - ? ".local names are easier to remember but may not resolve on all networks." - : "Use your local IP on the same Wi-Fi for the fastest connection."} +
+
+
OpenCode direct access
+
+ Use these credentials when a client connects directly to OpenCode without an OpenWork host. +
+
+ +
+
+
+
OpenCode username
+
+ {opencodeUserVisible() + ? opencodeUsername() || "—" + : opencodeUsername() + ? "••••••••" + : "—"}
- -
- -
- -
-
-
Client token
-
- {clientTokenVisible() - ? hostInfo()?.clientToken || "—" - : hostInfo()?.clientToken - ? "••••••••••••" - : "—"} +
Use with the password when connecting directly.
-
Use on phones or laptops connecting to this host.
-
-
- - -
-
- -
-
-
Host token
-
- {hostTokenVisible() - ? hostInfo()?.hostToken || "—" - : hostInfo()?.hostToken - ? "••••••••••••" - : "—"} +
+ +
-
Keep private. Required for host approvals.
-
- - -
-
-
-
-
OpenCode username
-
- {opencodeUserVisible() - ? opencodeUsername() || "—" - : opencodeUsername() - ? "••••••••" - : "—"} +
+
+
OpenCode password
+
+ {opencodePasswordVisible() + ? opencodePassword() || "—" + : opencodePassword() + ? "••••••••" + : "—"} +
+
Keep private. Required for direct OpenCode access.
-
Use with the password when connecting directly.
-
-
- - -
-
- -
-
-
OpenCode password
-
- {opencodePasswordVisible() - ? opencodePassword() || "—" - : opencodePassword() - ? "••••••••" - : "—"} +
+ +
-
Keep private. Required for direct OpenCode access.
-
-
- -
@@ -1372,103 +1387,103 @@ export default function SettingsView(props: SettingsViewProps) { -
-
+
+
+
+
+
+
OpenWork host
+ + Alpha + +
+
+ Connect to a host running OpenWork on another device. Use the host URL and client token from pairing. +
+
+
+ {openworkStatusLabel()} +
+
+ +
+ setOpenworkUrl(event.currentTarget.value)} + placeholder="http://127.0.0.1:8787" + hint="Use the host URL shared during pairing." + disabled={props.busy} + /> + + +
+ +
+ Resolved host: {props.openworkServerUrl || "Not set"} +
+ +
+ + + +
+
+ +
-
-
OpenWork host
- - Alpha - -
+
OpenCode direct
- OpenWork discovers your OpenCode address and port from the host. Use a host URL to connect across devices. + Use this only when no OpenWork host is available. Manage direct engine connections from the workspace picker.
-
- {openworkStatusLabel()} +
+ Current engine: {props.baseUrl || "Not connected"}
- -
- setOpenworkUrl(event.currentTarget.value)} - placeholder="http://127.0.0.1:8787" - hint="Use the host URL shared during pairing." - disabled={props.busy} - /> - - -
- -
- Resolved host: {props.openworkServerUrl || "Not set"} -
- -
- - - -
- -
- - Advanced: OpenCode direct - - -
-
Connect straight to an OpenCode engine when no host is available.
-
- Current engine: {props.baseUrl || "Not connected"} -
-
Manage direct connections from the workspace picker.
-
-