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

fix(session): `flattenToolParts` has no size bound of its own for inlined tool output

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

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

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
ai, backend

調査の方向性

Read packages/opencode/src/provider/transform.ts and compaction.ts, starting with flattenToolParts and fitHead, and measure how rendered tool results compare with real compaction budgets. Add bounded rendering with an elision marker, then add tests covering multi-megabyte output and marker-lookalike text; done means flattened requests stay within the intended budget without treating output text as structure.

索引モデルが issue の本文から書いたものです。

説明

ProviderTransform.flattenToolParts (packages/opencode/src/provider/transform.ts) rewrites tool-call/tool-result parts into text for toolless requests (compaction, title, summary). It relies on compaction.ts's fitHead having budgeted the unflattened messages; the flattened text is not re-checked against the context window. In practice the flattened text is about the same size, but nothing guarantees it, and a tool output that itself contains text shaped like [tool result: X] is fed to the summarizer as if it were structure.

Proposed: cap each rendered tool result (with an elision marker) and add a test with an adversarial multi-megabyte output and a marker-lookalike output.

Found during the v0.12.0 release review (support-engineer persona). Deferred because: needs measurement against real compaction budgets before choosing a cap.

🤖 Generated with Claude Code

https://claude.ai/code/session_012Q51zFUmPg1WwtS5CrGJE6

主要言語
TypeScript
スター
810
フォーク
121
平均マージ
1日 12時間
マージ済み PR(30日)
94

環境構築

Codespaces で開く

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

はじめの一歩

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

AltimateAI/altimate-code のほかの issue

AltimateAI/altimate-code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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