Repository navigation
feat(onboarding): Render private CLI setup instructions - #129764
Conversation
|
No findings on the latest commit. |
ffbc31e to
dcce8fc
Compare
dcce8fc to
9a6ab31
Compare
9a24f52 to
3b740b9
Compare
3b740b9 to
454144b
Compare
4014d41 to
66465f4
Compare
66465f4 to
cd601fe
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit cd601fe. Configure here.
| """Keep untrusted context on one line, outside Markdown instructions or HTML.""" | ||
| single_line = " ".join(value.split()) | ||
| printable = "".join(character for character in single_line if character.isprintable()) | ||
| return _MARKDOWN_SPECIAL.sub(r"\\\1", html.escape(printable, quote=False)) |
There was a problem hiding this comment.
Label escaping corrupts greater-than entities
Medium Severity
_escape_label runs html.escape before markdown escaping, so the > inside > is then backslash-escaped to >\>. Labels that contain > no longer render as that character, and the organization-name assertion that expects intact > entities does not match the output.
Reviewed by Cursor Bugbot for commit cd601fe. Configure here.
cd601fe to
186b4a5
Compare
| @@ -0,0 +1,54 @@ | |||
| {# TODO: Select skill handoffs from the handoff code's context. #} | |||
There was a problem hiding this comment.
Just checking this todo is meant to be here
There was a problem hiding this comment.
Yeah going to follow up
…ease (#130060) The private CLI setup runbook (#129764) tells the agent to run `curl -fsSL https://cli.sentry.dev/install | … bash`. That runs whatever cli.sentry.dev serves at that moment, at whatever version it picks. Since getsentry/toolkit#1962, each CLI release attaches its `install` script as a GitHub release asset, and the release registry lists its URL (`file_urls.install`). The runbook now runs the installer from the latest release in the cached `/apps` registry entry and pins `SENTRY_VERSION` to that same release. CLI releases are immutable on GitHub, so that script can't change after publish, and the installer already verifies the CLI binary against the registry's checksums before installing it. - `sentry.agent_handoff.installer` picks the installer and builds the command; the runbook only renders it. - The URL ends up in a shell command, so only a `github.com/getsentry/toolkit/releases/download/cli@<semver>/install` URL is accepted, and the pinned version comes from that URL. - When the registry has no `install` asset (self-hosted, or before the first CLI release that ships one), the runbook uses the plain `curl https://cli.sentry.dev/install | bash` command. <!-- junior-request-attribution:start --> via **evan.purkhiser**, @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC010884QHLG%3A1793826611.312959 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC010884QHLG%3A1793826611.312959) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC010884QHLG%3A1793826611.312959/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Evan Purkhiser <[email protected]> Co-authored-by: BYK <[email protected]>


The handoff claim flow needs a self-contained Markdown guide for installing or authenticating the CLI against the intended Sentry account and organization. Render the guide from a Jinja template and finish by asking the user what they would like to do next. A template TODO tracks selecting future skill handoffs from the handoff context.
Render from authorized organization context and already-minted codes. Pass the intended instance and public client ID to bootstrap commands, shell-quote command values, and escape context labels and code fences.
VDY-341. The public claim endpoint integrates this renderer in the next slice.