Terminal support, as in opencode-mobile
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 12/100
Piste de recherche
Start with the :server client module, which has no terminal endpoints yet but already uses OkHttp WebSockets, and with the reference implementation in opencode-mobile's features/terminal/. The open questions (drawer placement, renderer choice, module home, and iOS parity) need a maintainer decision before any code. Done means a settled design plus a scoped first slice, such as the REST create/list/remove calls.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Summary
A terminal in the drawer, with the same behaviour as opencode-mobile
(https://github.com/alvarolorentedev/opencode-mobile). I can open shells on the
machine that runs my opencode server, keep them while I move around the app, and
come back to their output later. The shell runs on the server, not on the phone.
Current behavior
The app has no terminal. The transcript shows the commands that the agent runs,
but I cannot type my own. To run a command on the machine that runs my opencode
server, I must use the desktop app or a separate SSH app.
Requested behavior
- The drawer has a terminal section for the current project.
- I can create a terminal from that section. The server starts the shell and owns
its lifetime. - The terminal shows the shell output in a monospace terminal view. The view
understands terminal escape sequences, so colors, cursor moves, and full-screen
programs such as vim draw correctly. - I can type into the terminal. A hardware keyboard works, and an accessory row
above the phone keyboard offers the keys a phone lacks, such as Ctrl, Esc, Tab,
and the arrow keys. - The terminal follows the view size. When the view or the font scale changes,
the app tells the server the new column and row count. - Terminals stay alive while I move around the app. When I come back, the output
is still there. - When the connection drops, the app reconnects and resumes the output from where
it stopped. - I can close a terminal from the section. Closing tells the server to remove it.
- Terminals are listed from the server, so a terminal I started on the desktop
also appears here, and a terminal survives an app restart. - The terminal uses the same server connection and credentials as the rest of the
app, including the one-time connect ticket.
Open questions
- Where in the drawer does the terminal section sit, next to sessions or below
them? - Does the terminal section appear only when a project is open?
- Which terminal emulator renderer should the app use? A Compose renderer written
for this app, or a library? The repo rules say no web views as the app shell;
does a web view only for terminal rendering stay allowed? - What happens when the app is killed by the system? Does the server keep the
shell, and does the app reattach at the next launch? - Does the iOS app plan a terminal, or is this Android-first? A parity row must
say which.
Notes for maintainers
- opencode-mobile implements this in
features/terminal/
(https://github.com/alvarolorentedev/opencode-mobile/tree/main/features/terminal).
Its connection model: REST calls create, list, remove, and resize the terminal;
a connect-token call returns a one-time ticket; a WebSocket then streams output
to the app and input to the shell; a cursor value resumes output after a
reconnect. - The opencode server already exposes this API. No server work is needed.
- Our
:serverclient has no terminal endpoints yet. It already uses OkHttp
WebSockets for client tools, so the transport is in place. - The module graph is fixed. The terminal needs a home in an existing module, or
a new module needs a coordinator decision. - AppLog must never log terminal input or output. The logging rules forbid
message text and file contents. - Terminal output updates directly on the next frame. Keystrokes and output are
direct input, so they never animate.
- Langage dominant
- Kotlin
- Étoiles
- 146
- Forks
- 35
- Merge moyen
- 7 h 41 min
- PR mergées (30 j)
- 221
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de anomalyco/opencode-android
-
F-droid releaseOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
anomalyco/opencode-android#345 ·
Les mainteneurs répondent en général sous 1 jour
-
Crash: IllegalStateException in AppContext.getLiveValuePeut-être pris @Tarquinen l’a pris il y a 1 jour. Ouvertecrash crash-triaged
Difficulté 3/5 Une demi-journée Accessibilité débutants 65/100
anomalyco/opencode-android#343 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
crash crash-needs-human crash-triaged
Difficulté 3/5 1-2 jours Accessibilité débutants 58/100
anomalyco/opencode-android#341 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
crash crash-needs-human crash-triaged
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
anomalyco/opencode-android#340 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Crash: OutOfMemoryError in LiveTransportKt$awaitResponse$2$2.onResponsePeut-être pris @Tarquinen l’a pris il y a 3 jours. Ouvertecrash crash-triaged
Difficulté 2/5 1-3 heures Accessibilité débutants 35/100
anomalyco/opencode-android#320 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de anomalyco/opencode-android
Issues similaires
-
[Request]: KylleneOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
ScoopInstaller/Extras#19589 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
-
difficulty: beginner documentation help wanted networking
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
feature request needs decision
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
tswistak/Battery-Monitor#207 ·
Les mainteneurs répondent en général sous 1 jour