Enable context compaction only for agentd persistent sessions.
Requirements:
Likely implementation:
Ran rollout on live host: ship.sh Omni/Agentd.hs succeeded; manifest now agentd rev 9784bb40 store /nix/store/frpy2v62rgrdaqb32na6ms54mc7n5p1j-agentd. Restarted persistent agents: sd-coder, cfg-coder, omni-coder, intent-coder, paracoder. Verified all status=running systemd=active. Verified generated persistent wrapper now includes --enable-compaction and no AGENTD_AGENT_COMMAND in runtime assets.
Implemented in commit 9784bb40.
What changed:
--enable-compaction.optEnableCompactionto AgentOptions (default false).Models.getContextWindow modelNameOp.Model modelName)--enable-compaction.--enable-compaction.agentruns remain default no-compaction.Validation:
Behavior checks:
_/bin/agent --dry-run "hello"showsCompaction: disabled._/bin/agent --dry-run --enable-compaction "hello"showsCompaction: enabled.agentd-agent-execincludes--enable-compactionand per-agent env file still omits AGENTD_AGENT_COMMAND.