Skip to content

studio: align tool-call nudge defaults across loops - #9126

Merged
Imagineer99 merged 5 commits into
unslothai:mainfrom
Biotrioo:fix/8907-nudge-default-consistency
Aug 24, 2026
Merged

Imagineer99 merged 5 commits into
unslothai:mainfrom
Biotrioo:fix/8907-nudge-default-consistency

Conversation

@Biotrioo

@Biotrioo Biotrioo commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Reuse passthrough_healing.nudge_enabled() for the GGUF and external Studio tool loops.
  • Thread nudge_tool_calls through the external ToolLoopPolicy and the Studio chat adapter.
  • Add regression coverage for omitted, explicit false, and explicit true request values.

Semantics

  • An omitted API flag follows the shared process default: off unless UNSLOTH_TOOL_CALL_NUDGE=1.
  • Explicit false disables nudging.
  • Studio chat keeps its existing default-on behavior by sending its explicit runtime setting.

Addresses the remaining nudge/default inconsistency described in #8907. Complements #8946.

Validation

  • Focused backend regression suite: 204 passed.
  • Safetensors tool-loop coverage: 341 passed, 1 deselected (the deselected case requires the optional local transformers dependency).
  • Ruff lint: passed.
  • Repository formatter (scripts/run_ruff_format.py): passed.
  • Frontend TypeScript typecheck: passed.
  • Frontend ESLint: passed.
  • Relevant frontend adapter/tool-placement tests: 47 passed.
  • Repository-wide Biome still reports pre-existing diagnostics outside this change.
  • After the PR was opened, pre-commit.ci added one formatting-only change to tests/studio/test_backend_ci_parallel_isolation.py; it is bot-generated and unrelated to the behavioral fix.

@Biotrioo
Biotrioo marked this pull request as ready for review August 17, 2026 19:42

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

Copy link
Copy Markdown

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: 2426ca3cff

ℹ️ 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".

Comment thread studio/backend/models/inference.py Resolved
@danielhanchen

Copy link
Copy Markdown
Member

Confirmed the external loop in studio/backend/core/inference/studio_tool_loop.py never reads the request flag, so the chat nudge setting is ignored on hosted providers, and routing it through nudge_enabled is the right fix. Will get this reviewed.

@Imagineer99 Imagineer99 self-assigned this Aug 21, 2026
@Imagineer99

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: b65a98a1e3

ℹ️ 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".

@Imagineer99

Imagineer99 commented Aug 21, 2026 •

Copy link
Copy Markdown
Member

Targeted A/B CI evidence: fixed run passes all three nudge-policy probes; negative run fails the same probes after reverting only 65a98a1e3. Retained in fork PR #69.

@Imagineer99

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: e46b714efb

ℹ️ 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".

@Imagineer99

Copy link
Copy Markdown
Member

Looks good from my side. No open review findings. We also have a clean GitHub runner A/B where the fix passes all three nudge probes and the one commit revert fails them. Python 3.11 and 3.13 are green now. The only failure left is unrelated and already failing on main.

@Imagineer99
Imagineer99 merged commit a805c1d into unslothai:main Aug 24, 2026
50 of 51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants