Repository navigation
[2604 by GPT-5.6 Sol] MCP visual previews: list_visual_previews and get_visual_preview returning bounded, downscaled image content - #2647
Conversation
…ews and get_ Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully.
|
/ultrafix |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR adds task/PR preview discovery, image rendering, and MCP image/resource delivery. It needs a localized correction before merge because the new text-content path bypasses result redaction. Current head checks report 27 passed and no failures. ✅ Bounded image output — Rendering caps dimensions and reduces quality or dimensions until the encoded image fits within 750 KiB. ✅ Protocol coverage — The added integration test checks image blocks and blob resources through both current and legacy clients. ✅ Early video rejection — Published videos are rejected before their media body is downloaded. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Redact metadata in text content
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Exercise rendering fallback branchesThe supplied test uses a solid-color PNG, which verifies downscaling but does not meaningfully exercise the encoded-size fallback. Add fixtures covering noisy images, PNG/JPEG output, SVG, animation, and malformed input. These would strengthen confidence in the rendering branches; their absence alone does not demonstrate another merge blocker. ScoreThe implementation is focused and current checks are passing, but the new metadata delivery path bypasses an existing safety boundary. A localized fix and regression test should address the blocker. Score: 6/10 🤖 Review Details
🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit b94cc01
Summary of ChangesImplemented F1.
Validation:
🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
Implemented F1. - Restored redaction for MCP text-content overrides while preserving binary image/audio blocks unchanged in [toolExecution.ts](/tmp/git-processor/worktrees/integry/propr/pr-2647-followup-2026-09-29T22-12-06/packages/api/mcp/toolExecution.ts:94). - Added secret-bearing preview metadata regressions covering structured and text content for current and legacy MCP clients in [mcpVisualPreviews.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-2647-followup-2026-09-29T22-12-06/packages/api/test/mcpVisualPreviews.test.ts:135). Validation: - Focused visual-preview test passed. - All 27 MCP test files passed. - API typecheck and lint passed. - `git diff --check` passed. - No independent defects found. - No visual preview generated because the change is backend-only. PR: #2647 Comment by: @propr-ultrafix (ID: 0) Model: gpt-5.6-sol
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR adds visual-preview discovery and retrieval through MCP tools and blob resources. It is ready to merge based on the supplied code and authoritative checks: 27 passed, none failed or pending. ✅ Shared authorization path — Resource reads invoke the same tool execution path as tool calls, preserving scope and repository authorization. ✅ Bounded image responses — Downloads receive a source-size limit, rendering caps dimensions, and quality/resolution fallbacks enforce the rendered-byte limit. ✅ Protocol compatibility coverage — The added integration test exercises modern and legacy clients, image content, blob resources, metadata redaction, and caller-token fetching. This was a static review of the supplied code; no commands or tests were run. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S2: 🟢 Exercise rendering fallback branchesThe new test uses a solid-color PNG that compresses easily. Add cases for JPEG and PNG output, noisy images that require quality or dimension reduction, animated inputs, SVGs, and malformed media. These would strengthen coverage of S3: 🟢 Return preview resource links
ScoreThe implementation is cohesive, includes meaningful integration coverage, and has no verified merge blockers or failing current-head checks. Additional rendering cases would improve confidence in its less frequently exercised branches. Score: 9/10 🤖 Review Details
🤖 Review by ProPR |
8a606b7
into
2593-epic-mcp-observability-cf6
… 1 is the chip and the title. Line 2 is the type tag followed by what the run did or why it failed. Row 2 from your screenshot now reads `Issue #86 Support configuration/…` on top and `✨ IMPLEMENT Typecheck failed during test execution` underneath, which matches Row 1's layout. Every row in the task list now has the same two lines. Line 1 is the chip and the title. Line 2 is the type tag followed by what the run did or why it failed. Row 2 from your screenshot now reads `Issue #86 Support configuration/…` on top and `✨ IMPLEMENT Typecheck failed during test execution` underneath, which matches Row 1's layout. All unit tests pass, the six task-related Playwright suites pass (36 tests), and lint is clean on the changed files. **What changed:** 1. **Line 1 is only `[chip] title`.** The title stays on one line and is cut with `…` instead of wrapping. The full title is still in the tooltip. Nothing sits between the chip and the title anymore, so every title starts 8px after its chip. Chips are different widths (`PR #2647` vs `Issue #86`), so titles start at the same x only where the chips are the same width. 2. **Line 2 is always drawn.** The type tag lives only on line 2 now, and the special one-line layout for single runs is gone (in `TaskRows.tsx`). - When a run has no summary, line 2 shows its outcome: the first line of the failure reason, `Pushed commit abc1234`, `Waiting to start`, and so on. - That outcome used to be filled in only for rows with earlier runs. Now every row gets it (in `rowModel.ts`). 3. **Every row is the same height.** The preview-count badge made one row's second line 22px instead of 20px, so line 2 is now fixed at 20px. At 1920px every row is 63px tall. **Laptop widths:** at 1280px the title column is narrow, so long titles are now cut much shorter, e.g. `Add keyboard shortcut…`. Before, they wrapped onto a second line. That's what the one-line rule asks for, but widening the title column would show more of each title if it feels too tight. **Tests:** I updated the unit and Playwright tests that expected single runs to be one line or titles to wrap at 1280px. I added Playwright checks that all rows are the same height and that every title starts one gap after its chip. I also added a failure reason to the Issue #86 test data so line 2 has real text to show. I captured two previews at 1920px: a close-up of the two rows from your screenshot, and the full list. A 1280px close-up came out with the footer over the second row, so I dropped it. PR: #2728 Comment by: @integry (ID: 6003977249) Model: claude-opus-5-5
AI Implementation Summary
Closes #2604
Branch:
2604/gpt-5.6-sol-mcp-visual-previews-list_-20260929-2142-29rCommits: ✅ Changes committed (e1e05ad)
AI Processing Completed
Execution Details:
Summary:
Implemented GitHub issue #2604.
Key changes:
list_visual_previewsandget_visual_preview.sharpdependency and production image smoke validation.Validation:
Detailed Logs:
01a0ef1f-9aa3-7441-ba63-2d100265bf43Log files stored at:
/tmp/claude-logs/issue-2604-2026-09-29T21-59-19-162Z-conversation.json/tmp/claude-logs/issue-2604-2026-09-29T21-59-19-162Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #2604.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!