Terminal not visible after MacBook comes back from sleep
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 44.7k
- Forks
- 3.6k
- Avg merge
- 21m
- Merged PRs (30d)
- 1
Description
-
I am on the latest Hyper.app version
-
I have searched the issues of this repo and believe that this is not a duplicate

Could be related to: https://github.com/zeit/hyper/issues/3160 or https://github.com/zeit/hyper/issues/3341 -
OS version and name: MacOS 10.15.2 (19C57)
-
Hyper.app version: Hyper 3.0.2 (stable)
-
Link of a Gist with the contents of your .hyper.js: https://gist.github.com/dbhagen/853571c4b583216b3e8461ab9da75c7f
-
Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere):
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)

- 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:

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:


Contributor guide
No contributing guide indexed for this repository
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 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