shekohex / shekohex/opencode-pty

[Feature]: Setting to have the web ui running even without /pty-... command

Open
#60 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
582
Forks
59
Avg merge
13h 20m
Merged PRs (30d)
2

Description

Problem Statement

"I'm always frustrated when..."

I try to reload the browser tab with the running sessions ... and page is not reachable.

even with my own shell script setting the port env, when opencode start ... and launches a pty session ... I manually must use /pty-... to be able to refresh the browser tab to see the sessions.

Proposed Solution

a config param (v1 -> env, v2 -> env+config) to have the pty web ui start on opencode use

Alternatives Considered

... doing it manual. But when the a task runs, until the /pty-... command is processed, it might take a while and I am not able to look at the output / not being able to input if something was needed on the console.

Use Case

Describe the use case(s) this feature would enable:

being able to interact with the pty session while a task is running, and the /pty-... is not yet being processed and thus the webui is not reachable.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing opencode startup and the existing /pty-... command handling that launches the PTY web UI; the issue does not name specific files or tests. Done means a setting, initially an environment variable, causes the web UI to be reachable when opencode starts, before /pty-... is processed, while existing manual behavior remains usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
bun, typescript
Domain
cli, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.