mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-16 17:12:25 +08:00
fix(agent,claw402): harden agent runtime and strip max_tokens for thinking models
- Fix Stop() race condition using sync.Once - Add ensureHistory() to prevent nil panic in planner/dispatcher - Add bounds check on trader ID slicing - Log saveExecutionState and clearSetupState errors instead of discarding - Remove always-true modelID condition in onboard setup - Add Chinese setup keywords and expand model name aliases - Strip max_tokens from claw402 requests to avoid thinking-model budget exhaustion - Hide Agent nav tab (Beta) pending merge to main - Sync tests with code changes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -9,12 +9,13 @@ func TestIsDirectSetupCommand(t *testing.T) {
|
||||
}{
|
||||
{text: "setup", want: true},
|
||||
{text: "/setup", want: true},
|
||||
{text: "开始配置", want: false},
|
||||
{text: "开始配置", want: true},
|
||||
{text: "配置", want: true},
|
||||
{text: "开始设置", want: true},
|
||||
{text: "/开始配置", want: false},
|
||||
{text: "创建全新的配置,杠杆你定", want: false},
|
||||
{text: "帮我配置一个 deepseek 模型", want: false},
|
||||
{text: "绑定交易所 okx", want: false},
|
||||
{text: "配置", want: false},
|
||||
}
|
||||
|
||||
for _, tc := range cases {
|
||||
|
||||
Reference in New Issue
Block a user