← Back to Pull requests

Keep large Move import confirmations on-screen #1542

Closed
unknown closed this pull request without merging on Dec 04, 2026 04:44 UTC
View on GitHub
unknown unknown commented on Dec 04, 2026 03:23 UTC
Author

Closes #1540

Motivation

Moving 1,000 individually selected images puts every source path into a native message box. That can grow beyond the desktop and push both buttons off-screen.

Description

  • Show the total number of requested paths, up to three examples, and the number omitted.

  • Show full paths for folders and selections of up to three dropped items. Limit path length in the preview for larger selections.

  • Escape literal backslashes and control characters so distinct paths stay distinguishable. Keep Cancel as the default and apply explicit confirmation to the entire original request.

  • Cover a 1,000-file selection, a folder, a small selection, and paths that could otherwise expand the prompt.
  • Documentation

    Updated the import-source story, native confirmation acceptance coverage, and patch changeset.

    Testing

  • Passed npm run lint, npm run format:check, npm run docs:gov, npm run check:changesets, and node scripts/check-e2e-coverage-map.mjs.

  • Passed all 11 tests in node scripts/run-electron-node-test.mjs .test-dist/tests/import/import-move-confirmation.test.js.

  • Measured the Linux Electron native message box on an isolated 800 × 600 Xvfb display with 1,000 generated JPEG paths. The original detail produced a 523 × 19,156 px dialog. The compact preview produced a 523 × 232 px dialog. The revised prompt also fit with long paths (289 px tall). Pressing Enter selected Cancel in both revised cases.

  • npm test completed typechecking, compilation, the DOM lane, and the DB-pages lane. Its unit lane initially lacked the pinned Image Trail evidence checkout. Rerunning npm run test:unit:run with INTEROP_IMAGE_TRAIL_ROOT set passed (2,913 passed, 10 skipped). npm run check:interop-acceptance passed with the same fixture.

  • Packaged macOS and Windows confirmation layout still needs manual verification.
  • Manual testing

    1. In a packaged build, drop 1,000 JPEGs directly onto Overlook, select Move, acknowledge the inline warning, and start the import.
    2. Verify that the native prompt shows 1,000 requested paths, three preview paths, and 997 more. Both buttons should be reachable, with Cancel selected by default.
    3. Choose Cancel and check that the selection is still available and its sources are untouched. Try again with disposable files and choose Move originals to verify the existing Move behavior.
    4. Select a folder or up to three items with long, similar paths and check that each path is shown in full.

    <!-- agent-bot-write: ghw_07622a82b952861a session=f601b21bf418 bot=trueline-codex-agent[bot] -->

    Diff: 322 lines (+241 / -81) across 4 files Reviewer: qwts Review duration: 81m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.42) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 322 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.346
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1542"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 41.9% (MEDIUM) · Higher = larger blast radius
    41.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.1% · Safe to merge
    18.1%