Repository navigation
Conversation
a6c3612 to
4e9f066
Compare
4e9f066 to
6fee270
Compare
6fee270 to
1a2e390
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1a2e390. Configure here.
| } | ||
| if outputKind == "markdown" { | ||
| _, _ = fmt.Fprintf(&rendered, "\n#### %s (%s)\n\n", section.title, section.change) | ||
| _, _ = fmt.Fprintf(&rendered, "```diff\n%s\n```\n", strings.Join(diffLines, "\n")) |
There was a problem hiding this comment.
Markdown skill diffs break code fences
Medium Severity
Markdown review wraps skill diffs in a diff fence while skill bodies are emitted as raw markdown. An unchanged closing fence line from the skill becomes a CommonMark closer (three leading spaces plus backticks) and terminates the outer fence, so later diff lines render as broken markdown.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 1a2e390. Configure here.
| } | ||
| _, _ = fmt.Fprintf(rendered, "\n%s%s:", padding, key) | ||
| for _, item := range nested { | ||
| _, _ = fmt.Fprintf(rendered, "\n%s- %v", strings.Repeat(" ", indent+2), item) |
There was a problem hiding this comment.
Nested schema objects dump as Go maps
Low Severity
writeDiffMap prints JSON Schema arrays with %v, so nested objects and nulls show up as Go values like map[type:string] and <nil>. Tool schemas that use anyOf, oneOf, or prefixItems are less readable than the JSON they replaced, and null defaults are easy to misread.
Reviewed by Cursor Bugbot for commit 1a2e390. Configure here.


Context
Tool and skill changes are reviewed as part of the variation that references them. This layer updates the terminal output so users can see that relationship clearly and understand exactly what will change before confirming a sync.
What changes
Review focus
Verification
go test ./internal/sync/promptgo test ./...git diff --checkRelated changes
Review the stack in this order:
Note
Overview
Reworks sync plan review output so project → config → variation hierarchy is obvious in the terminal, with bold headings and deeper indentation for actions and errors.
Tool and skill changes are no longer one blob of JSON or a collapsed “whole variation” diff. Each attachment is its own section (e.g.
Tool "my-first-tool" (added)), with readable fields (description, schema, markdown) and(not attached)when missing; unchanged attachments are skipped. Tool/skill diffs drop@@hunk lines, and unified diffs use 1 line of context instead of 3 for tighter side-by-side output.Adds tests covering attachment rendering, per-skill sections, config grouping, and diff context.
Reviewed by Cursor Bugbot for commit 1a2e390. Bugbot is set up for automated code reviews on this repo. Configure here.