Skip to content

Bug - TUI - Application Gets Stuck When Computer Sleep Occurs #16954

Closed as not planned

Description

@bitmoral

Description

When a user is letting the OpenCode TUI run in their terminal and their computer goes to sleep, then the OpenCode application gets stuck in a “working” mode but no further output is generated after the user wakes their computer.

This forces the user to cancel their current run and restart it with a prompt like “Please continue where you left off” causing a negative user experience.

Plugins

None

OpenCode version

v1.1.25

Steps to reproduce

  1. Open OpenCode
  2. Run a prompt
  3. Sleep computer
  4. Wake computer
  5. Observe that OpenCode is stuck in a “working” state with no further output being generated

Screenshot and/or share link

State that the TUI gets stuck in: Image

Operating System

MacOS (Ventura 13.6)

Terminal

Ghostty

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Mar 11, 2026
  2. github-actions commented on Mar 11, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is distinct from these, feel free to clarify the differences.

  3. changed the title [-]Bug - Application Gets Stuck When Computer Sleep Occurs[/-] [+]Bug - TUI - Application Gets Stuck When Computer Sleep Occurs[/+] on Mar 11, 2026
  4. bitmoral commented on Mar 11, 2026

    @bitmoral
    Author

    The issue is distinct as it does not block the user from exiting with double ‘Esc’ and it is not caused by a user manually suspending an OpenCode TUI instance (Ctrl+Z).

  5. removed
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  6. github-actions commented on Jul 4, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions