Skip to content

✨ Add agent disclosure and screenshot comment layers - #398

Merged
Robdel12 merged 3 commits into
mainfrom
rd/agent-review-attribution
Nov 6, 2026
Merged

Robdel12 merged 3 commits into
mainfrom
rd/agent-review-attribution

Conversation

@Robdel12

@Robdel12 Robdel12 commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Why

Comments and review decisions should disclose agent assistance while keeping the logged-in user as the author. An agent reviewing a screenshot can also leave feedback on the exact spot it inspected, on the image it was actually looking at.

Approach

The CLI recognizes Codex, Claude Code, Pi, Gemini CLI, and OpenCode at the shared HTTP write boundary. It sends only the agent label and keeps session IDs, thread IDs, and prompts local. Use --via-agent or VIZZLY_VIA_AGENT to name an agent explicitly. Ambiguous markers and invalid overrides stop the write.

vizzly comment supports screenshot IDs, threaded replies, and a location on a specific layer:

  • --layer current|baseline|diff picks the image. It defaults to current on the server.
  • --region x,y,width,height is measured in that layer's bitmap pixels. Current and diff share the current image's pixels, while baseline uses the baseline image, which can be a different height.
  • --point x,y pins a spot as integer percentages (0–100). It can't be combined with --region.
  • All three require --screenshot and are rejected with --reply-to, since replies inherit their thread's layer and location.
  • Human output shows the layer and location, and JSON output includes layer for screenshot comments.

--type is removed. The product no longer shows comment types, and Approve/Reject/Question read as review decisions when they weren't. The server still defaults type to general and accepts it from older clients. Scripts that pass -t/--type will now fail with an unknown option, so this needs a release note.

Raw API comments and decisions use the same disclosure path. Review commands use the shared credential and scope checks, so explicit tokens take precedence and the CLI reports which credential it selected.

Evidence

The CLI review tests cover all five harnesses, explicit agent selection, rejected opt-outs, credential precedence, read-only scopes, and the comment request bodies for layered regions, points, and replies, along with every location validation. The built CLI completed comment and decision workflows against a real authenticated server and database before the layer change. Layers and points have so far been checked only against the test server.

Release after the server supports agent labels, screenshot comment layers, and points.

Disclose known agent assistance on review writes without transmitting harness identifiers. Support precise screenshot feedback and share credential selection, scope checks, and attribution with raw API commands.
@vizzly-testing

This comment has been minimized.

Keep disclosure on for recognized agent harnesses. Explicit settings can name the agent, and invalid settings stop the review write.
@vizzly-testing

This comment has been minimized.

Add --layer current|baseline|diff and --point x,y to vizzly comment.
Both require --screenshot and are rejected with --reply-to, since replies
inherit their thread's layer and location. Remove --type; the server
still defaults it to general.
@Robdel12 Robdel12 changed the title ✨ Add agent disclosure and screenshot region comments ✨ Add agent disclosure and screenshot comment layers Nov 6, 2026
@vizzly-testing

vizzly-testing Bot commented Nov 6, 2026

Copy link
Copy Markdown

Vizzly - Visual Test Results

CLI Reporter - Waiting for build

No builds received yet for this pull request.

CLI TUI - 1 change needs review
Result Count Review
Meaningful diffs 1 Required - inspect changed screenshots
Passed 4 No action - matched approved baselines
Meaningful diffs needing review (1)

vizzly-help · 1202×1430 · 2.8% diff

vizzly-help

Review changes


rd/agent-review-attribution · 17bb98c1

@Robdel12
Robdel12 enabled auto-merge (squash) November 6, 2026 07:02
@Robdel12
Robdel12 merged commit fbeadc9 into main Nov 6, 2026
29 of 30 checks passed
@Robdel12
Robdel12 deleted the rd/agent-review-attribution branch November 6, 2026 07:05
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