Skip to content

fix(paywalls): tag AI editor requests with the cli source - #183

Merged
azvaliev merged 2 commits into
mainfrom
send-cli-source-to-astra
Sep 29, 2026
Merged

azvaliev merged 2 commits into
mainfrom
send-cli-source-to-astra

Conversation

@azvaliev

@azvaliev azvaliev commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

we use this field in astra to tell which client did request easiyl


Note

Low Risk
Small additive metadata on existing API calls with no auth or business-logic changes; Rewind is untouched.

Overview
Paywall AI editor traffic from the CLI is now labeled with source: "cli" so Astra can attribute requests to the CLI versus dashboard or mobile clients.

Stream sets source on EditorRequest before POSTing to /editor/v1/stream, and Feedback includes the same field on /editor/v1/feedback. The value is fixed via an internal editorSource constant so callers do not set it themselves. Rewind is unchanged.

Tests assert the stream and feedback bodies send source as "cli".

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

@azvaliev
azvaliev requested a review from joshdholtz September 29, 2026 10:42
@azvaliev
azvaliev marked this pull request as ready for review September 29, 2026 10:42
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-29T10:44:02.021856Z ab2e915 Draft marked ready
ℹ️ 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.

@joshdholtz joshdholtz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

:shipit: :shipit: :shipit:

@azvaliev
azvaliev merged commit 10c7606 into main Sep 29, 2026
5 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.

2 participants