Skip to content

Persist agent session metadata for workspace resume#4706

Open
Jinwoo-H wants to merge 4 commits into
mainfrom
Jinwoo-H/feat-persist-agent-session-metadata-on-sleep-for
Open

Persist agent session metadata for workspace resume#4706
Jinwoo-H wants to merge 4 commits into
mainfrom
Jinwoo-H/feat-persist-agent-session-metadata-on-sleep-for

Conversation

@Jinwoo-H
Copy link
Copy Markdown
Contributor

@Jinwoo-H Jinwoo-H commented Jun 5, 2026

Summary

  • capture resumable provider session metadata from agent hooks and relay it into renderer agent status
  • persist sleeping agent session records when a workspace sleeps, then restore them from workspace-session state
  • add sidebar resume/dismiss actions that create a new agent terminal with the provider CLI resume command
  • document verified Codex/Claude/Gemini resume-session behavior and add schema/startup/store regression tests

Closes #1796

Verification

  • pnpm exec vitest run --config config/vitest.config.ts src/shared/agent-session-resume.test.ts src/shared/workspace-session-schema.test.ts src/renderer/src/store/slices/store-cascades.test.ts
  • pnpm run typecheck:node
  • pnpm run typecheck:web
  • pnpm run typecheck:cli
  • pnpm run lint
  • git diff --check
  • Electron e2e: verified real sleep capture path stores a sleeping Codex session, the sidebar renders Resume Codex, and clicking it clears the sleeping record, creates a Codex-marked terminal tab in a real workspace, and queues 'codex' 'resume' '' with resume telemetry\n\n## Notes\n- Electron verification intercepted the final queued startup command instead of launching Codex against fake provider session ids; Orca-side capture, persistence, rendering, tab creation, and command generation were exercised end to end.

Made with Orca 🐋

Jinwoo-H and others added 4 commits June 5, 2026 10:47
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: persist agent session metadata on sleep for one-click resume on wake

1 participant