Skip to content

Let a call record be kept without its conversation - #56

Merged
dylanuys merged 1 commit into
stagingfrom
feat/call-without-input
Nov 13, 2026
Merged

dylanuys merged 1 commit into
stagingfrom
feat/call-without-input

Conversation

@dylanuys

Copy link
Copy Markdown
Contributor

What

CallRecord.request may now be an AccountedRequest: a request's call id, model and limits, without its input.

Why

A host restoring durable history charges each call's spend and never sends it again. MeteredCalls.restore only reads the call id, question, step and spend, so restored history does not need every conversation in memory.

A record with input still validates as a ModelRequest; one without validates as an AccountedRequest. Dispatch is unchanged: ModelClient still receives a ModelRequest.

Tests

  • New: a call stored without its input validates, round-trips, and restores into the meter with the same call and budget limits as the full record.
  • packages/yugos/tests: all pass.

🤖 Generated with Claude Code

A host restoring durable history charges each call's spend and never sends
it again. AccountedRequest is a request's identity, model and limits without
its input, so restored history need not carry every conversation.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T22:16:41.778867Z 40f0c66 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dylanuys
dylanuys changed the base branch from main to staging November 13, 2026 22:27
@dylanuys
dylanuys merged commit 0dfc5e2 into staging Nov 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant