Repository navigation
Description
SharePoint offers Sync import and reports files synced without registering a sync
Candidate sharepoint-sync-reports-success-without-registration-20260929 · P2 · independently verified defect.
Reproduction:
- Documents → Upload documents → From Microsoft 365 → SharePoint Sites.
- Open an accessible site/library and select Report.txt at the library root. Do not visit a OneDrive subfolder or use search.
- Proceed to Import settings and select Sync import, whose description says Keep files automatically synchronized. The option is enabled.
- Press Sync 1 item and let the ordinary import succeed.
Expected: expose only supported import modes for SharePoint, or clearly refuse/describe an unsupported sync selection. A one-time copy must not report that an ongoing sync was established. The current guide explicitly says SharePoint selections import once; enabling SharePoint sync is not required to resolve this mismatch.
Actual: the current UI submits importType: 'sync' with sourceType: 'sharepoint'. Actual native importFiles returns success, requests creation of the document with metadata.sourceMode: 'auto' and no syncConfigId, and calls upsertSyncConfig zero times. That real result drives the actual dialog to close and emit Sync completed — 1 of 1 files synced. The selected file has no registration for the background sync engine, despite the promise that later changes stay synchronized.
Controls: ordinary SharePoint One-time import succeeds with manual metadata and no sync config; the same Sync flow for an actual OneDrive file calls upsertSyncConfig once and stamps its returned config ID; a failed SharePoint metadata read produces the native failed result, keeps settings open and raises Sync failed. These controls run both in jsdom and Chromium, using actual native import logic as the adapter seam.
Root: OneDriveSettingsStage always renders the Sync choice at onedrive-settings-stage.tsx:149; its caller has no SharePoint capability gate. derive_sync_targets.ts:22 states the engine supports personal OneDrive only and :29 skips every SharePoint item. Yet import_files.ts:422 sets auto sourceMode from requested importType and returns successful copy counts; the dialog at onedrive-import-dialog.tsx:536 chooses Sync completed from that requested type rather than actual registration. The native route accepts both fields and forwards them to importFiles.
Oracle: docs/en/platform/knowledge/documents.md:98 says personal OneDrive supports sync and SharePoint selections import once. The same guide defines Sync import as keeping supported selections current. This is a false capability/success claim in the existing import flow, not a request to implement a new provider feature.
Evidence: sharepoint-sync-settings.json, sharepoint-sync-outcome.json (native result, zero sync calls, created document metadata, actual toast calls); sharepoint-one-time-control-outcome.json, onedrive-sync-control-outcome.json, sharepoint-refusal-control-outcome.json. chromium-sharepoint-sync-settings.png shows the enabled Sync choice/promise. Test sources: sharepoint-sync.probe.test.tsx, sharepoint-sync.browser.test.tsx.
Dedup: live all-state SharePoint+sync search returns #3922 (wrong import path) and historical #703 (schema path promotion), with no matching capability/registration defect. Ledger and baseline contain no matching root. Merged #2507 introduces the sync pipeline and #2509 schedule reuse; current native code still deliberately excludes SharePoint. #3186 fixes ownership preservation on re-import, #3386 source icons, #3166 listing bounds, #3905 error reporting. None gates this unsupported UI mode or reports its actual one-time outcome. No relation to the late-completion ownership report: this reproduces with one uninterrupted successful operation.
Current source f406afc4aa0d4b916d6f09ff9781400a92d7f4d0 in /Users/yannick/.codex/notes/tale-1000-additional/files-current-next/checkout. Initial and final GitHub main receipts match; final check 2026-09-29T14:54:22.312355+00:00. Product source is unmodified. Scratch and evidence are outside the clone. No production/provider/database writes or public issue changes.
Verification: 2 files / 10 tests passed in jsdom and 10 in Chromium. This includes 6 async parent/lifecycle controls and 4 native SharePoint/OneDrive import controls. Full logs: ui.log, chromium.log; browser observations: chromium-evidence.json plus PNGs. Tests assert observed defective behavior and healthy/refusal controls; green here means reproduction, not a product fix.
Exact replay commands:
cd /Users/yannick/.codex/notes/tale-1000-additional/files-current-next/checkout && ./node_modules/.bin/vitest --run --config /Users/yannick/.codex/notes/tale-1000-additional/files-async-next/vitest.config.ts --reporter=verbose --silent=false
cd /Users/yannick/.codex/notes/tale-1000-additional/files-current-next/checkout && ./node_modules/.bin/vitest --run --config /Users/yannick/.codex/notes/tale-1000-additional/files-async-next/vitest.browser.config.ts --reporter=verbose --silent=falseBoundaries: identity/ability/team/listing fixtures; inert adapter/provider/storage/database/indexing dependencies; toast calls captured instead of rendering a Toaster. Real current parent/lazy dialog/shared controls/catalog and useBackendAction/TanStack mutation lifecycle run. Native importFiles and deriveSyncTargets run in the SharePoint suite and return their actual result to the component; no real external account, persistence or scheduled-worker run is claimed. React nested-button/act warnings and existing mixed Vitest4.1.11/browser4.1.10 warning are retained, not counted. Initial browser mock omitted a useToast export; fixing that scratch mock produced the final 10/10; initial log retained.
Independent current-main verification
Parent read the actual parent/dialog mutation lifecycle, native import and sync-target code, and documented SharePoint one-time contract; reviewed the nearest-analogue dedup. It independently replayed all 10 Chromium cases on f406afc4, then inspected the moved-main delta, advanced the clean detached checkout, and replayed all 10 again on 6483479b810228407994bff6ad04faa8a6c3d58c. All passed, including four cases where actual native import results drive the UI. Parent log: parent-current-6483479.log, first line records actual HEAD. Earlier receipts and fixed source markers in scratch JSON describe original probe provenance; the current replay revision is the HEAD receipt. The 10 jsdom cases are the agent's original evidence and were not independently rerun in this pass. No real storage/database/provider writes or scheduled sync run occurred.
Activity