Skip to content

native: branch picker parity gaps (GT-BRANCH) #180

Closed

Description

@rynfar

Remaining gaps on ledger row GT-BRANCH (branch picker), so the row tracks an open issue after #144 closes.

Web sources: apps/web/src/components/BranchToolbarBranchSelector.tsx, apps/web/src/worktreeCleanup.ts, apps/web/src/components/PreviousWorktreeItemContent.tsx, packages/client-runtime/src/state/vcs.ts.

  • Previous-worktree entries (PreviousWorktreeItemContent.tsx): draft workspace menu, branch labels, eligible thread selector, composer.previousWorktree, destination-scoped persisted choice and existing-worktree launch encoding in feat(native): reuse previous worktrees from the composer #205.

  • Worktree cleanup (worktreeCleanup.ts, useThreadActions.ts): shared/orphan guards, confirmation, pending/error/recovery flow remain unported.

  • Full draft/worktree-base selector controls

  • Persisted/offline ref snapshots and recovery

  • A native pull request checkout flow (the settlement hook that invalidates cached refs exists; the checkout UI does not)

  • Native repository publishing UI (currently disabled; the ref invalidation hook covers sourceControl.publishRepository)

Found during #179 (#144).

Intake 30724e2..a07be97

  • pingdotgg/t3code#29763: Machine noise corrected after reading production definition.ts: accept Azure DevOps visualstudio DefaultCollection checkout URLs; extend watched provider definition source.
  • pingdotgg/t3code#29892: Machine noise corrected after reading production definition.ts: recognize Enterprise GitHub arbitrary-host HTTP(S) PR links; preserve host validation at checkout boundary.

Tracking digest #214. Ledger Issue-column audit links incomplete rows to open remaining-work trackers; those are not completion claims.

