You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(plugin): track reasoning bytes per tag and include in compartment trigger projection
Adds reasoning_byte_size column to tags table, computed during tagging
from thinking/reasoning parts. The compartment trigger now projects
reasoning clearing savings alongside tool drops and pending ctx_reduce
ops, so the system can delay historian when reasoning cleanup alone
would free enough space. Zero additional compute cost — reasoning bytes
are calculated from parts we already iterate during tagging.
"SELECT id, message_id, type, status, byte_size, session_id, tag_number FROM tags WHERE session_id = ? ORDER BY tag_number ASC, id ASC",
206
+
"SELECT id, message_id, type, status, byte_size, reasoning_byte_size, session_id, tag_number FROM tags WHERE session_id = ? ORDER BY tag_number ASC, id ASC",
"SELECT id, message_id, type, status, byte_size, session_id, tag_number FROM tags WHERE session_id = ? AND status = 'active' ORDER BY byte_size DESC, tag_number ASC LIMIT ?",
235
+
"SELECT id, message_id, type, status, byte_size, reasoning_byte_size, session_id, tag_number FROM tags WHERE session_id = ? AND status = 'active' ORDER BY byte_size DESC, tag_number ASC LIMIT ?",
0 commit comments