fix: surface bounded scan and navigation failures - #202
Conversation
📝 WalkthroughWalkthrough페이지는 루트 조회, 스캔, 폴더 탐색 및 경로 이동의 실패를 화면 내 한국어 오류 메시지로 표시합니다. 스캔 결과는 노드와 상위 파일을 병렬로 조회합니다. 관련 오류 표시와 API 호출 계약 테스트를 추가했습니다. Changes페이지 오류 피드백
Estimated code review effort: 3 (Moderate) | ~20 minutes Mergeability Score: 🟡 Moderate · up to A new scan can still be overwritten by an older navigation request, causing users to see stale folder results or breadcrumbs from the previous location. This localized correctness issue should be fixed or explicitly accepted before merge. Sequence Diagram(s)sequenceDiagram
participant Browser as 브라우저
participant Page as +page.svelte
participant API as 조회·스캔 API
Browser->>Page: 스캔 또는 탐색 요청
Page->>API: 루트·스캔·노드·상위 파일 조회
API-->>Page: 결과 또는 오류
Page->>Page: operationError 갱신
Page-->>Browser: 오류 메시지 또는 결과 표시
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
|
|
@coderabbitai review Please re-review the unchanged current exact head |
|
|
OpenCode Review Overview
Changed-File Evidence Mapflowchart LR
PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
Evidence --> S1["Changed file (3 files)"]
S1 --> I1["repository behavior"]
I1 --> R1["Review risk: Changed file (3 files)"]
R1 --> V1["required checks"]
|
|
@opencode-agent review Re-review exact current head |
Dismissing: this REQUEST_CHANGES (removed failure diagnostics) was addressed by commit 669f71c 'fix: retain bounded scan diagnostics', pushed after this review, which adds console.error(...) bounded diagnostics to every catch path (scan(), onScanDone inner catch, open(), jump(), and the onMount catches) while keeping the bounded user-facing operationError text. Verified: current head's catch blocks contain console.error calls and coverage-evidence passes. Both prior review threads are resolved. Re-request review to re-validate.
|
The bounded scan/navigation failure-feedback slice is ready for review at exact head |
Preserve the canonical scan/navigation page and its focused contracts while inheriting release-verifier truth from PR #264. No release source is copied into this lane.
Purpose
Own the primary scan/navigation UI boundary: keep backend failures bounded and visible, prevent stale async navigation/result publication, and make successful zero-result scans render the TopFiles empty-state surface without changing filesystem or cleanup authority.
Current authority — 2026-09-05 KST
main:0e90f9cebadbd7f59606baaec4ca1d2f178c899a;3e33229b4157a084a1985a1c7e952f98a64f25e3;060229015b4b81bb1d574a6827c8fb8c69fd7cdc;src/routes/+page.svelteplus focused scan/navigation/error/empty-state contracts. Release/Test foundation is inherited, not copied;Scan/navigation contract
+page.svelteprojects root-discovery, scan-event, scan-start, post-scan-load, and navigation failures through bounded path-free messages. Scan/navigation generations reject stale async publication. A successful zero-result scan mountsTopFilesonly after the paired current-generation node/result state is accepted, so empty-state guidance does not appear during initial/loading/error states.All #202-owned review findings remain resolved. Real-browser interaction acceptance remains owned by issue #340 and descendant #203.
Required before integration
Keep Draft until #264 is integrated or equivalently present on protected lineage and this unchanged exact head satisfies every applicable native/central Test/Release/Security/SAST/coverage/package/SBOM/provenance gate, all valid current review findings are resolved, and live ruleset/review requirements are satisfied. No self-approval, force-push, destructive rebase, gate weakening, or predecessor-evidence transfer.