microsoft / microsoft/onnxruntime

import of onnxruntime on MacOS while undex Codex filesystem sandbox leaves :memory:.ses file in working directory

Open
#32,476 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
21.9k
Forks
4.2k
Avg merge
4d 11h
Merged PRs (30d)
184

Description

### Describe the issue

On MacOS, if an import of onnxruntime occurs when run from within Codex CLI, then the onnxruntime telemetry initialization fails, and this leaves a spurious :memory:.ses file in the working directory.

### To reproduce

From within Codex CLI on MacOS, get the LLM to run

python -c 'import onnxruntime'

Then onnxruntime can't write to ~/Library/Application Support/Microsoft/DeveloperTools/.onnxruntime so it falls back to an SQLite :memory: and as a side effect of this leaves a spurious file called ':memory:.ses' in the working directory.

### Urgency

Really not very important. I just ran into this as markitdown imports onnxruntime and that's useful to use from within Codex.

The :memory:.ses file is innocuous, but was very confusing as this is sufficiently obscure that a web search didn't tell me what might be creating it.

### Platform

Mac

### OS Version

26.6.2

### ONNX Runtime Installation

Released Package

### ONNX Runtime Version or Commit ID

1.29.0

### ONNX Runtime API

Python

### Architecture

X64

### Execution Provider

Other / Unknown

### Execution Provider Library Version

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing `python -c 'import onnxruntime'` on MacOS from within Codex CLI, then trace the telemetry initialization and its SQLite `:memory:` fallback. The report names no source file or test; done means the import no longer leaves a `:memory:.ses` file in the working directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, sqlite
Domain
databases, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.