Skip to content

fix: report realtime transcription usage per session - #7303

Open
chenghao-mou wants to merge 2 commits into
mainfrom
chenghao/fix/AGT-3525-realtime-transcription-usage
Open

chenghao-mou wants to merge 2 commits into
mainfrom
chenghao/fix/AGT-3525-realtime-transcription-usage

Conversation

@chenghao-mou

@chenghao-mou chenghao-mou commented Sep 16, 2026

Copy link
Copy Markdown
Member

Supersedes #5029, adopting @bml1g12's original transcription usage implementation.

Report OpenAI realtime ASR duration and token usage as STT metrics. Preserve audio-token counts in session usage and reports, attribute usage to each session's current transcription model, and mark realtime transcription as streamed. input_tokens includes both audio and text; input_audio_tokens is the audio subset.

Addresses AGT-3525.

Initial prompt and agent context

Model: GPT-6

can you take a look at pr 5209

5029, sorry

okay, can we create a new PR that supersedes this with those fixes in place?

Emit STT metrics for OpenAI realtime transcription usage. Preserve audio
input tokens in session usage and reports, use the session's active ASR
model, and mark realtime transcription as streamed.

Supersedes #5029, adopting Benjamin Lowe's implementation
and adding regression coverage for the reviewed accounting gaps.

Addresses AGT-3525

Co-authored-by: Benjamin Lowe <ben.lowe.uk@googlemail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@chenghao-mou chenghao-mou added the review_effort:high Needs broad context and substantial validation label Sep 16, 2026
@chenghao-mou
chenghao-mou requested a review from a team as a code owner September 16, 2026 08:29

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review_effort:high Needs broad context and substantial validation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant