Skip to content

feat(core): reasoning effort setting, sent as reasoning_effort #457

Closed

Description

@ajianaz

Problem

tole never sends a reasoning/thinking level: the model's effort cannot be chosen or seen. The TUI needs it (/thinking, Shift+Tab, shown in the footer).

Proposal

  • A reasoning-effort setting: --effort <level> / TOLE_REASONING_EFFORT / config reasoning_effort (flag > env > config > user config > default unset), levels minimal | low | medium | high (validated).
  • Per-session override in a durable register (fact/reasoning_effort, like fact/model), so a session keeps its level on resume and the TUI can change it mid-session.
  • Sent as reasoning_effort on OpenAI-compatible chat completions only when set; unset = today's request body (wire-shape stability).
  • A provider that rejects the parameter (HTTP 400 naming it) gets ONE retry without it, recorded, so an unsupported level never breaks a session.

Acceptance

  • Request body carries reasoning_effort exactly when set; unchanged otherwise (eval wire-shape test).
  • Register round-trips across resume; tole config check shows the effective value and source.
  • 400-rejection retry covered by a mock test.

Activity

  1. added this to the 0.11.0 milestone on Oct 28, 2026
  2. added
    enhancement
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions