Files
goclaw/migrations/000008_team_tasks_user_scope.down.sql
viettranx e2debfe49a feat: mid-loop context compaction + team task user scoping
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>
2026-03-03 15:03:28 +07:00

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;