review-fix(comments): restore lost #NNNN rationale comments across non-test source (mechanical sweep, condensed, code unchanged)

For each issue anchor present in BASE 63279301bc non-test .py and absent on HEAD, the BASE comment/docstring block was re-attached at the HEAD location of the code it explained (matched by the distinctive code line / enclosing def). Sentences already covered by an existing HEAD comment were deduped; the issue number always survives. Insert-only: no code lines changed.
This commit is contained in:
Teknium
2026-09-03 09:44:26 -07:00
parent ad62a15e94
commit e83816a4d1
586 changed files with 13883 additions and 829 deletions
+5
View File
@@ -302,6 +302,11 @@ def _set_reasoning(rid, params, key, value, session):
if scope == "global" or session is None:
_write_config_key("agent.reasoning_effort", arg)
if session is not None:
# /new is a full conversation boundary: session-scoped runtime overrides (/model, /reasoning,
# /fast) do NOT carry forward — the fresh agent re-derives model/provider, reasoning, and
# service tier from config.yaml (#48055, #23131). Session pins are cleared below so a rebuild
# can't resurrect them. (Global process state is still never touched — see the
# cross-session-contamination note in _apply_model_switch.)
session.pop("create_reasoning_override", None)
else: # session-scoped like the gateway's `/reasoning <level>`; a menu pick must not rewrite the global
session["create_reasoning_override"] = parsed