Repository navigation
feat(api-server): support per-request skip_background_review and skip_title opt-outs - #148809
Open
peterzhang987723 wants to merge 1 commit into
Open
peterzhang987723 wants to merge 1 commit into
peterzhang987723 wants to merge 1 commit into
Conversation
16 of 20 tasks
Author
|
Could a maintainer approve and run the workflows for this fork PR? They are action_required and have not run. |
…_title opt-outs Allow API server requests to opt out of post-turn background review (memory/skill review) and turn-start auto-titling via request body or model_options (skip_background_review, skip_title) without disabling them globally on the profile. Fixes NousResearch#148702
peterzhang987723
force-pushed
the
feat/api-server-per-request-turn-opt-outs
branch
from
November 15, 2026 15:05
dea64cc to
33d9b67
Compare
This branch has not been 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.
What does this PR do?
Adds per-request opt-outs (
skip_background_reviewandskip_title) for API server requests so unattended workloads (scheduled extraction, batch jobs) can skip turn-start title generation and post-turn background memory/skill review without disabling those features globally on the profile.Related Issue
Fixes #148702
Type of Change
Changes Made
gateway/platforms/api_server_request_options.py: add_extract_request_model_optionsand_apply_request_turn_opt_outsto decodeskip_background_reviewandskip_titlefrom the request body /model_optionsand apply them toAIAgent.gateway/platforms/api_server.py: includeskip_background_reviewandskip_titlein_RUNTIME_AGENT_OVERRIDE_KEYSand route_request_agent_overrides/_create_agentthrough the new helpers (0 net line change inapi_server.py).agent/turn_context.py: checkgetattr(agent, "skip_title", False)in_maybe_title_session_at_turn_start.tests/gateway/test_api_server_reasoning_ladder.py: addTestRequestTurnOptOuts.How to Test
pytest tests/gateway/test_api_server_reasoning_ladder.py -qpython scripts/checkChecklist
Code
fix(scope):,feat(scope):, etc.)pytest tests/ -qand all tests passpython scripts/checkpasses (the blocking lint and code-health checks CI runs)Documentation & Housekeeping
docs/, docstrings) — or N/Acli-config.yaml.exampleif I added/changed config keys — or N/ACONTRIBUTING.mdorAGENTS.mdif I changed architecture or workflows — or N/A