Skip to content
This repository was archived by the owner on Nov 30, 2026. It is now read-only.

Add cloud feedback command - #302

Merged
joetannenbaum merged 3 commits into
mainfrom
add-feedback-command
Nov 24, 2026
Merged

joetannenbaum merged 3 commits into
mainfrom
add-feedback-command

Conversation

@mateusjatenee

Copy link
Copy Markdown
Contributor

Adds cloud feedback, similar to Cloudflare's cf feedback. Users or their agents can use it to tell the Cloud team what got in their way: a wrong result, a confusing error, a docs gap, a missing endpoint, or a question the docs couldn't answer. It calls the Submit agent feedback endpoint (POST /feedback).

cloud feedback "<message>" [--type=feedback|question] [--tool=<command>] [--environment=<id>]
  • Rate limit: the API allows 20 submissions a day per organization and per user. When the limit is reached, the API returns 429 and the command fails with: "Feedback is limited to 20 submissions a day for each organization and each user, and that limit has been reached. Try again in 2 hours 1 minute." The wait comes from Retry-After. Without that header, the message says "Try again tomorrow."
  • Running without prompts (for agents): --type defaults to feedback. A missing message, an unknown --type, or a 422 fails with a clear error. --json prints {"sent":true}.
  • Running in a terminal: the command prompts for the type, the message (4,000 characters max), and, optionally, the command the feedback is about.
  • Docs: the README lists the command. The deploying-to-cloud skill tells agents to use it when the CLI, API, or docs get in their way.

Testing

  • tests/Feature/FeedbackTest.php covers the request body, invalid type, missing message, the 429 message, and JSON output.
  • Pint and PHPStan are clean.
  • I didn't test against the live API, because that would send real feedback and use up the daily limit.

ampagent and others added 3 commits November 23, 2026 17:43
Send the Cloud team what got in the way (a wrong result, a confusing
error, a docs gap, a missing endpoint) or a question the docs could not
answer, through the POST /feedback API endpoint. Reaching the daily
limit of 20 per organization and per user fails with a message that
says so and when to try again.

Amp-Thread-ID: https://ampcode.com/threads/T-01a20972-d1a5-761c-851e-de2fcbbaaae9
Co-authored-by: Mateus Guimarães <mateus@laravel.com>
@joetannenbaum
joetannenbaum merged commit 76b597c into main Nov 24, 2026
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants