[wrangler] Add SQL example to the agent-facing observability query hint - #14918
Merged
NuroDev merged 5 commits intoJul 30, 2026
Merged
Conversation
🦋 Changeset detectedLatest commit: 072cbc9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
workers-devprod
requested review from
a team and
petebacondarwin
and removed request for
a team
July 29, 2026 17:52
Contributor
|
Codeowners approval required for this PR:
Show detailed file reviewers |
@cloudflare/autoconfig
@cloudflare/config
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-functions
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
petebacondarwin
force-pushed
the
local-explorer-query-hint-example
branch
from
July 30, 2026 09:31
7ecf784 to
6ad6024
Compare
petebacondarwin
approved these changes
Jul 30, 2026
workers-devprod
approved these changes
Jul 30, 2026
workers-devprod
left a comment
Contributor
There was a problem hiding this comment.
Codeowners reviews satisfied
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
petebacondarwin
force-pushed
the
local-explorer-query-hint-example
branch
2 times, most recently
from
July 30, 2026 10:54
0e05d90 to
9aa5902
Compare
NuroDev
enabled auto-merge (squash)
July 30, 2026 13:03
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a
wrangler devsession is detected as running inside an AI agent, Wrangler prints a hint pointing at the Local Explorer API. This improves the line for the observability query endpoint (POST /local/observability/query), which previously just said "query request traces and console logs" — giving an agent no idea how to actually call it.The hint now:
spansandlogstables,attributesis JSON (read viajson(attributes)), which agents can't infer from column names alone,curlexample that also documents the{"sql": "..."}request body shape,The example conveys the endpoint usage, request envelope, table names, and the root-span filter (
parent_id IS NULL) far more succinctly than embedding the whole schema.