Send the conversation id as agent-session-id on pi's model calls

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go
領域
api, backend

調査の方向性

Start with internal/chatbridge/pi.go:42 to see how Tapas passes the conversation id to pi, then inspect pi’s javo provider configuration and extension options for request headers. Follow one model call to Tapas’s agent endpoint and check whether a fixed agent-session-id reaches the proxy before investigating per-session headers and what Claude Code sends. Done means model calls carry the conversation id and it meets the stated character and length checks.

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

説明

We're adding OpenTelemetry tracing to model calls that go through the LLM serving pack's gateway (nebari-dev/llm-serving-pack#315). Envoy AI Gateway maps an agent-session-id request header to session.id on its spans, which is how every model call from one conversation gets tied together in Grafana. Separately, Tapas's agent proxy will start passing a checked agent-session-id through to the provider when the agent sends one.

No agent sends it today. The chat bridge already starts pi with the conversation id as --session-id (internal/chatbridge/pi.go:42), so pi knows the value. It just doesn't put it on its model calls to the javo provider.

What we need

  • pi sends the conversation id as agent-session-id on every chat completions call to Tapas's agent endpoint.
  • We need to work out whether pi's provider config or one of its extensions can set a per-session header, and what Claude Code would send, if anything.

First check

Set a fixed header on pi's javo provider in a workspace pod and confirm it reaches Tapas on one request. If that works, the per-session value is the remaining piece.

Done when

  • A chat in Tapas produces model calls that carry agent-session-id equal to the conversation id.
  • The value passes the proxy's check (1 to 128 characters of A-Z a-z 0-9 . _ : -).
主要言語
Go
スター
5
フォーク
0
平均マージ
21時間 13分
マージ済み PR(30日)
53

環境構築

はじめの一歩

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

nebari-dev/tapas のほかの issue

nebari-dev/tapas の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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