apps/mobile/modules/t3-terminal/android/src/main/java/expo/modules/t3terminal/T3TerminalModule.kt | 4 + apps/mobile/modules/t3-terminal/android/src/main/java/expo/modules/t3terminal/T3TerminalView.kt | 21 +- apps/mobile/modules/t3-terminal/ios/T3TerminalModule.swift | 4 + apps/mobile/modules/t3-terminal/ios/T3TerminalView.swift | 14 +- apps/mobile/src/features/terminal/NativeTerminalSurface.tsx | 44 ++- apps/mobile/src/features/terminal/ThreadTerminalRouteScreen.tsx | 290 ++++++++++---------- apps/mobile/src/features/terminal/nativeTerminalModule.ts | 1 + apps/mobile/src/features/terminal/terminalMenu.test.ts | 23 ++ apps/mobile/src/features/terminal/terminalMenu.ts | 10 +- apps/mobile/src/features/terminal/useTerminalGridSync.test.ts | 183 +++++++++++++ apps/mobile/src/features/terminal/useTerminalGridSync.ts | 52 ++++ apps/mobile/src/features/terminal/useTerminalLifecycle.test.ts | 177 ++++++++++++ apps/mobile/src/features/terminal/useTerminalLifecycle.ts | 79 ++++++ apps/mobile/src/features/terminal/useTerminalSurfaceBuffer.test.ts | 100 +++++++ apps/mobile/src/features/terminal/useTerminalSurfaceBuffer.ts | 17 ++ apps/mobile/src/features/threads/ThreadGitControls.tsx | 6 + apps/mobile/src/features/threads/ThreadRouteScreen.tsx | 62 ++++- apps/mobile/src/state/use-terminal-session.ts | 44 ++- apps/server/src/auth/RpcAuthorization.test.ts | 23 ++ apps/server/src/auth/RpcAuthorization.ts | 6 +- apps/server/src/observability/RpcInstrumentation.ts | 1 + apps/server/src/terminal/Manager.test.ts | 98 +++++++ apps/server/src/terminal/Manager.ts | 29 +- apps/server/src/ws.ts | 9 +- apps/web/src/components/ChatView.tsx | 213 +++++++++++---- apps/web/src/components/ProjectScriptsControl.tsx | 17 +- apps/web/src/components/ThreadTerminalDrawer.permissions.test.tsx | 153 +++++++++++ apps/web/src/components/ThreadTerminalDrawer.test.ts | 69 ++++- apps/web/src/components/ThreadTerminalDrawer.tsx | 172 +++++++++--- apps/web/src/components/onboarding/WelcomeWizard.terminal.test.tsx | 470 ++++++++++++++++++++++++++++++++ apps/web/src/components/onboarding/WelcomeWizard.tsx | 62 ++++- apps/web/src/components/settings/ConnectionsSettings.logic.test.ts | 36 +++ apps/web/src/components/settings/ConnectionsSettings.logic.ts | 32 ++- apps/web/src/components/settings/ConnectionsSettings.tsx | 12 +- apps/web/src/state/terminalSessionAvailability.test.ts | 104 +++++++ apps/web/src/state/terminalSessions.ts | 36 ++- apps/web/src/terminal/ghostty/surface.test.ts | 117 +++++++- apps/web/src/terminal/ghostty/surface.ts | 18 ++ packages/client-runtime/src/rpc/client.ts | 3 +- packages/client-runtime/src/state/terminal.ts | 9 + packages/contracts/src/auth.ts | 3 + packages/contracts/src/rpc.ts | 10 + packages/contracts/src/terminal.ts | 3 + packages/shared/src/terminalLabels.test.ts | 25 +- packages/shared/src/terminalLabels.ts | 23 +- 45 files changed, 2563 insertions(+), 321 deletions(-)