Skip to content
This repository was archived by the owner on May 23, 2026. It is now read-only.
This repository was archived by the owner on May 23, 2026. It is now read-only.

Graceful opencode session hibernation (Session #1) #28

Description

@JRedeker

Summary

Implement graceful hibernation for idle OpenCode sessions. Instead of leaving expensive LLM sessions running, hibernate (SIGSTOP or snapshot) and restore on reattach.

Why

Running OpenCode sessions consume LLM API quota even when idle. Hibernation frees resources while preserving session state.

Acceptance Criteria

  • Idle timeout triggers hibernation (configurable)
  • Session state preserved across hibernate/restore
  • No data loss on restore
  • Status bar shows hibernated sessions distinctly
  • oca attach transparently restores

Dependencies

Blocked by Session #0 (Pattern B topology).

Proposal

docs/proposals/2026-05-03-session-and-resource-architecture.md § Change #1

WSJF Estimate

Value: 7 | TC: 5 | RROE: 7 | Effort: 8 | WSJF: 1.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions