See what is running in the background: subagents and commands
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
Start by reading the session list and chat session UI, then trace how shell tool parts use shellID to follow output and how session.execution.started/ended events arrive for child sessions. The issue names the server endpoints to inspect: /api/session/active, /api/session?parentID=…, and /api/shell?location=…. Done means running subagents and commands can be inspected from the chat and session list, with shell output and stopping available as described; the attribution and terminal shell questions also need resolution.
Written by the indexing model from the issue text.
Description
Problem
When the agent works in the background (subagents started with the task tool, shell commands that keep running), the app only shows that a session is running. There is no way to see what is running, neither inside the chat nor from the session list, nor to open or stop it.
Proposal
- In the chat: a "Running" indicator in the header (for example "2 subagents · 1 command") that opens a sheet listing everything running for this session:
- subagents: title, agent, elapsed time, tap to open the child session;
- background shell commands: command, elapsed time, last lines of output, Stop.
- In the session list: the row preview shows the same summary under the title while something runs (for example "Writing · 2 subagents · 1 command"), instead of only the running dot.
- Optionally, a global "Running" view from the session list, with everything running across sessions and projects of the active server.
Server API (2.0.27)
GET /api/session/active: sessions currently draining on the server.GET /api/session?parentID=…: child sessions (subagents);session.execution.started/endedevents already arrive for them.GET /api/shell?location=…: running shell commands of a location (Shell.Info: command, cwd, pid, status, time, metadata);GET /api/shell/{id}/outputfor the output tail,DELETE /api/shell/{id}to stop.
Open questions
- How to attribute a running shell to a session: the tool part metadata carries the
shellID(already used to follow shell output live), but shells started elsewhere have no session. - Whether terminal (PTY) shells belong in the same list or stay separate (see #88).
- Refresh: follow events where possible, and poll the shell list only while the sheet or the list is visible.
- 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 5/5 Over a week Newbie friendliness 35/100
beppe2880/opencode-mobile#88 ·
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
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 3 days
-
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 72/100
pengchujin/aerial-tv#771 · 2 comments ·
Maintainers usually reply within 1 day