Skip to content

PR4 of #136: explicit non-configurable state for effort - #223

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/explicit-non-configurable-effort-pr4
Aug 4, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/explicit-non-configurable-effort-pr4

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Summary

Closes the one #136 acceptance criterion left unmet after PR1 (#215), PR2 (#221), PR3 (#222): "unsupported models show an explicit non-configurable state... do not display a misleading universal Low/Medium/High/Max list."

Previously a model with no adjustable reasoning effort just made the footer's effort segment silently disappear (no indication effort existed as a concept at all), and the picker's Effort column still rendered a real, selectable one-item list — Enter on it still dispatched SelectEffort. It happened to have exactly one option rather than actually being non-actionable.

  • ReasoningEffort::display_label(model) returns the effort's own label when the model supports it, or an explicit "N/A" otherwise — the single source of truth both the footer and (indirectly, via the same model_supports_effort check) the picker now use.
  • The footer control always shows the effort segment now, so a model with no adjustable effort reads as [N/A] instead of the segment just being absent.
  • The Effort column renders a muted explanatory line ("Effort is not configurable for this model.") instead of a selectable list, and Enter is a no-op, when the active model has no adjustable effort at all.

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • cargo test -p forge-tui --lib (743 passed)
  • cargo test -p forge-connect --lib (184 passed)
  • cargo test --workspace --all-targets --locked — all green except the same pre-existing, unrelated forge-config::permissions failure documented in PR1-3 (this dev machine's real local config leaking into unisolated tests; zero diff to that crate).

Closes the one #136 acceptance criterion PR1-3 left unmet: "unsupported
models show an explicit non-configurable state... do not display a
misleading universal Low/Medium/High/Max list."

Previously a model with no adjustable reasoning effort just made the
footer's effort segment silently disappear, and the picker's Effort
column still rendered a real, selectable one-item list (Enter still
dispatched SelectEffort on it) — it happened to have one option rather
than being genuinely non-actionable.

- ReasoningEffort::display_label(model) returns the effort's own label
  when the model supports it, or an explicit "N/A" otherwise.
- Footer control always shows the effort segment now, using
  display_label instead of an empty-string omission.
- The Effort column renders a muted explanatory line instead of a
  selectable list, and Enter is a no-op, when the active model has no
  adjustable effort at all.
@github-actions
github-actions Bot enabled auto-merge (squash) August 4, 2026 01:25
@github-actions
github-actions Bot merged commit a98f234 into main Aug 4, 2026
7 checks passed
mohitranka added a commit that referenced this pull request Aug 21, 2026
)

Closes the one #136 acceptance criterion PR1-3 left unmet: "unsupported
models show an explicit non-configurable state... do not display a
misleading universal Low/Medium/High/Max list."

Previously a model with no adjustable reasoning effort just made the
footer's effort segment silently disappear, and the picker's Effort
column still rendered a real, selectable one-item list (Enter still
dispatched SelectEffort on it) — it happened to have one option rather
than being genuinely non-actionable.

- ReasoningEffort::display_label(model) returns the effort's own label
  when the model supports it, or an explicit "N/A" otherwise.
- Footer control always shows the effort segment now, using
  display_label instead of an empty-string omission.
- The Effort column renders a muted explanatory line instead of a
  selectable list, and Enter is a no-op, when the active model has no
  adjustable effort at all.
mohitranka added a commit that referenced this pull request Sep 11, 2026
)

Closes the one #136 acceptance criterion PR1-3 left unmet: "unsupported
models show an explicit non-configurable state... do not display a
misleading universal Low/Medium/High/Max list."

Previously a model with no adjustable reasoning effort just made the
footer's effort segment silently disappear, and the picker's Effort
column still rendered a real, selectable one-item list (Enter still
dispatched SelectEffort on it) — it happened to have one option rather
than being genuinely non-actionable.

- ReasoningEffort::display_label(model) returns the effort's own label
  when the model supports it, or an explicit "N/A" otherwise.
- Footer control always shows the effort segment now, using
  display_label instead of an empty-string omission.
- The Effort column renders a muted explanatory line instead of a
  selectable list, and Enter is a no-op, when the active model has no
  adjustable effort at all.
mohitranka added a commit that referenced this pull request Sep 11, 2026
)

Closes the one #136 acceptance criterion PR1-3 left unmet: "unsupported
models show an explicit non-configurable state... do not display a
misleading universal Low/Medium/High/Max list."

Previously a model with no adjustable reasoning effort just made the
footer's effort segment silently disappear, and the picker's Effort
column still rendered a real, selectable one-item list (Enter still
dispatched SelectEffort on it) — it happened to have one option rather
than being genuinely non-actionable.

- ReasoningEffort::display_label(model) returns the effort's own label
  when the model supports it, or an explicit "N/A" otherwise.
- Footer control always shows the effort segment now, using
  display_label instead of an empty-string omission.
- The Effort column renders a muted explanatory line instead of a
  selectable list, and Enter is a no-op, when the active model has no
  adjustable effort at all.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant