Skip to content

fix(ga): fold periodic global_memory re-injection like <history> - #834

Merged
lsdefine merged 1 commit into
lsdefine:mainfrom
cuipengcx90:fix/20261014-gm-reinject-compress
Oct 14, 2026
Merged

lsdefine merged 1 commit into
lsdefine:mainfrom
cuipengcx90:fix/20261014-gm-reinject-compress

Conversation

@cuipengcx90

Copy link
Copy Markdown
Contributor

Fixes #832. Wrap the every-10-turns get_global_memory() injection in <global_memory> and add it to the fold regex in compress_history_tags, the same way <history> is handled. Simulated 200 turns: full L1 copies in history peak 10 → 2 (interval 7) / 3 (interval 25), hard trim 2 → 1. Net lines: 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Every-10-turns get_global_memory() injection accumulates full L1 copies in history

2 participants