Skip to content

[Bug]: Terminal tabs (and sometimes open file tabs) disappear after the Mac sleeps and wakes #351

Description

@psoulos

Preflight

  • I searched existing issues and this isn't a duplicate
  • I'm on the latest version (or I've noted my version below)

What happened?

What happens

When I leave the OpenKnowledge desktop app open, let my Mac go to sleep, and then wake it back up, my open terminals are gone from the UI. The terminal panel often comes back collapsed/empty as if I never opened a terminal. Occasionally some of my open file tabs close too (not every time).

The terminal sessions themselves seem to still be alive — Copilot indicates the session is still running in the background — but there's no way to get back to them in the UI. They've effectively vanished, and I lose my place in whatever was running.

Steps to reproduce

The quickest way to reproduce it without actually sleeping the machine:

Open the desktop app on a project.
Open a terminal and type something, e.g. ls -l.
Trigger View → Reload.
Notice the terminal panel comes back empty/collapsed and the terminal (with its output) is gone.
The same thing happens after a real sleep/wake cycle — waking the Mac reloads the window the same way View → Reload does.

Expected

After a reload (or waking the Mac), my terminals should still be there — same tabs, still running, with their prior output visible — and my open file tabs should stay open.

Actual

Terminals disappear from the UI (panel collapses, tabs gone) even though the underlying sessions appear to still be running. Open file tabs sometimes close as well.

Environment

OpenKnowledge desktop (Electron) on macOS
Triggered by sleep/wake, or reproduced directly via View → Reload

Steps to reproduce

Open the desktop app on a project.
Open a terminal and type something, e.g. ls -l.
Trigger View → Reload.
Notice the terminal panel comes back empty/collapsed and the terminal (with its output) is gone.
The same thing happens after a real sleep/wake cycle — waking the Mac reloads the window the same way View → Reload does.

Platform

macOS (Apple Silicon)

How did you install Open Knowledge?

Built from source

Version

0.19.2

Logs, errors, or screenshots

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions