vercel / vercel/hyper

Terminal not visible after MacBook comes back from sleep

Open
#4,215 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
44.7k
Forks
3.6k
Avg merge
21m
Merged PRs (30d)
1

Description

Uncaught TypeError: Cannot read property 'isWrapped' of undefined
    at Buffer._reflowSmaller (bundle.js:1)
    at Buffer._reflow (bundle.js:1)
    at Buffer.resize (bundle.js:1)
    at BufferSet.resize (bundle.js:1)
    at Terminal.resize (bundle.js:1)
    at Terminal.resize (bundle.js:1)
    at fit (bundle.js:1)
    at Terminal.e.fit (bundle.js:1)
    at Term.fitResize (bundle.js:1)
    at resizeTimeout.resizeTimeout.setTimeout (bundle.js:1)

image

  • The issue is reproducible in vanilla Hyper.app: No. It seems to be related to a combo of my add-ons, though I've tried disabling them in sequence to determine which could be causing it.

Issue

So I have a new MacBook Pro 16", and have turned off graphics switching on it. Occasionally when I close my MacBook for an extended amount of time and open it back up, my Terminal Windows and Tabs are blank:
image
I can create a new window or tab and the terminal is there. I lose my history, which is annoying.

Attaching power settings on Mac:
image
image

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 with the reported Buffer._reflowSmaller, Buffer._reflow, Buffer.resize, and Terminal.resize call path, then reproduce the sleep/wake case on macOS 10.15.2 with Hyper 3.0.2. Compare behavior with the reported add-ons disabled. Done means existing terminal windows and tabs remain visible after wake without losing their history.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, typescript
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.