feat(settings): 自动追问数量开放为 agent 策略配置项#127
Merged
Merged
Conversation
max_followup_asks 原错挂在 autopilot 下且 UI 未暴露;移到 agent.strategy (与 auto_followup 同组,作用于手动自动评审与 AutoPilot 共用的微流程), 并在策略分区新增「追问数量」下拉(1~5,自动追问关闭时禁用)。 - 消费处 flows/review.ts 改读 strategy.max_followup_asks - useSettingsDraft 接入草稿状态机,随 config:setAgent 一并保存 - i18n 四语言 + 配置参考/arch 文档同步(补全此前缺失的 agent.strategy 段) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
「自动追问数量」(
max_followup_asks)此前已存在于配置,但错挂在agent.autopilot下、且设置 UI 未暴露——用户改不到。本 PR 把它归位到agent.strategy(与auto_followup同组),并在设置页 agent 策略区开放为配置项。关联 milestone 配置面板优化。改动
max_followup_asks(0–5,默认 2)从autopilot移到strategy——它作用于自动评审微流程(手动「自动评审」与 AutoPilot 共用),非 AutoPilot 专属flows/review.ts改读agentCfg.strategy.max_followup_asksuseSettingsDraft接入maxFollowupAsks,随config:setAgent一并保存maxFollowupAsksLabel/maxFollowupAsksHintagent.strategy段;arch 06 修正引用路径迁移提醒
旧 config 里
autopilot.max_followup_asks会被 zod strip、strategy取默认 2——自定义过的极少数用户会重置为 2(默认值不变,0.7.0-dev 阶段影响很小)。验证
typecheck ✓ · lint ✓ · build ✓ · agent test 76 passed
🤖 Generated with Claude Code