Skip to content

fix(devserver): resolve scorer parents from the request state - #1113

Open
Abhijeet Prasad (AbhiPrasad) wants to merge 1 commit into
mainfrom
abhi/python-devserver-parent-923047cb
Open

Abhijeet Prasad (AbhiPrasad) wants to merge 1 commit into
mainfrom
abhi/python-devserver-parent-923047cb

Conversation

@AbhiPrasad

Copy link
Copy Markdown
Member

🤖 This text was AI-generated.

UI-selected remote eval scorers run with request-specific state, but parent resolution still looked up the active span in the global state:

span = current_span()

Allow current_span to accept an optional state and pass the request state through parent resolution so scorer invocations receive their scorer span:

span = current_span(state=state)

Keep existing no-argument calls and experiment/logger fallbacks unchanged. The live staging reproduction still needs to be rerun.

Refs: SDK-815

> 🤖 **This text was AI-generated.**

UI-selected remote eval scorers run with request-specific state, but parent
resolution still looked up the active span in the global state:

```python
span = current_span()
```

Allow current_span to accept an optional state and pass the request state
through parent resolution so scorer invocations receive their scorer span:

```python
span = current_span(state=state)
```

Keep existing no-argument calls and experiment/logger fallbacks unchanged.
The live staging reproduction still needs to be rerun.

Refs: SDK-815
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T20:53:20.497253Z 8e00c36 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
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