Skip to content

fix(gateway): add /reasoning --session override - #15531

Closed
irispillars wants to merge 1 commit into
NousResearch:mainfrom
irispillars:fix/session-reasoning-flag
Closed

fix(gateway): add /reasoning --session override#15531
irispillars wants to merge 1 commit into
NousResearch:mainfrom
irispillars:fix/session-reasoning-flag

Conversation

@irispillars

Copy link
Copy Markdown

Summary

  • Adds /reasoning <level> --session for session/thread-scoped reasoning effort overrides without writing config.yaml
  • Adds /reasoning reset --session to clear a session override and fall back to global config
  • Routes normal agent runs, /background, and /btw through the session-aware reasoning resolver
  • Clears session reasoning overrides on /new and compression auto-reset

Test Plan

  • python -m py_compile gateway/run.py
  • scripts/run_tests.sh tests/gateway/test_reasoning_command.py tests/gateway/test_session_model_reset.py tests/gateway/test_running_agent_session_toggles.py -q

Closes #9586

@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/gateway Gateway runner, session dispatch, delivery labels Apr 25, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Competing PRs for #9586: also see #14558 (session-scoped by default) and #15522 (duplicate of #14558). This PR takes the --session flag approach instead of making session-scoped the default.

@alt-glitch

Copy link
Copy Markdown
Collaborator

Competing PRs for #9586: also see #14558 and #15522.

@irispillars

Copy link
Copy Markdown
Author

Closing per requester preference. Reworking the design so is session-scoped by default and is the explicit persistent/global path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Session-only reasoning effort override via /reasoning command

2 participants