Skip to content

Session run via the SDK can't be seen in the Codex CLI/App #10

Description

@rwjdk

When running

using CodexClient codexClient = new();

using CodexThread thread = codexClient.StartThread(new ThreadOptions()
{
    Model = CodexModels.Gpt54,
    ModelReasoningEffort = ModelReasoningEffort.Medium,
    WorkingDirectory = "C:\\git\\CodexSandbox",
    SkipGitRepoCheck = true,
    Ephemeral = false,
});
RunResult result = await thread.RunAsync("Give me a random number");
string? threadId = thread.Id; //Have a value

The result is correct, but the thread/session does not seem to be available in CLI/App after the run (despite setting Ephemeral = false)

Image

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions