-
-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Environment
- codex-mcp-server version: 1.2.2 (via npx)
- Installation method:
claude mcp add codex-cli -s user -- npx -y codex-mcp-server - Client: Claude Code CLI
- OS: macOS Darwin 24.6.0
Description
The sessionId parameter does not preserve conversation context between calls. Each call to the codex tool starts a fresh conversation, regardless of using the same sessionId. Additionally, listSessions always returns "No active sessions".
Steps to Reproduce
- Call
codextool with a sessionId:
{
"prompt": "Remember the keyword ALPHA-BRAVO",
"sessionId": "test-session-001",
"sandbox": "read-only",
"workingDirectory": "/path/to/project"
}Response: "Got it. I've remembered the keyword ALPHA-BRAVO."
- Immediately call
codexagain with the same sessionId:
{
"prompt": "What keyword did I ask you to remember?",
"sessionId": "test-session-001",
"sandbox": "read-only",
"workingDirectory": "/path/to/project"
}Response: "I don't have any previous conversation context..."
- Call
listSessions:
{}Response: "No active sessions"
Expected Behavior
According to session-management.md:
- Using the same
sessionIdshould preserve conversation context listSessionsshould return session metadata includingid,createdAt,lastAccessedAt,turnCount
Actual Behavior
- Each call starts a new conversation with no context
listSessionsalways returns "No active sessions"- Session data appears to not be stored or retrieved
Additional Context
Tested multiple times with different sessionId values. The issue is 100% reproducible. Basic codex and review tools work correctly for single-turn interactions.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels