Repository navigation
Description
Summary of the issue
Searching for deletion of a Worker script puts Worker secret deletion first and omits the Worker deletion command. Searching for deletion of a Worker puts a DLP validator deletion first.
Expected behaviour
The coding-agent guide describes search results as best match first. The task query should put cf workers delete first. The control query should still put cf workers secrets delete first.
Version of cf used
1.0.0-rc.1
System information and package versions
macOS 27.2 (arm64), Node.js 26.13.1, npm 12.2.2. Tested the public npm package and the default branch commit’s Continuous Releases package. Both were run in an isolated shell.
Reproduction (optional)
Run the following local searches in a directory without a project-local cf. A Cloudflare account and API credentials are unnecessary. The last query is a control. Inspect the JSON command values in result order. The searches are the complete reproduction.
CF_SEND_TELEMETRY=false cf cli search 'delete a Worker script'
CF_SEND_TELEMETRY=false cf cli search 'delete a Worker'
CF_SEND_TELEMETRY=false cf cli search 'delete worker secret'Relevant error logs (optional)
Both artifacts exited 0 and returned five JSON matches with the same order shown below. The commands in the output were left unexecuted.
| Query | First match | Intended command rank |
|---|---|---|
delete a Worker script |
cf workers secrets delete |
Absent from all five |
delete a Worker |
cf zero-trust dlp validators worker delete |
2 |
delete worker secret |
cf workers secrets delete |
1 |
Evidence
- Expected source: Use cf with coding agents, Help your agent find commands describes discovery by task and result order.
- Failure source: the executed searches in Reproduction produced the result rows in Relevant error logs on both tested artifacts.
- Evidence provenance: observed
- Local verification: reproduced
- Reproduction completeness: complete
Restoration check
Rerun the task searches and confirm that cf workers delete is the first match. Confirm that the control still leads with cf workers secrets delete.
References
- feat: add cf cli search keywords for common agent queries #623 — Its regression checks cover secret operations and Worker listing; this report covers deletion of the Worker itself.
Triage assessment
- Impact level: P2
- Assessment status: supported
- Impact basis: The top result is a destructive command for a different target. Reading the result summary and selecting the known Worker deletion command manually preserves the intended operation.
- Workaround status: available
- Workaround basis: The
cf workers deleteentry is present in the search output fordelete a Workerand can be selected directly.
Activity
test(cli-search): delete-a-Worker queries don't rank cf workers delet…