[supervisor] non blocking terminal reading
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 13.8k
- Forks
- 1.4k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 5
Description
Right now one client can block reading from a task terminal. Instead we could look into non blocking solutions.
In Theia, we don't directly write to each client but into the ring buffer from this each client then reads with own speed without blocking other clients.
@csweichel pointed out how go channels can be used as ring buffers: https://tanzu.vmware.com/content/blog/a-channel-based-ring-buffer-in-go
Contributor 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.
Research direction
Start by locating the supervisor code that reads from task terminals; the issue names no files or tests. Review the described Theia ring-buffer approach and the linked Go channel-based ring-buffer article. Done means one client's terminal-reading behavior no longer blocks other clients, with the behavior verified by relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, typescript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100