vercel / vercel/hyper

RFC: reuse existing process

Open
#3,434 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🎨 Type: Enhancement 🤔RFC
Dominant language
TypeScript
Stars
44.7k
Forks
3.6k
Avg merge
21m
Merged PRs (30d)
1

Description

For people that have many terminals open at the same time (hi 👋), creating a new process each time is not practical given Electron's overhead, both in terms of startup time and memory footprint.

One way to do this would be to have a config, say reuseMainProcess. So when hyper is invoked it'll find an existing instance and, if present, send a "new window" command to it.

IMO this should be enabled by default since it makes hyper much more responsive and lightweight

Wondering if this has been floated around before, and if not, what you guys think?

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

No files, tests, or entry points are named. Start by locating how Hyper is invoked and how Electron creates its main process, then investigate whether an existing instance can receive a new-window command. Done would require an agreed configuration behavior, default setting, and validation of reuse across repeated launches.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.