Skip to content

Add pagination to prompt list contracts#49

Merged
haasonsaas merged 1 commit intomainfrom
codex/proto-prompts-pagination
Apr 14, 2026
Merged

Add pagination to prompt list contracts#49
haasonsaas merged 1 commit intomainfrom
codex/proto-prompts-pagination

Conversation

@haasonsaas
Copy link
Copy Markdown
Contributor

Summary

  • add optional limit and offset to the four prompts.v1 list requests
  • add total and has_more to the matching list responses
  • regenerate Go, Python, and TypeScript bindings

Testing

  • buf lint
  • buf build
  • go test ./... -count=1
  • npm ci
  • npm run check:package

@cursor
Copy link
Copy Markdown

cursor bot commented Apr 14, 2026

PR Summary

Medium Risk
Updates protobuf API contracts for multiple list RPCs, which requires coordinated client/server rollout and may break consumers that assume non-paginated responses. Changes are additive but touch cross-language generated bindings.

Overview
Adds pagination to the prompts.v1 list RPC contracts by introducing limit/offset on ListPrompts, ListVersions, ListLabels, and ListDeployments requests, and total/has_more on the corresponding responses.

Regenerates Go, Python, and TypeScript protobuf bindings to expose the new fields (including new getters/typed properties and updated serialized descriptors).

Reviewed by Cursor Bugbot for commit 8d13752. Bugbot is set up for automated code reviews on this repo. Configure here.

@haasonsaas haasonsaas merged commit 9d9dc3b into main Apr 14, 2026
6 checks passed
@haasonsaas haasonsaas deleted the codex/proto-prompts-pagination branch April 14, 2026 01:25
haasonsaas added a commit that referenced this pull request Apr 14, 2026
Add pagination to prompt list contracts
haasonsaas added a commit that referenced this pull request Apr 14, 2026
…d habit confidence hints

meter/v1: IngestWideEventResponse now includes budget_exceeded and
budget_message so callers know if a wide event pushed them over budget.
Supports the budget enforcement work in evalops/meter#46 and #49.

governance/v1: ActionEvaluation now includes habit_confidence and
habit_observation_count so callers can show trust trajectory to humans
(e.g. "94% confidence, 2 more approvals until auto-approve").

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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