Skip to content

fix(agent): hide effort controls for Kimi sessions - #3935

Merged
trunk-io[bot] merged 1 commit into
mainfrom
posthog-code/fix-kimi-effort-controls
Jul 29, 2026
Merged

fix(agent): hide effort controls for Kimi sessions#3935
trunk-io[bot] merged 1 commit into
mainfrom
posthog-code/fix-kimi-effort-controls

Conversation

@tatoalo

@tatoalo tatoalo commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Problem

Kimi K3 does not support selectable effort levels. New tasks correctly omit the selector, but a running session could show the default model's effort controls because its config was built from stale model state.

Why: Selecting one of those invalid values can make a later task request fail validation

Changes

Build session config from the model actually resolved for execution, so Kimi sessions keep the effort control hidden

Generated-By: PostHog Code
Task-Id: e18a8b14-426f-437f-98e2-db55475ea06e
@tatoalo tatoalo self-assigned this Jul 29, 2026
@trunk-io

trunk-io Bot commented Jul 29, 2026

Copy link
Copy Markdown

😎 Merged successfully - details.

@github-actions

github-actions Bot commented Jul 29, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 9a945d7.

@tatoalo
tatoalo marked this pull request as ready for review July 29, 2026 11:25
@greptile-apps

greptile-apps Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "fix(agent): hide effort controls for Kim..." | Re-trigger Greptile

@tatoalo tatoalo added the Stamphog This will request an autostamp by stamphog on small changes label Jul 29, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small, contained fix that assigns the resolved model id before building config options so Kimi sessions correctly hide unsupported effort controls; verified against surrounding code, includes a matching test, and touches no risky territory.

  • Author wrote 0% of the modified lines and has 27 merged PRs in these paths (familiarity MODERATE).
  • 👍 on the PR from greptile-apps[bot].
Gate mechanics and policy version
Gate Result
prerequisites all clear
deny-list no deny categories matched
size 1L, 1F substantive, 22L/2F incl. docs/generated/snapshots — within ceiling
tier T1-agent / T1b-small (22L, 2F, single-area, fix)
stamphog 2.0.0b3 .stamphog/policy.yml @ afb8fd5 · reviewed head 9a945d7

@tatoalo
tatoalo enabled auto-merge (squash) July 29, 2026 12:11
@trunk-io
trunk-io Bot merged commit 584a34a into main Jul 29, 2026
42 checks passed
@trunk-io
trunk-io Bot deleted the posthog-code/fix-kimi-effort-controls branch July 29, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stamphog This will request an autostamp by stamphog on small changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants