Skip to content

feat(feedback): add apify feedback command - #1645

Open
patrikbraborec wants to merge 6 commits into
masterfrom
feat/feedback-command
Open

patrikbraborec wants to merge 6 commits into
masterfrom
feat/feedback-command

Conversation

@patrikbraborec

@patrikbraborec patrikbraborec commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Adds apify feedback so humans and agents can report a problem from the terminal. Part of #1519 (P0 and P1).

  • apify feedback <message> sends a CLI Reported Problem Segment event that mirrors the MCP server's report-problem fields, plus CLI version, OS, install method, the previous command, and whether a human or an agent sent it.
  • It sends even when telemetry is disabled, and exits 1 if Segment doesn't accept the event.
  • Existing "report this issue" messages, help, and docs point to the command first and keep the GitHub link.
  • Agent detection covers the env vars listed in the issue, except CURSOR_TRACE_ID.

Affects every command:

  • The last command is recorded at start and at end, so wasRetried shifts slightly.
  • telemetry.json is written atomically. Parallel commands could tear it.

Follow-up: P2 (agent host detection).

Adds Codex, Claude Cowork, Cursor agent-exec, Antigravity, Augment, OpenCode client, Hermes, Grok, Kiro, Replit, GitHub Copilot, the generic AI_AGENT/AGENT variables, and Devin. Agent-specific signals win over the generic ones. Part of #1519.
Lets humans and agents report a problem, or say something worked, from the terminal. The report goes to Segment as a 'CLI Reported Problem' event with the same properties as the MCP server's, plus the previous command and its exit code. It's sent even when telemetry is disabled, and the command exits 1 if Segment doesn't accept it. Part of #1519.
Every message that printed a bare GitHub issues link now offers `apify feedback` first and keeps the issues link for when you want a reply. Documents what feedback sends in the telemetry page and mentions the command in the agent skill. Part of #1519.
A retried or second `apify feedback` named `feedback` as the last
command. It now leaves the recorded command in place. Also points the
troubleshooting page at the command.
The command a report is about is now recorded when it starts and again
when it ends, so a report still names a command that hung, was
interrupted, or failed on a usage error. `help` and `feedback` don't
take its place.

Every command now writes the telemetry state twice, so the file is
written atomically. Parallel commands could tear it, and a torn file
made every later command exit 1. An unreadable state file now turns
telemetry off instead of failing the command. Part of #1519.
@pkg-pr-new

pkg-pr-new Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npx https://pkg.pr.new/apify-cli@1645

commit: 41c52ab

apify feedback now rejects a report whose text holds an Apify token, a value
passed to something named like a credential, or one of the machine's own
stored credentials. The event sender also masks recognisable credentials in
every telemetry event as a backstop.

This branch has not been deployed

No deployments
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