Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@virajmehta
Copy link
Member

@virajmehta virajmehta commented Jan 28, 2026

Note

Medium Risk
Behavior of ToolContext::inference changes to treat empty model outputs as step failures, which can increase retries or mark tasks failed where they previously succeeded with empty data. Risk is moderate because it affects durable task execution semantics but not security-sensitive logic.

Overview
Prevents durable inference steps from silently succeeding with empty model output by making ToolContext::inference return an error when chat responses have no content blocks or JSON responses have output.raw == None, enabling the durable step to be retried.

Adds integration coverage that mocks empty chat/JSON inference responses and asserts the spawned TaskTool run is marked failed with an empty output failure reason.

Written by Cursor Bugbot for commit 3883e62. This will update automatically on new commits. Configure here.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ’‘ Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0b7d21f48b

ℹ️ About Codex in GitHub

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

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with πŸ‘.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@GabrielBianconi GabrielBianconi added this pull request to the merge queue Jan 29, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 29, 2026
@virajmehta
Copy link
Member Author

/merge-queue

@github-actions
Copy link
Contributor

πŸš€ Merge queue workflow triggered!

View the run: https://github.com/tensorzero/tensorzero/actions/runs/21461414995

@virajmehta virajmehta force-pushed the viraj/retry-inference-durable-tools branch from 6feca03 to 3883e62 Compare January 29, 2026 01:32
@GabrielBianconi
Copy link
Member

/merge-queue

@github-actions
Copy link
Contributor

πŸš€ Merge queue workflow triggered!

View the run: https://github.com/tensorzero/tensorzero/actions/runs/21462672703

@virajmehta virajmehta added this pull request to the merge queue Jan 29, 2026
Merged via the queue into main with commit fa7a889 Jan 29, 2026
76 checks passed
@virajmehta virajmehta deleted the viraj/retry-inference-durable-tools branch January 29, 2026 17:51
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.

4 participants