Activity

  1. added this to the M2 Parity core milestone on Nov 3, 2026
  2. added
    parity
    native:feature
    status:in-progress
    status:review
    and removed
    status:in-progress
    on Nov 3, 2026
  3. rynfar commented on Nov 4, 2026

    @rynfar
    OwnerAuthor

    M2 follow-up #205 at 0333ca46f45712092e3ca212309918a780ead29b integrates previous-worktree entries through the workspace menu and keybinding, with the web eligibility/label rules and existing existing_worktree launch strategy. GT-BRANCH remains partial.

    Cleanup is wholly deferred. The remaining cleanup checklist is:

    • Normalize shared paths; include other projects/archived threads in the destination environment and consult authoritative occupants when shell families omit children. Failed occupancy reads keep the checkout.
    • Exclude scratch projects; check destination source-control grants; offer destructive confirmation with the web settings rules.
    • Remove only after successful thread deletion, recheck permissions, preserve pending state, and report removal versus status-refresh failures separately with recovery.

    Also open: full draft/base and branch controls, persisted/offline refs, PR checkout, repository publishing. Native multi-model forced-new UI is absent; this composer launches one model.

    All common native gates and check:changed fork/native passed; 1,348 native tests. Offscreen click/keybinding evidence and raw logs are in the PR body. Read-only smoke14658 probe synchronized. No live launch/removal, missing-root/permission-denied recovery, or multi-environment UI switching was exercised end to end. No host checkout or existing smoke project was mutated.

  4. rynfar commented on Nov 4, 2026

    @rynfar
    OwnerAuthor

    Review fixes pushed to #205 at 1735e7584d79a63fff7b9b169bc1cb64d5296448, rebased onto b6915d40199566dda5fe173d0bbc2ed53b169c4e:

    • Failed preparation/launch retains a captured snapshot and recovers into its original draft after navigation, preserving prompt/attachments/context and persisted data. Concurrent edits in the original target win; the selected draft is untouched.
    • File/skill cwd uses the in-scope previous-worktree choice. Workspace/environment changes invalidate visible search results and fence delayed responses.
    • Workspace Up/Down/Enter/Escape use bounded highlighted selection before prompt actions. The direct previous shortcut remains intact.

    Failing-first evidence: original recovery fixture lost the draft; the cwd assertion produced /repo instead of /wt/feature; the rendered keyboard spy intercepted one submission. Green fixtures retain original resources and concurrent edits, keep prompt text unchanged, report the chosen worktree cwd, and intercept zero submissions. Raw red/green logs, JSON audits and local screenshots are linked in the PR body.

    Fresh common native checks plus check:changed fork/native passed, including 1,353 workspace tests. All 130 non-GT-BRANCH ledger cell values, including AP-NOTIFY/#12, are preserved. No actual provider turn, server mutation, checkout mutation, clipboard use or real window.

    GT-BRANCH remains partial. Cleanup is wholly deferred; full draft/base controls, offline refs, PR checkout and publishing remain open. Real server failure responses and multi-environment UI switching remain unverified end to end. Awaiting independent re-review; this is not approval or merge authorization.

  5. rynfar commented on Nov 4, 2026

    @rynfar
    OwnerAuthor

    P3 availability guard fixed in #205 at 3f1149bff0fe3436f0d6324026f90a09ca4b9159, rebased onto actual native 72033f6926a77957819bb0e6e91e365cab73ae6b.

    Workspace rendering, shortcut opening and key eligibility now share the same visibility rule. Successful non-repository state cannot open an invisible popup or capture prompt keys. Error/retry stays visible during refresh, loss of availability closes an open popup, and the Enter fallback also checks availability.

    Failing-first regression: /private/tmp/native-205-r3-red.log reports “non-repository shortcut opened an invisible workspace popup”. /private/tmp/native-205-r3-green.log passes the same actual open/key/Enter handlers, repository/non-repository/error cases, availability loss and empty-Enter submit-spy checks. Capture: /private/tmp/native-205-r3-green.png. The fixture simulates UI result state; it creates no non-repository project, never enters a nonempty paid-default draft, and blocks submit before any launch RPC.

    Fresh common native gates and check:changed fork/native passed (1,354 tests). All 130 other ledger cell values are preserved, including #203/#204. GT-BRANCH/#180 remains partial; cleanup is wholly deferred and the existing draft/base, offline refs, PR checkout and publishing gaps remain. Awaiting re-review; no merge or approval claimed.

  6. rynfar commented on Nov 4, 2026

    @rynfar
    OwnerAuthor

    Merged #205 as db6b7fb65d from exact independently approved head 3f1149bff0, gate GREEN 1,354 tests onto 72033f6926, plus Clippy/theme/parity/conformance. The squash tree matches exactly; all 130 other ledger rows are preserved.

    Drafts can select the eligible previous worktree through the menu or shortcut. The selection also scopes file/skill lookup; popup keys stay in the menu, hidden non-Git controls cannot capture keys, and failed launches recover the original target’s attachments/context/draft while preserving newer edits.

    Merged snapshot build and five primary offscreen captures/audits passed and were inspected: light/dark menu and arrow highlight, direct previous-worktree selection with the expected cwd, failure recovery and availability guards. All audits record zero submissions. Recovery/availability use harmless simulated completion and an empty-Enter submit spy; no launch RPC, checkout mutation or provider turn. Local evidence: /private/tmp/native-factory-2f5f764a/evidence-205-merged/manifest.json. One recovery image has the known #202 static-label limitation outside the asserted behavior.

    GT-BRANCH remains partial and #180 stays open. Cleanup is wholly deferred; full draft/base controls, offline refs, PR checkout and publishing remain gaps. Live server failure responses, real launch/removal and multi-environment switching remain unverified.

  7. removed
    status:review
    on Nov 4, 2026
  8. added
    status:in-progress
    and removed
    status:in-progress
    on Nov 18, 2026
  9. rynfar commented on Nov 19, 2026

    @rynfar
    OwnerAuthor

    Landed in PR #423 (GT-BRANCH -> done, squash-merged onto native).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    native:featureparitystatus:in-progress

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions