Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

test(runtime): Claude 5.x lifecycle — compaction, reload, switches, shared clients

オープン
#4,654 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@aheritier がすでに取り組んでいます。

2026年10月19日 から。

  • #4688 @aheritier による — オープン

評価

この issue はまだ評価されていません。

説明

area/providers area/providers/anthropic area/runtime area/sessions area/testing

Goal

Check that the core holds up across the real session lifecycle: compaction, reload, model and transport switches, and several sessions sharing one client.

Scope

  • Local compaction triggered by the token threshold: the summary is produced through a checked clone, persisted, reloaded, and the first continuation is valid. If continuing would be unsafe, refuse without clearing the context.
  • Native on-demand compaction (Direct only): handle the whole block arriving at content_block_start with no deltas, adopt and reload the signed result, record iteration usage, and keep context intact on refusal or a missing summary. Keep the existing Vertex and Converse exclusions (vertex.go, AWS compaction).
  • Switches: route → rebuild → switch model or transport → add attachment → reload, on each of the three transports.
  • Shared clients: two sessions on one client with different attachments don't leak state into each other. Conversation state stays on the request or session, never on the client (see AGENTS.md, "Client and Session Lifetimes").
  • Pricing: Haiku 5.5 tier boundary at 99,999 / 100,000 / 100,001 prompt tokens, cache included. An unknown producer, endpoint or tariff is reported as unpriced, not free. Confirm the serving model from #4579 survives save and reload.

Acceptance criteria

  • End-to-end tests for each scenario above, using real factories and the runtime against fake servers. Testing a hook on its own doesn't count.
  • go test -race -shuffle=on passes on the runtime and provider packages.
  • A results table per model × transport × feature: pass / fail / not established / expected refusal.
  • task build, task test, task lint pass.

Parent: #4583 · Depends on #4651, #4652, #4653

主要言語
Go
スター
4.6k
フォーク
522
平均マージ
8時間 7分
マージ済み PR(30日)
231

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

docker/docker-agent のほかの issue

docker/docker-agent の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。