mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-06 13:01:51 +08:00
Merge pull request #203 from RuoJi6/RuoJi6/feat/issue-194-memory-limit
fix: limit ARTEX container and tool memory use # Conflicts: # agent/chat.go # agent/mainagent.go # agent/planner.go
This commit is contained in:
commit
9ce996ef46
36 files changed
+1869
-64
No files matched your search
+1
-1
@@ -374,7 +374,7 @@ func (p *Planner) Plan(ctx context.Context, taskID int64, as *db.AssetStore, ts
|
||||
}
|
||||
// 领域工具 + 基础默认工具集(Read/Write/Edit/MultiEdit/LS/Glob/Grep/Bash)
|
||||
// 资产覆盖度功能关闭时剔除 add_task_scope/list_untested_assets(不入 prompt)。
|
||||
base := append(tsx.DropCoverageTools(tsx.PlannerTools()), actool.DefaultTools()...)
|
||||
base := append(tsx.DropCoverageTools(tsx.PlannerTools()), guardedDefaultTools()...)
|
||||
// 本任务的工作目录 <workDir>/tasks/<taskID>,先建好。
|
||||
taskDir := ensureRunDir(p.workDir, taskID, 0)
|
||||
ctx = intercept.WithReviewContext(ctx, taskDir, intercept.ReviewBackground{})
|
||||
|
||||
Reference in new issue
Block a user