feat(terminal): refactor runtime and add mobile workspace (#2280)
Replace the legacy terminal flow with a shared authenticated WebSocket runtime used across web, desktop, relay, and mobile surfaces. - introduce the v3 terminal protocol with scoped attachments, snapshots, ordered output, bounded replay history, reconnects, and explicit lifecycle - harden PTY creation, restart, resize, close, force-kill, idle cleanup, shell selection, login mode, environment sanitization, and appearance sync - add runtime-aware terminal APIs with relay authentication and Electron parity - add a fullscreen mobile terminal workspace with touch scrolling, long-press selection, safe-area controls, quick keys, and Ctrl/Alt input - add terminal selection attachments, preview detection, project actions, shell settings, and localized UI - harden Ghostty rendering, resize recovery, Unicode handling, block characters, line height, and stale-row behavior - remove the obsolete terminal SSE path and update reverse-proxy guidance - expand terminal runtime, transport, input, selection, and store coverage - avoid duplicate web builds when preparing mobile assets in root CI builds
This commit is contained in:
committed by
GitHub
parent
f5b4a267c0
commit
d4a8c4d2e1
@@ -11,12 +11,14 @@ The mobile package reuses the web build, then rewrites `mobile.html` to `index.h
|
||||
- Connections are saved locally in the app and can be managed from the mobile overflow menu under `Instances`.
|
||||
- The connection screen and `Instances` menu item are Capacitor-only. Hosted `mobile.html` in a normal browser keeps the regular web behavior.
|
||||
- Password-protected OpenChamber servers can be unlocked from the mobile app. The app stores the issued client token with the saved connection.
|
||||
- The Terminal workspace surface runs its PTY on the active OpenChamber server over the shared authenticated runtime transport; it never opens a local shell on the phone or tablet. Closing the surface detaches the renderer while the server session remains available for reattachment. On touch devices, dragging scrolls the buffer while long-pressing and dragging selects terminal text.
|
||||
|
||||
## Commands
|
||||
|
||||
Run these from `packages/mobile`, or use the root `mobile:*` aliases.
|
||||
|
||||
- `bun run build`: builds `packages/web` and prepares mobile web assets.
|
||||
- `bun run build:assets`: prepares mobile assets from an existing `packages/web/dist` build; the root workspace build uses this to avoid rebuilding web.
|
||||
- `bun run sync`: prepares assets and runs `cap sync`.
|
||||
- `bun run add:ios`: creates the native iOS project.
|
||||
- `bun run add:android`: creates the native Android project.
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "bun run --cwd ../web build && node scripts/prepare-web-assets.mjs",
|
||||
"build": "bun run --cwd ../web build && bun run build:assets",
|
||||
"build:assets": "node scripts/prepare-web-assets.mjs",
|
||||
"sync": "node scripts/with-mobile-env.mjs \"bun run build && cap sync\"",
|
||||
"add:ios": "cap add ios",
|
||||
"add:android": "cap add android",
|
||||
|
||||
Reference in New Issue
Block a user