Skip to content

Conversation

@DevelopmentCats
Copy link
Contributor

Description

Add continue variable, and logic for resuming task sessions

Type of Change

  • New module
  • New template
  • Bug fix
  • Feature/enhancement
  • Documentation
  • Other

Module Information

Path: registry/coder-labs/modules/codex
New version: v3.1.0
Breaking change: [ ] Yes [X] No

Testing & Validation

  • Tests pass (bun test)
  • Code formatted (bun fmt)
  • Changes tested locally

Related Issues

Copy link
Contributor

Copilot AI left a 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 continue variable (default: true) to control session resumption behavior
  • Implements session tracking via ~/.codex/.codex-task-session file
  • 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

@DevelopmentCats DevelopmentCats merged commit d3b40c0 into main Oct 27, 2025
4 checks passed
@DevelopmentCats DevelopmentCats deleted the cat/codex-resume branch October 27, 2025 12:45
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.

2 participants