Skip to content

feat: a basic session management #776

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

edoardoc
Copy link

@edoardoc edoardoc commented May 2, 2025

A basic session management option

new parameter -S / --session : start or continue a named session

new params: --session-list|--session-path|--session-dump|--session-delete to manage saved sessions

Session logs now include the last OpenAI response_id alongside message history

On restart, it reloads both messages and response_id, then call /responses.create({ previous_response_id }) so the model picks up exactly where it left off

Interrupting mid-stream (Ctrl+C) and rerunning codex -S foo … seamlessly resumes in-flight

Copy link

github-actions bot commented May 2, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@edoardoc
Copy link
Author

edoardoc commented May 2, 2025

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request May 2, 2025
@edoardoc edoardoc changed the title session mngmt with OpenAI responseID A basic session management option May 2, 2025
@edoardoc edoardoc changed the title A basic session management option A basic session management option [wip] May 3, 2025
@edoardoc edoardoc force-pushed the feat/session-support branch 2 times, most recently from 2432dd7 to f53ebf0 Compare May 4, 2025 12:42
edoardoc added a commit to edoardoc/codex that referenced this pull request May 4, 2025
@edoardoc edoardoc changed the title A basic session management option [wip] A basic session management (openAI only) May 4, 2025
@edoardoc edoardoc changed the title A basic session management (openAI only) feat: a basic session management May 5, 2025
@edoardoc edoardoc force-pushed the feat/session-support branch from f1ce79f to 72dea5d Compare May 6, 2025 09:35
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.

1 participant