Skip to content

[Feature]: Agent Control Surface Parity - durable session lifecycle and exact resume #5703

Closed

Description

@wolfiesch

Parent: #5700
Suggested labels: enhancement, agent-workflow, P1

Summary

Persist provider session identity and lifecycle state so sleeping agents can resume the exact underlying provider session after sleep, wake, SSH relay, runtime restart, or automation reuse.

Definition of done

  • Provider session metadata is captured before hook normalization and carried through local plus SSH hook envelopes.
  • Sleeping-agent records persist provider, provider session kind/value, cwd, agent type, prompt/assistant preview, timestamps, retention metadata, and structured resume argv.
  • Sleep snapshots live agent status before dropping worktree status.
  • Wake launches exactly one provider-specific resume process per sleeping record.
  • Duplicate-click and race protection prevent multiple resume processes for one record.
  • Resume failures surface provider CLI failure details and keep records until explicit dismissal.
  • Unsupported providers expose explicit unsupported states.

Immediate slices

  • Keep the verified resume map tight for Claude, Codex, Gemini, Antigravity, OpenCode, Droid, Grok, and Devin where current code supports them.
  • Gate Cursor, Pi/OMP, Amp, Hermes, Copilot, and Command Code until IDs and resume commands are verified.
  • Normalize resume error output for CLI, runtime, mobile, and automation callers.

Related

Activity

  1. added
    size/l
    on Jun 18, 2026
  2. added theissue type on Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

size/l

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions