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

Pathfinder: parseJsonRpc joins multiple SSE data: lines with empty string

オープン 初心者向け
#123 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
typescript
領域
backend

調査の方向性

packages/outpost/ai/src/pathfinder.ts の parseJsonRpc から始め、SSE のデータ行とイベント境界が現在どのように処理されているかを確認します。複数のイベントまたは複数のデータ行を含む body のテストカバレッジを追加し、イベントのペイロードが正しく分離され、1 つのイベント内のデータ行が改行で結合されることを確認します。JSON-RPC レスポンスが不正な連結なしにパースできれば完了です。

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

説明

area: integrations priority: low roadmap roadmap: later

Spun out of the #112 review (non-blocking, edge case).

parseJsonRpc concatenates all data: payloads with ''. Per the SSE spec, data lines within one event join with \n, and separate events are distinct messages. So a reply chunked across multiple data: lines, or one carrying a notification plus the response, would concatenate into invalid JSON and throw. Harmless for the real server's current single-line, single-event tools/call reply (and it's live-tested), but brittle if the server ever streams/chunks.

Fix direction: parse per-event (split on blank lines), take the last data: event's payload, or join a single event's data lines with \n. Add a test with a multi-event / multi-data: body.

File: packages/outpost/ai/src/pathfinder.ts (parseJsonRpc).

主要言語
TypeScript
スター
8
フォーク
4
平均マージ
3日 19時間
マージ済み PR(30日)
10

環境構築

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

はじめの一歩

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

CopilotKit/outpost のほかの issue

CopilotKit/outpost の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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