環境変数

DISABLE_AUTO_COMPACT

1 を設定すると、コンテキスト上限に近づいた際の自動コンパクションとアイドル時のコンパクションが無効になる。手動の /compact コマンドは引き続き利用できる。コンパクションの発生タイミングを明示的に制御したい場合に使う。autoCompactEnabled 設定を上書きする。

使い方・用途

  • コンテキスト上限に近づいても自動コンパクションやアイドル時コンパクションが行われず、コンパクションの実行タイミングを自分で明示的に管理したい場合に使う
  • コンテキストの残量が減った時点で勝手に会話が要約されるのを避け、必要なタイミングで /compact を手動実行してコンテキストを解放したい場合に使う
  • autoCompactEnabled をセッション単位で一時的に無効にしたい場合に使う
英語原文(公式ドキュメントより)

Set to 1 to disable automatic compaction when approaching the context limit, along with idle compaction. The manual /compact command remains available. Use when you want explicit control over when compaction occurs. Overrides the autoCompactEnabled setting