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:
ji ruo committed 2026-11-27 15:57:17 +08:00
commit 9ce996ef46
36 files changed
+1869 -64

No files matched your search

+1 -1
View File
@@ -120,7 +120,7 @@ func (c *ChatAgent) Chat(ctx context.Context, agentKey, sessionID, message strin
// Pure assistant: DefaultTools as the base; AugmentTools layers in the key's
// visible skills/MCP and lets the DB tools table filter/override. DefaultTools
// have no tools-table rows, so they always pass through.
base := actool.DefaultTools()
base := guardedDefaultTools()
ctx = WithRunInfo(ctx, RunInfo{SessionID: sessionID, WorkDir: sessionWorkDir})
tools, def, cleanup := AugmentTools(ctx, agentKey, base)
defer cleanup()