-
Couldn't load subscription status.
- Fork 76
feat: add session resumption to codex #506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds session resumption functionality to the Codex module, allowing it to automatically resume previous task sessions when workspaces restart. This enhances the user experience by maintaining conversation continuity across workspace restarts.
Key changes:
- Introduces a
continuevariable (default:true) to control session resumption behavior - Implements session tracking via
~/.codex/.codex-task-sessionfile - Adds logic to find and resume existing sessions or start new ones based on the working directory
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| registry/coder-labs/modules/codex/scripts/start.sh | Implements core session tracking, lookup, and resumption logic with new helper functions |
| registry/coder-labs/modules/codex/main.tf | Adds continue variable and passes it to the start script as an environment variable |
| registry/coder-labs/modules/codex/main.test.ts | Adds test coverage for session resumption behavior |
| registry/coder-labs/modules/codex/README.md | Updates version to 3.1.0 and documents the new session continuity feature |
Description
Add continue variable, and logic for resuming task sessions
Type of Change
Module Information
Path:
registry/coder-labs/modules/codexNew version:
v3.1.0Breaking change: [ ] Yes [X] No
Testing & Validation
bun test)bun fmt)Related Issues