Repository navigation
[3945 by GPT-6.2 Sol] Connect Plus: show visual previews inline without a GitHub upload token (serve inline derivative from Connect) - #3949
Conversation
Implemented #3945. PRs and follow-up comments now prefer GitHub attachments, fall back to a capped WebP served by Connect Plus, and keep the authenticated full-size original link when available. Private and internal repositories require explicit opt-in for public image links. Upload settings show when Connect Plus is configured without a GitHub token. Live use requires applying the migration and deploying the Connect routing Worker. [Companion routing patch](/home/node/workspace/docs/static/patches/propr-routing-inline-previews.patch) ProPR preview suites, Chromium checks, and Connect endpoint tests passed. One pre-existing routing maintenance test failed on its fixed expiration date, which I reproduced on the unchanged routing source. ProPR-Agent: codex/gpt-6.2-sol
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
✅ Applied the requested follow-up changes in commit a7bd43d Processed 2 comments:
Summary of ChangesFixed all four lint warnings that caused Strict lint passed locally for the UI, core, and API workspaces. The affected builds, UI typecheck, 55 targeted unit tests, and all 9 Chromium settings tests passed. Review digestRisk-tiered paths
Diff size: 4 files changed, +22/−29 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed all four lint warnings that caused `Validate Changes` to fail on PR #3949. The changes preserve the visual preview settings layout and validation behavior. No preview files were generated because the changes have no visible effect. Strict lint passed locally for the UI, core, and API workspaces. The affected builds, UI typecheck, 55 targeted unit tests, and all 9 Chromium settings tests passed. PR: #3949 Comment by: @propr-dev[bot] (ID: 7296729734) Comment by: @github-actions[bot] (ID: 7296730854) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
CI failed: Validate unsigned linux-x64 package Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 2cfa055 Summary of ChangesFixed the Linux x64 package check’s retry logic. Electron Forge received HTTP 618 ( All 46 retry and workflow tests passed, including a regression test for the exact error. The unsigned Linux x64 package built locally on Node 24 and passed native icon verification. The GitHub Actions check on the updated code is still unverified. Review digestRisk-tiered paths
Diff size: 2 files changed, +8/−2 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the Linux x64 package check’s retry logic. Electron Forge received HTTP 618 (`jwt:expired`) while downloading `SHASUMS256.txt`, and the retry wrapper exited after the first attempt. The wrapper now retries that specific GitHub release-asset error within the existing five-attempt limit. [Failed CI run](https://github.com/integry/propr/actions/runs/46549423734/job/142310655628) All 46 retry and workflow tests passed, including a regression test for the exact error. The unsigned Linux x64 package built locally on Node 24 and passed native icon verification. The GitHub Actions check on the updated code is still unverified. PR: #3949 Comment by: @propr-dev[bot] (ID: 7297042475) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
Full Test Suite ResultsValidation failed during: Test shard (shard 2).
View shard 2/4 outputDetails truncated; see the uploaded artifacts for complete failure rows and logs. |
|
CI failed: Run Full Test Suite Please investigate and fix this CI failure.
Depends on the failed job(s): Failure evidence
|
|
✅ Applied the requested follow-up changes in commit bc00486 Processed 2 comments:
Summary of ChangesFixed PR #3949’s shard 2 failure. The CLI repository update now omits All 23 tests in the CLI repository and API configuration validation suites passed locally, and the CLI build passed. The full GitHub Actions suite remains unverified. Review digestRisk-tiered paths
Diff size: 1 file changed, +2/−1 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed PR #3949’s shard 2 failure. The [CLI repository update](/home/node/workspace/packages/cli/src/api/repos.ts:507) now omits `connectInlinePreview` when no policy is set and preserves a saved policy unless the update supplies a replacement. All 23 tests in the CLI repository and API configuration validation suites passed locally, and the CLI build passed. The full GitHub Actions suite remains unverified. PR: #3949 Comment by: @github-actions[bot] (ID: 7297686451) Comment by: @propr-dev[bot] (ID: 7297687621) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryResolved all three conflict blocks in the two desktop retry files. A workspace-wide scan found no remaining merge conflict markers.
Both files passed Git still lists both paths as unmerged because the worktree’s index is on a read-only filesystem. 🤖 Resolution Details
System-triggered merge conflict resolution |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - apps/desktop/scripts/retry-transient-download.mjs - apps/desktop/scripts/retry-transient-download.test.mjs PR: #3949 Model: GPT-6.2 Sol
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements GitHub-first publication with a bounded Connect image fallback, authenticated original links, and repository privacy controls. It is merge-ready within the supplied scope. Current-head checks report 35 passed and no failures; historical failures are superseded. ✅ Conservative privacy defaults — Connect publication requires explicit opt-in for private/internal repositories; unknown visibility and failed configuration reads do not authorize public derivatives. ✅ Validated publication metadata — Original ownership, filename, content type, size, retention, and Connect origin are checked before rendering. Derivative URLs must match the finalized artifact. ✅ Graceful fallback — Derivative failures preserve authenticated original links, and successful GitHub attachments retain priority. This was a static review of the supplied diff and context. No commands were run. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Remove stray fixture referencesIn S2: 🟢 Exercise derivative recovery pathsThe companion routing patch tests successful publication, quota rejection, deletion, and uninstall. Additional tests for interrupted R2 writes and concurrent derivative creation would help validate its reservation rollback and retry behavior. This is optional coverage improvement; the supplied code does not establish a concrete failure in those paths. ScoreThe implementation addresses the objective with conservative authorization, validated URLs, and useful fallback coverage. All reported current-head checks pass, and the static review found no verified merge blockers. Score: 9/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
Please fix two blockers found in my own review before this can merge. 1. Use Connect's real inline contract from integry/propr-routing#345 (which implements propr-routing#344), not a new one. As written, the client sends The contract in #345 (
So: remove 2. Remove Leave the stray |
|
✅ Applied the requested follow-up changes in commit 08d94fd Summary of ChangesFixed both blockers in PR #3949. GitHub attachments are tried first. If an image still needs an attachment, ProPR sends Removed the private routing patch from the public docs and documented the finalize requirement. CI still invokes the desktop retry scripts. All 19 server preview test files, 128 UI tests, the Chromium settings check, TypeScript checks, and the docs build passed. Relay behavior was verified with fixture responses. Review digestRisk-tiered paths
Diff size: 15 files changed, +154/−640 lines Visual previewConnect Plus preview uploadsWith managed storage enabled and no GitHub upload token, Settings explains when Connect can publish eligible inline images. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed both blockers in PR #3949. GitHub attachments are tried first. If an image still needs an attachment, ProPR sends `inline: true` on the existing Connect finalize request only when the repository policy permits public image links. A valid HTTPS `inlineUrl` on the Connect origin is embedded in the comment. Missing or invalid URLs use the existing authenticated-original fallback. Removed the private routing patch from the public docs and documented the finalize requirement. CI still invokes the desktop retry scripts. All 19 server preview test files, 128 UI tests, the Chromium settings check, TypeScript checks, and the docs build passed. Relay behavior was verified with fixture responses. PR: #3949 Comment by: @integry (ID: 7298491145) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationReady to merge within the reviewed scope. The implementation follows the amended Connect contract and preserves GitHub attachment priority. ✅ Correct finalize contract — Inline requests use the existing finalize endpoint, with optional HTTPS, same-origin ✅ Explicit privacy policy — Private, internal, and unknown repository visibility defaults to authenticated originals. Policy-loading failures also suppress public inline requests. ✅ Focused regression coverage — Added tests cover publication order, consent, missing credentials, failed GitHub uploads, and missing or off-origin inline URLs. Current-head checks report 35 passed and no failures or pending checks. This assessment is based on the supplied code; no commands were run. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe changed implementation satisfies the visible amended objective, with focused tests and passing current-head checks. No merge-blocking regression was identified in the supplied diff. Score: 9/10 🤖 Review Details
🤖 Review by ProPR |

AI Implementation Summary
Closes #3945
Branch:
3945/gpt-6.2-sol-connect-plus-show-visual--20261201-0018-cz9Commits: ✅ Changes committed (1ffebc6)
AI Processing Completed
Execution Details:
Summary:
Implemented #3945. PRs and follow-up comments now prefer GitHub attachments, fall back to a capped WebP served by Connect Plus, and keep the authenticated full-size original link when available. Private and internal repositories require explicit opt-in for public image links. Upload settings show when Connect Plus is configured without a GitHub token.
Live use requires applying the migration and deploying the Connect routing Worker. Companion routing patch
ProPR preview suites, Chromium checks, and Connect endpoint tests passed. One pre-existing routing maintenance test failed on its fixed expiration date, which I reproduced on the unchanged routing source.
Review digest
Risk-tiered paths
propr-ui/src/pages/SettingsPage/VisualPreviewAuthSection.tsx(+11/−6): auth-looking pathpackages/api/routes/configRepoValidation.ts(+24/−13)packages/cli/src/api/repos.ts(+3/−1)packages/core/src/config/configManager.ts(+4/−1)packages/core/src/services/previewStorage/v1.ts(+45/−3)packages/core/src/services/visualPreviewRendering.ts(+45/−32)packages/core/src/services/visualPreviewService.ts(+1/−0)packages/shared/src/previewStorage/v1.ts(+34/−0)propr-ui/src/api/proprTypes.ts(+2/−1)propr-ui/src/components/RepositoryVisualPreviewControl.tsx(+22/−1)propr-ui/src/hooks/repositoryVisualPreview.ts(+2/−1)propr-ui/src/pages/SettingsPage/ManagedPreviewStorageSection.tsx(+8/−2)propr-ui/src/pages/SettingsPage/settingsDataSections.tsx(+12/−6)src/github/managedVisualPreviewStorage.ts(+5/−1)src/github/visualPreviewAttachments.ts(+94/−84)src/github/visualPreviewPublication.ts(+49/−14)docs/docs/architecture/preview-storage-relay.md(+29/−0)docs/docs/features/visual-previews.md(+13/−8)docs/static/patches/propr-routing-inline-previews.patch(added, +416/−0)packages/api/test/configRepoValidation.test.ts(+21/−0)packages/core/test/managedPreviewStorage.test.ts(+47/−1)packages/core/test/visualPreviewService.test.ts(+7/−13)propr-ui/e2e/repositories-settings.pw.ts(+22/−0)propr-ui/e2e/settings-layout.pw.ts(+25/−0)propr-ui/src/components/RepositoryVisualPreviewControl.test.tsx(+3/−3)test/visualPreviewAttachments.test.ts(+79/−1)Diff size: 26 files changed, +1,023/−192 lines
View task for the run's logs and conversation.
This PR was created automatically by ProPR after processing issue #3945.
💡 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!
Visual preview
Repository inline preview privacy
Repository visual preview settings with authenticated originals selected.
Full-size original
Connect Plus upload settings
Visual preview uploads shows Connect Plus configured without a GitHub upload token.
Full-size original