mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-06-10 04:10:26 +00:00
e2debfe49a
Add mid-loop compaction to prevent context overflow during long-running delegated agent runs (e.g. 225K+ tokens causing DashScope timeouts). Uses same threshold as maybeSummarize (contextWindow * historyShare) with actual PromptTokens from LLM response. Only compacts the in-memory messages slice; pendingMsgs preserves full history for session flush. Add user_id/channel columns to team_tasks so end users only see their own tasks. Delegate/system channels bypass the filter to see all tasks. Group chats use the group-scoped UserID (group:channel:chatID) so all members share visibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
4 lines
156 B
SQL
4 lines
156 B
SQL
DROP INDEX IF EXISTS idx_team_tasks_user_scope;
|
|
ALTER TABLE team_tasks DROP COLUMN IF EXISTS channel;
|
|
ALTER TABLE team_tasks DROP COLUMN IF EXISTS user_id;
|