Repository navigation
feat(native): prompt links - #115
Conversation
85251e8 to
79b3da8
Compare
|
Addressed all three verified P2 findings at
The three regressions failed with the old behavior and pass after the fixes. All 1,087 native workspace tests, workspace/all-target Clippy, snapshot build/Clippy, theme/parity/conformance checks, and Local offscreen evidence, fixtures and reproduction commands: The deliberate gaps remain unchanged: clone, unlinked PR checkout, server PR lookup, discovery across saved environments and legacy single PR payloads. OS scheme delivery, switching between multiple real environments, and scratch-project writes were not exercised. The ledger stays partial. |
|
Exact-head orchestrator gate GREEN at |
|
Primary post-merge integrated offscreen pass on96e30980a7: snapshot build and8captures exited0. Confirmed hidden destination leaves Keep this draft intact, a saved target opens from disconnected state with Review this thread staged, and context-only row copy yields portable prose |
Native could not share a prompt or receive prompt links. This ports the first native slice of #111 and keeps
AP-PROMPTLINKSpartial.https://app.t3.codes/newand show the web success toast.t3code-native://new,t3code-native://threads/<environment>/<thread>and hosted prompt URLs through GPUI open-URLs and CLI arguments. Waits for the shell, selects the most recently active matching project, reuses a locally linked PR thread, resolves the model with the web's notes, warns about hidden characters, and requires an explicit draft replacement. Links never send a turn.t3code-nativein the bundle plist; leaves Electron'st3codescheme alone. Adds snapshot--open-url, a local repository fixture flag, and intercepted--clipboard-outputfor verification without touching the real clipboard.Validation:
cargo clippy --workspace --all-targets -- -D warnings,cargo test --workspace(1,087 tests), snapshot build, theme generation check, 42 parity tests, conformance generation check, shell/plist validation, and offscreen interaction against the existing smoke server on 14658. Checked actual intercepted links from the message action and both palette variants. Native workspace changes only; web/mobile/providers/contracts/server remain unchanged. No server writes, paid turns, system URL registration or clipboard writes were needed.vp run check:changed fork/nativecompleted successfully (format, all 39 affected package typechecks, and the selected test). This revision is rebased ontofork/nativeataff9199ee1.Review fixes: both explicit and local PR-thread links now verify the selected environment/thread after navigation before staging a prompt. Rejected hidden destinations leave the home draft untouched. Explicit links resolve/connect a saved destination before waiting for its shell, and superseded links cannot stage into a different selected environment. User-row links flatten local
t3-context://references to readable labels before applying the length limit, matching the web.The three core regressions failed with the previous behavior and pass with these fixes, including a context-only prompt remaining sendable without local records. Logs:
/private/tmp/native-111-review-red.logand/private/tmp/native-111-review-green.log.Local evidence (per worker instructions, PNGs are neither uploaded nor committed):
/private/tmp/t3-prompt-links-111/before.png/private/tmp/t3-prompt-links-111/copy-action.png/private/tmp/t3-prompt-links-111/palette.png/private/tmp/t3-prompt-links-111/new-thread.png/private/tmp/t3-prompt-links-111/missing-repository.png/private/tmp/t3-prompt-links-111/hidden.png/private/tmp/t3-prompt-links-111/replace.png/private/tmp/t3-prompt-links-111/replaced-final.png/private/tmp/t3-prompt-links-111/thread-link.png/private/tmp/t3-prompt-links-111/copied.pngRemaining gaps:
pullRequests.linkedThreadsRPC lookups are not wired, so an older PR-linked thread absent from the local shell will not be found. The ordered pure lookup helper is ported/tested.pullRequests; legacy singlelinkedPullRequestpayloads are not handled by this slice.Review runtime evidence (all local/offscreen, no server mutations):
/private/tmp/native-111-review-evidence/disconnected-before.png,/private/tmp/native-111-review-evidence/disconnected-after.png/private/tmp/native-111-review-evidence/hidden-explicit.png/private/tmp/native-111-review-evidence/hidden-pr.png/private/tmp/native-111-review-evidence/hidden-draft-preserved.png/private/tmp/native-111-review-evidence/context-copied.pngand its intercepted URL/private/tmp/native-111-review-evidence/context-copied.txt/private/tmp/native-111-review-evidence/reproduce.sh,hidden.json,context.json. The copied smoke homes are<worktree>/.t3/native-review(connected) and<worktree>/.t3/native-disconnected(saved environment, no active connection)./private/tmp/native-111-review-evidence/probe.logNot exercised: OS delivery of a registered scheme (intentionally prohibited), switching between multiple real environments, and the scratch-project fallback's server write. A disconnected client opening a saved smoke environment, both hidden destination paths, CLI/snapshot handling, matching-project placement and replacement were exercised.
Built with GPT-6.1 Sol in Codex