Skip to content

refactor(agent-form): remove maxTokens switch field from sub-agent form - #19830

Merged
wangq8 merged 2 commits into
infiniflow:mainfrom
dcc123456:feat/remove-max-tokens-switch-from-agent-form
Sep 18, 2026
Merged

wangq8 merged 2 commits into
infiniflow:mainfrom
dcc123456:feat/remove-max-tokens-switch-from-agent-form

Conversation

@dcc123456

Copy link
Copy Markdown
Collaborator

Summary

Removes the SliderInputSwitchFormField for max_tokens from the sub-agent form, eliminating the unused toggle that controlled max token limit input.

Removes the SliderInputSwitchFormField for max_tokens from the sub-agent
form, eliminating the unused toggle that controlled max token limit input.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dcc123456
dcc123456 requested a review from wangq8 September 18, 2026 06:09
@coderabbitai

coderabbitai Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 4cee3448-3ff4-4c1b-9737-6cf66c2b4e53

📥 Commits

Reviewing files that changed from the base of the PR and between 7c44afe and 69d7eaf.

📒 Files selected for processing (1)
  • web/src/pages/agent/form/agent-form/index.tsx
💤 Files with no reviewable changes (1)
  • web/src/pages/agent/form/agent-form/index.tsx

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The agent form no longer renders the max_tokens slider. Other form fields and structured-output rendering remain unchanged.

Changes

Agent form update

Layer / File(s) Summary
Remove max_tokens slider
web/src/pages/agent/form/agent-form/index.tsx
Removes the max_tokens slider, its enabled-state binding, and its 0–128000 range. The output rendering block has no observable semantic change.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Refactor

Merge Risk: ⚪ Minimal · up to 69d7e

The removal is ready to merge based on the available evidence.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the removal of the maxTokens switch field from the sub-agent form. It accurately summarizes the main change.
Description check ✅ Passed The description includes the required Summary heading and briefly explains the removal and its purpose. It provides sufficient context for review.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit hops past the form today
The token slider fades away
The other fields remain in line
Structured output still will shine
One small change, neat and light
The agent form looks just right

Comment @coderabbitai help to get the list of available commands.

@dcc123456 dcc123456 added 🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration labels Sep 18, 2026
@dcc123456
dcc123456 marked this pull request as draft September 18, 2026 06:09
@dcc123456
dcc123456 marked this pull request as ready for review September 18, 2026 06:09
@wangq8
wangq8 merged commit 1e66f21 into infiniflow:main Sep 18, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants