推理档从设置面板移除,改由输入盒控制
RuntimeConfigDialog 删掉「推理档」下拉:该档位已下移到对话输入盒的模型选择器旁;其余设置字段不变。 runtime-settings.suite 同步调整三处断言:设置面板不再有推理档,Escape 用例改用联网检索控件,恢复默认用例改为断言设置里查不到推理档。
This commit is contained in:
@@ -794,26 +794,8 @@ export function RuntimeConfigDialog({
|
||||
</div>
|
||||
{runtimeConfigDraft.agentMode !== 'codex_cli' ? (
|
||||
<>
|
||||
<label>
|
||||
推理档
|
||||
<select
|
||||
aria-label="推理档"
|
||||
value={runtimeConfigDraft.llm.reasoningEffort}
|
||||
onChange={(event) =>
|
||||
updateRuntimeLlmConfig(
|
||||
'reasoningEffort',
|
||||
event.currentTarget
|
||||
.value as GameCreatorLlmReasoningEffort,
|
||||
)
|
||||
}
|
||||
>
|
||||
{gameCreatorLlmReasoningEfforts.map((effort) => (
|
||||
<option key={effort} value={effort}>
|
||||
{effort}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</label>
|
||||
{/* 推理档已下移到对话输入盒的模型选择器旁(按回合生效),
|
||||
设置里不再重复一份。 */}
|
||||
<label className="settings-checkbox">
|
||||
<input
|
||||
aria-label="流式输出"
|
||||
|
||||
@@ -660,7 +660,7 @@ export function registerRuntimeSettingsTests() {
|
||||
expect(
|
||||
await screen.findByRole('dialog', { name: '运行时配置' }),
|
||||
).not.toBeNull();
|
||||
fireEvent.keyDown(screen.getByLabelText('推理档'), {
|
||||
fireEvent.keyDown(screen.getByLabelText('联网检索'), {
|
||||
key: 'Escape',
|
||||
});
|
||||
expect(screen.getByRole('dialog', { name: '运行时配置' })).not.toBeNull();
|
||||
@@ -877,12 +877,8 @@ export function registerPublishedRuntimeSettingsTests() {
|
||||
expect(screen.getByText('所有角色使用统一账号服务')).not.toBeNull();
|
||||
|
||||
fireEvent.click(screen.getByRole('button', { name: /常用设置/ }));
|
||||
expect(screen.getByLabelText('推理档')).toHaveProperty('value', 'medium');
|
||||
expect(
|
||||
within(screen.getByLabelText('推理档')).getByRole('option', {
|
||||
name: 'max',
|
||||
}),
|
||||
).not.toBeNull();
|
||||
// 推理档已下移到对话输入盒(模型选择器旁),设置面板里不再有第二个入口。
|
||||
expect(screen.queryByLabelText('推理档')).toBeNull();
|
||||
fireEvent.click(screen.getByLabelText('流式输出'));
|
||||
fireEvent.click(screen.getByLabelText('联网检索'));
|
||||
fireEvent.click(screen.getByRole('button', { name: /高级参数/ }));
|
||||
@@ -1000,7 +996,7 @@ export function registerPublishedRuntimeSettingsTests() {
|
||||
expect(screen.queryByLabelText('LLM API Key')).toBeNull();
|
||||
expect(screen.queryByLabelText('LLM Base URL')).toBeNull();
|
||||
expect(screen.queryByLabelText('LLM 模型')).toBeNull();
|
||||
expect(screen.getByLabelText('推理档')).toHaveProperty('value', 'high');
|
||||
expect(screen.queryByLabelText('推理档')).toBeNull();
|
||||
expect(screen.getByLabelText('联网检索')).toHaveProperty('checked', true);
|
||||
fireEvent.click(screen.getByRole('button', { name: /Agent 分工/ }));
|
||||
expect(screen.getByText('所有角色使用统一账号服务')).not.toBeNull();
|
||||
|
||||
Reference in New Issue
Block a user