ARTEX/server
Autumn-27 01022c679f feat(agent): get_worker_trace 的 step_ids 超限改为降级返回而非报错
原先 step_ids 超过 5 个直接报错,逼 Agent 重新组织调用、白跑一轮。改为优雅
降级:先去重、剔除非法 id,超出 5 个则返回前 5 步的完整内容,并在结果里用
returned_step_ids / omitted_step_ids / notice 告知本次取了哪些、还有哪些没取,
并提示「若已足够则无需再取剩余」。Agent 立刻拿到数据,是否再取由它自行判断。

保留数量上限的原因不变:detail 是完整原文、不截断,上限用于兜住单个 tool
result 的大小。get_task_worker_trace 经 delegateToTask 复用同一实现,一并生效;
两处工具描述同步更新。

验证: 新增 TestGetWorkerTraceStepIDsDegradeGracefully(含去重/非法 id/前5/
omitted/notice/在限内不加提示),连本地 PG 实跑通过;agent 全量无回归。
2026-08-24 11:35:49 -04:00
..
assembly.go feat(skills): track usage and missing dependencies 2026-08-24 19:30:14 +08:00
assembly_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
assets.go fix(assets): 企业归属重算不再被单行非法 ip 打挂,并明确告知是哪些资产 2026-08-24 10:16:17 -04:00
assets_scope_test.go feat(assets): add editable company and task scopes 2026-08-24 19:29:14 +08:00
auth.go fix(security): jwt.key 移出可浏览工作区(存项目根,自动从 data 迁移) 2026-08-11 10:56:39 -04:00
broadcast.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
chatupload.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
commands.go feat(metrics): add persistent LLM usage analytics 2026-08-24 19:30:07 +08:00
constraints_api.go 同步 2026-08-24 14:14:15 +08:00
conversations.go feat(chat): add conversation pinning and rename controls 2026-08-24 19:29:38 +08:00
core_test.go feat(api): integrate task workflows and mock contracts 2026-08-24 19:31:16 +08:00
customtool.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
customtool_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
dto.go feat(api): integrate task workflows and mock contracts 2026-08-24 19:31:16 +08:00
engine.go fix(tasks): 任务列表改按 id 降序,消除同刻创建任务的抖动 2026-08-24 11:08:10 -04:00
engine_cancelcause_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
engine_llm_calls_test.go feat(llm): add profile failover and pool health 2026-08-24 19:28:18 +08:00
engine_timeout.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
findings_groups.go feat(findings): group findings and add deepen workflows 2026-08-24 19:29:24 +08:00
findings_groups_test.go feat(findings): group findings and add deepen workflows 2026-08-24 19:29:24 +08:00
goals.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
goals_api.go 同步 2026-08-24 14:14:15 +08:00
goals_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
inheritance_api_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
inheritance_dto_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
intercept.go 同步 2026-08-24 14:14:15 +08:00
llmpool.go feat(llm): add profile failover and pool health 2026-08-24 19:28:18 +08:00
llmpool_test.go feat(llm): add profile failover and pool health 2026-08-24 19:28:18 +08:00
logsink.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
manager.go fix(tasks): 任务列表改按 id 降序,消除同刻创建任务的抖动 2026-08-24 11:08:10 -04:00
manager_delete_files_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
manager_lifecycle_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
mcpdiscover.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
mgmt_test.go fix(security): jwt.key 移出可浏览工作区(存项目根,自动从 data 迁移) 2026-08-11 10:56:39 -04:00
orchestration.go feat(agent): get_worker_trace 的 step_ids 超限改为降级返回而非报错 2026-08-24 11:35:49 -04:00
platform_tools.go refactor(asset): delete_assets_by_host 改为平台工具(默认绑 Auto) 2026-08-09 04:49:57 -04:00
platform_tools_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
prompt_vars_test.go 同步 2026-08-24 14:14:15 +08:00
scheduler.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
server.go feat(tasks): 任务列表支持批量修改分类 2026-08-24 09:16:44 -04:00
server_mgmt.go feat(api): integrate task workflows and mock contracts 2026-08-24 19:31:16 +08:00
skill_usage.go feat(skills): track usage and missing dependencies 2026-08-24 19:30:14 +08:00
sync_scopesentry.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
task_admission_test.go 同步 2026-08-24 14:14:15 +08:00
task_assets.go feat(assets): add editable company and task scopes 2026-08-24 19:29:14 +08:00
task_categories.go feat(tasks): 任务列表支持批量修改分类 2026-08-24 09:16:44 -04:00
task_categories_test.go feat(tasks): 任务列表支持批量修改分类 2026-08-24 09:16:44 -04:00
task_control.go feat(tasks): 任务列表支持批量修改分类 2026-08-24 09:16:44 -04:00
task_control_routes_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
task_delete_barrier_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
task_llm.go 同步 2026-08-24 14:14:15 +08:00
task_llm_test.go 同步 2026-08-24 14:14:15 +08:00
task_resolution.go 同步 2026-08-24 14:14:15 +08:00
task_templates.go feat(tasks): add categories templates and batch controls 2026-08-24 19:29:46 +08:00
task_templates_test.go feat(tasks): add categories templates and batch controls 2026-08-24 19:29:46 +08:00
testmain_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
tools_wire_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
triggers.go feat(trigger): 新增"任务创建"触发机制(on_task_create) 2026-08-09 02:19:29 -04:00
webui_embed.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
webui_stub.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
workspace.go feat(workspace): 新增工作空间文件管理器(针对 workDir) 2026-08-09 01:01:19 -04:00