Repository navigation
fix: preserve explicit errors in manual LLM completion - #1405
Merged
Merged
Conversation
Signed-off-by: Tian X <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour 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. |
Contributor
Member
|
/ok to test b1ec034 |
willkill07
approved these changes
Oct 20, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Manual LLM completion currently replaces an explicit
otel.status_code: "ERROR"with"OK"and drops the failure description. A framework that owns provider execution can report a timeout throughcall_end()and still emit a successful end event.Preserve an explicit
"ERROR"in end-call metadata, including its description. Calls without that status keep the existing"OK"default. This uses the existing metadata parameter; public signatures and managed execution are unchanged.Details
Local validation (repository-pinned toolchains):
just test-rust: 6,043 passed, one skipped.just test-python: 1,018 package tests, 24 example tests, and 83 bridge tests passed.just test-node: 499 package tests, 26 example tests, and five bridge tests passed.just ci=true test-go: 423 passed.uv run pre-commit run: all applicable staged hooks passed, including formatting, lint, type checks, and dependency audits.NEMO_RELAY_DOCS_DEPS_READY=1 just docs: generated API references, Fern validation, and strict link checks passed.Where should the reviewer start?
llm_call_end()incrates/core/src/api/llm.rs, thenmanual_llm_call_end_preserves_explicit_error_metadataincrates/core/tests/unit/llm_api_tests.rs.Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
Summary by CodeRabbit
New Features
OKfor successful calls and preservesERRORstatus metadata for failures.Documentation