Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Python agentaianthropicclaude-codecompressioncontext-engineeringcontext-windowcursorfastapilangchainllmmcpopenaiprompt-engineeringproxypythonragtoken-optimizationtokenstypescript
fix(subscription): cancel copilot poll task on stop timeout
Adryan Eka Vandrac6c1068969ca
diff --git a/headroom/subscription/copilot_quota.py b/headroom/subscription/copilot_quota.pyindex 73d433f8f..c7b03628f 100644--- a/headroom/subscription/copilot_quota.py+++ b/headroom/subscription/copilot_quota.py@@ -251,7 +251,10 @@ class _CopilotQuotaTracker(QuotaTracker):try:await asyncio.wait_for(self._task, timeout=5.0)except (asyncio.TimeoutError, asyncio.CancelledError):- pass+ # Mirror SubscriptionTracker.stop(): on timeout or outer+ # cancellation, cancel the underlying poll task. Without+ # this, a wedged poll task would leak past ``stop()``.+ self._task.cancel()# ------------------------------------------------------------------# State