fix(runtime): prune and persist the tool DeferralTracker
メンテナーはふだん 1 日以内に返信
@aheritier がすでに取り組んでいます。
2026年10月21日 から。
評価
この issue はまだ評価されていません。
説明
Problem
The runtime's DeferralTracker (runtime.go) keeps per-session state about which tools were present on a session's first call. Entries are never removed; only native compaction resets a session. In long-lived processes (serve api, serve a2a, serve mcp) the map grows with every session ever served.
The state is also not persisted. After a session is reloaded in a new process, its baseline resets, deferred tools can be sent inline again, and the tool prefix changes. That breaks the prompt cache, and on Claude 5.x models that check thinking prefixes, it invalidates replayed thinking.
Proposal
- Drop a session's entry when the session ends or is evicted.
- Decide whether the baseline should be persisted with the session or rebuilt from history on reload, so a reloaded session sends the same tools in the same order.
Acceptance criteria
- The tracker doesn't grow with sessions that have ended.
- A reloaded session sends the same tool list it sent before the reload, or the reset is documented.
Found while planning #4654.
- 主要言語
- Go
- スター
- 4.6k
- フォーク
- 529
- 平均マージ
- 14時間 30分
- マージ済み PR(30日)
- 157
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
docker/docker-agent のほかの issue
-
area/config area/models
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
docker/docker-agent#4714 ·
メンテナーはふだん 1 日以内に返信
-
Error when trying to run sandbox example?対応中かも @dgageot が 5 日前に担当しました。 オープンarea/cli
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
docker/docker-agent#4672 · コメント 1 件 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
pkg/hooks tests fail with a misleading assertion when jq is not installed対応中かも @dwin-gharibi が 63 日前に担当しました。 オープンarea/testing
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
docker/docker-agent#4052 ·
メンテナーはふだん 1 日以内に返信
-
`remove_directory` and `create_directory` hide work they already did when a later path fails対応中かも @dwin-gharibi が 81 日前に担当しました。 オープンarea/tools
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
docker/docker-agent#3933 ·
メンテナーはふだん 1 日以内に返信
-
`edit_file` silently edits the first match when `oldText` occurs more than once対応中かも @dwin-gharibi が 81 日前に担当しました。 オープンarea/tools
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
docker/docker-agent#3929 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
docker/docker-agent の issue をすべて見る
似ている issue
-
documentation ready
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
Needs Triage
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
solongate/agent-security#154 ·
メンテナーはふだん 1 日以内に返信
-
tree: RootStyle is applied twice to the root node対応中かも @PhotoDotPi が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
charmbracelet/lipgloss#772 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信