Multiple terminals per folder
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start at RemoteTerminalRepository.open and trace how the terminal button opens a PTY for the current folder. Then inspect the app's terminal UI and the existing /api/pty client calls; the issue proposes folder tabs, a terminal list, creation, rename, close, and remembering the last used terminal. Done means users can manage and switch among multiple terminals for one folder, with the selected terminal opening from the chat button.
Written by the indexing model from the issue text.
Description
Problem
The terminal shows a single shell per folder: opening it reuses the first running PTY of the session's directory, or creates one when there is none (RemoteTerminalRepository.open). Two chats in the same folder share it, and other terminals of that folder (for example opened from another client) are not reachable. Running a dev server in one shell while working in another is not possible.
The server already supports more:
GET /api/ptylists every PTY of a location, including exited ones kept until removal;POST /api/ptycreates a new one (optionaltitle,command,args,cwd,env);PUT/DELETE /api/pty/{ptyID}rename or resize, and close.
Open questions
- How to link them
- per folder, as today, with tabs or a picker listing all the folder's terminals;
- or per chat: the app creates a terminal titled after the session and finds it again by title. The server has no session ↔ PTY link, so this would be an app-side convention.
- Persistence
- what happens to PTYs when the server restarts, and to exited ones that stay in the list;
- the experimental
/api/experimental/persistent-pty/*endpoints (snapshot,handoff,shutdown,connect) look meant for terminals that survive reconnects or restarts; they need a closer look before relying on them.
- Management
- new terminal, rename, close (one or all), and showing or clearing exited ones;
- what the chat's terminal button opens when a folder has several: the last used, or the picker.
Proposal
Start from tabs per folder (the server's own model): list the folder's terminals, add "New terminal", rename and close, remember the last one used. Per-chat linking and persistent PTYs can follow once the questions above are answered.
- Dominant language
- Kotlin
- Stars
- 1
- Forks
- 0
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 42
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from beppe2880/opencode-mobile
-
Add an iOS app with Kotlin MultiplatformPossibly taken @beppe2880 claimed this today. Openfeature
Difficulty 5/5 Over a week Newbie friendliness 15/100
beppe2880/opencode-mobile#94 ·
Maintainers usually reply within 1 day
-
feature
Difficulty 4/5 3-5 days Newbie friendliness 42/100
beppe2880/opencode-mobile#89 ·
Maintainers usually reply within 1 day
-
Ability to minimize the sessions pane bigger screensPossibly taken @beppe2880 claimed this 1 day ago. Openfeature
Difficulty 3/5 1-2 days Newbie friendliness 65/100
beppe2880/opencode-mobile#78 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
confirmed feature
Difficulty 4/5 3-5 days Newbie friendliness 55/100
beppe2880/opencode-mobile#68 ·
Maintainers usually reply within 1 day
-
confirmed feature
Difficulty 4/5 3-5 days Newbie friendliness 52/100
beppe2880/opencode-mobile#33 ·
Maintainers usually reply within 1 day
All issues in beppe2880/opencode-mobile
Similar issues
-
copy design-review mac P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
tosunlab/hisarapp-core#510 ·
-
priority: p2 type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
googleapis/kotlin-genai#213 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RevenueCat/purchases-hybrid-common#2039 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
partiql/partiql-scribe#223 ·
Maintainers usually reply within 3 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
damontecres/Wholphin#2143 ·
Maintainers usually reply within 2 days