You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(native): import projects and history during welcome - #118
Native welcome stopped after Agents, so users could not discover their existing projects or bring in Claude Code/Codex conversation history. This ports the web Projects step and pure import rules for the connected environment: recent defaults, repository/other-folder grouping, normalized Windows/UNC matching, server-ID precedence, bounded virtualized rows, and the loading/error/retry/empty/limit/permission states.
Selected projects reuse existing records or stable idempotent create commands with createWorkspaceRootIfMissing: false. History uses agentSessions.import, without starting turns. Only typed project conflict/not-found rejections discard attempt IDs; connection/protocol faults, unknown errors and potentially post-commit service failures retain them. Retry counts reset per attempt while successful-project maps and landing survive, matching the server's AlreadyImported counting. Failed matches are rescanned and partial history is reported. Requests and landing waits cancel on step/wizard/destination changes; grants are checked before every mutation and automatic import completion. Explicit Skip cancels locally without a write grant and lands only in an already-listed project. Unsupported requests have a bounded deadline. Snapshot scan/import fixtures cannot write.
Validation:
Full native clippy (all targets, including snapshot), workspace tests, snapshot build.
Ten focused core cases cover defaults/grouping/matching/paths/landing, stale demand, confirmed rejection classification, retry totals and revoked-grant Skip. All three state/protocol regressions failed before the fixes (/private/tmp/native118-review-red.log) and pass afterward (/private/tmp/native118-review-core-green.log).
The isolated fake-server test commits creation before emitting Defect, ClientProtocolError, post-commit ProjectMutationError and an unknown failure, and verifies one stable create ID/project across retry. It also checks the importer's actual AlreadyImported counting, permission-denied automatic completion, local Skip landing, pending-import cancellation and no extra writes.
Runtime transcript (isolated fake server):
create: committed once across Defect, ClientProtocolError, post-commit service error and unknown failure
confirmed conflict: fresh attempt permitted
import: 2 imported / 1 skipped -> retry 3 / 0, reports 3
revoked automatic completion: denied
local skip: retains listed landing, interrupts pending import, no extra writes
no provider turns
Offscreen evidence (local PNGs per factory instructions, smoke 14658 with isolated native home and synthetic scans):
Skip after a prior attempt loses permission: /private/tmp/native118-revoked-before.png → /private/tmp/native118-revoked-after.png
Partial result and denied permission: /private/tmp/native116-partial.png, /private/tmp/native116-permission.png
Remaining parent gaps: T3 Connect/relay and multi-computer onboarding, Codex ChatGPT accounts/setup, and the embedded install/sign-in terminal. No real history import, paid provider turn, real window, clipboard action, live install, or server 14700 mutation was used for verification.
Exact-head orchestrator gate GREEN at 5b8e86dd96c9896b87cbef126c05bd9fd6179781, integrated onto native5ebb180f55: Clippy(all targets), all1,105 native tests, theme, parity and conformance PASS(exit0). Trial merge aborted cleanly. Gate transcript /private/tmp/native-factory-2f5f764a/gate-118-initial.log. Independent Sol xhigh review is running; this gate is not review approval. No merge yet.
Independent Sol review of exact head 5b8e86dd96c9896b87cbef126c05bd9fd6179781 found three P2s, confirmed against source by the orchestrator and returned to the implementer: (1) generic RpcError::Failure is not proof of rejection—connection-wide Defect/ClientProtocolError can follow a committed create, so its stable retry ID must survive; (2) imported totals are retained across partial retries although the real importer counts AlreadyImported again, unlike the web per-attempt reset; (3) Do not import projects calls a completion path requiring the revoked write grant, leaving the enabled skip ineffective after an attempt. Require failing-before regressions, realistic fake-server retry behavior, and retained mutation/cancellation guards. Initial gate remains green but does not approve these defects. A new pushed head needs independent re-review and a fresh exact-head gate before merge.
Fix-head independent Sol re-review is clean at bd56ae2cd7acc001bda3ca57665efbab631cbc0d: all three P2s resolved, no new verified material findings. The reviewer confirmed actual error encoding/receipt paths, web per-attempt imported counts, and local Skip versus protected automatic completion. Parent independently inspected the source delta and supplied red/green/RPC/PNG evidence; fresh exact-head 1,108-test integration gate passed. Remaining runtime limits and CN-WELCOME exclusions are retained. Proceeding with exact-head squash merge.
Primary merged offscreen verification PASS on df70579cb8: zsh /private/tmp/native-factory-2f5f764a/evidence-118/verify-merged.sh exited 0 (merged snapshot build plus three captures). Visually confirmed actual Agents Continue opens Projects, denied-import fixture keeps mutation disabled, and actual local Skip dismisses after a previous-attempt/grant-loss fixture. Baseline and merged PNGs/logs/repro preserved in /private/tmp/native-factory-2f5f764a/evidence-118. No real import, live grant mutation, server writes, clipboard action or real-window focus. Completed exact-head worktree/local branch removed and worker/reviewer archived; about 18 GiB recovered. Parent #81 updated with remaining gaps; CN-WELCOME remains partial.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #116. Parent #81; ledger CN-WELCOME remains partial.
Native welcome stopped after Agents, so users could not discover their existing projects or bring in Claude Code/Codex conversation history. This ports the web Projects step and pure import rules for the connected environment: recent defaults, repository/other-folder grouping, normalized Windows/UNC matching, server-ID precedence, bounded virtualized rows, and the loading/error/retry/empty/limit/permission states.
Selected projects reuse existing records or stable idempotent create commands with
createWorkspaceRootIfMissing: false. History usesagentSessions.import, without starting turns. Only typed project conflict/not-found rejections discard attempt IDs; connection/protocol faults, unknown errors and potentially post-commit service failures retain them. Retry counts reset per attempt while successful-project maps and landing survive, matching the server's AlreadyImported counting. Failed matches are rescanned and partial history is reported. Requests and landing waits cancel on step/wizard/destination changes; grants are checked before every mutation and automatic import completion. Explicit Skip cancels locally without a write grant and lands only in an already-listed project. Unsupported requests have a bounded deadline. Snapshot scan/import fixtures cannot write.Validation:
vp run check:changed fork/native./private/tmp/native118-review-red.log) and pass afterward (/private/tmp/native118-review-core-green.log)./private/tmp/native118-review-transcript.txt.Runtime transcript (isolated fake server):
Offscreen evidence (local PNGs per factory instructions, smoke 14658 with isolated native home and synthetic scans):
/private/tmp/native116-before.png/private/tmp/native116-after.png/private/tmp/native116-large.png/private/tmp/native116-empty.png,/private/tmp/native116-error.png,/private/tmp/native116-pending.png/private/tmp/native118-revoked-before.png→/private/tmp/native118-revoked-after.png/private/tmp/native116-partial.png,/private/tmp/native116-permission.pngRemaining parent gaps: T3 Connect/relay and multi-computer onboarding, Codex ChatGPT accounts/setup, and the embedded install/sign-in terminal. No real history import, paid provider turn, real window, clipboard action, live install, or server 14700 mutation was used for verification.
Built with GPT-6.1 Sol in Codex