GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(native): close Phase D diff and git parity gaps (DF-PANEL, GT-ACTIONS, GT-BRANCH, GT-SCRIPTS) by rynfar · Pull Request #423 · rynfar/t3code

Conversation

@rynfar

@rynfar rynfar commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Closes the remaining native-client web parity gaps across Wave F2 Track 3 (Phase D Diff & Git Closeout: DF-PANEL, GT-ACTIONS, GT-BRANCH, GT-SCRIPTS; issues #246, #247, #180, #389).

Summary of Changes

  • DF-PANEL (crates/core/src/diff/{expand,viewed,review_threads,hunks,parse,rows}.rs, crates/app/src/diff/{mod,lines,comments,tree,view,tests}.rs):
    • Hidden hunk context expansion via review.getDiffFileContents with reproduces_patch staleness checks, interactive separator controls (↓ 20 / Expand all / ↑ 20), trailing hidden line tracking, and virtualized row splicing / hunk merging.
    • Revision-tracked pullRequests.setFilesViewed (pingdotgg/t3code#35114): parses index <old>..<new> blob IDs into FileDiff::{old_object_id, new_object_id}, renders "Viewed" / "Changed" (stale) file-header pills with Shift-click range support & auto-fold, changed-files tree viewed/stale indicators, and debounced batched flush (omitting revision on single-commit diffs).
    • Resolved review avatars & inline review conversation cards (pingdotgg/t3code#34644): stacked context-line anchor mapping, up to 3 overlapping circular author avatars on diff lines with click-to-toggle resolved cards, open-thread retention after resolution, and changed-files tree open-review count badges. Exposes set_viewed_target and set_review_threads host hooks for PR-DETAIL's pull_requests/code.rs.
  • GT-ACTIONS (crates/core/src/git_actions.rs, crates/app/src/git/{actions,dialogs,mod}.rs):
    • Wires ServerSettings.offeredSourceControlProviders into provider filtering (is_provider_offered, offered_publish_providers, all 7 providers including Cursor Origin).
    • Implements 3-step PublishRepositoryDialog (Provider via sourceControl.discovery with readiness cards + "Setup Required" -> Settings -> Source control, Repository with {account}/ prefill, Private/Public visibility, collapsible Advanced remote/protocol, and Summary via sourceControl.publishRepository).
    • Wires QuickActionKind::Publish and chevron "Publish repository..." to PublishRepositoryDialog, and makes changed files in the Commit dialog clickable to open in the preferred editor.
  • GT-BRANCH (crates/core/src/vcs.rs, crates/core/src/vcs/{refs,worktree_cleanup}.rs, crates/client/src/vcs.rs, crates/app/src/git/{branch_picker,dialogs,mod}.rs, crates/app/src/sidebar/controller.rs, crates/app/src/thread_details/view.rs):
    • Sidebar thread-delete worktree cleanup flow: honors automatic_worktree_cleanup_on_delete (including project overrides), checks orchestration.getWorktreeThreadIds when shell_thread_families is enabled, shows deferred cancellable confirmation dialog, and runs vcs.removeWorktree(force: true) + vcs.refreshStatus post-delete with error toast on failure.
    • Persisted offline ref snapshots under vcs-refs/<env>.json with persistence_lock, OnSettled clear-before-invalidate + unreadable-cache recovery, and offline seeding into RefListing::seed_offline_snapshot.
    • PR checkout UI: PR reference detection in branch picker (RefChoice::CheckoutPullRequest at index 0), PullRequestThreadDialog with 450ms debounced git.resolvePullRequest, preview card, Local/Worktree actions via git.preparePullRequestThread, off-head checkout toast, and repository publishing.
  • GT-SCRIPTS (crates/app/src/terminal/{drawer,mod}.rs, crates/app/src/git/mod.rs, crates/app/src/thread_details/sections.rs, crates/app/src/settings/project_actions.rs):
    • From t3.json card quick-imports via projects.readFile with "From t3.json" split-row section (visible even when only t3.json scripts exist) and prefilled Settings editor fallback on save error.
    • runProjectScript opens/focuses the launched script terminal in the thread's terminal drawer (open_script_terminal).
    • autoOpenPreview resolves preview_url via resolve_discovered_server_url and launches Previews::open_session when preview is available.
  • apps/native/parity/LEDGER.md: Promotes DF-PANEL, GT-ACTIONS, GT-BRANCH, and GT-SCRIPTS to done (clearing their Issue cells) without modifying any other rows.

Verification (HEAD 98eabaee8e780e5dfd65604ba493d08f4291e993)

  1. vp fmt --check apps/native/parity/LEDGER.md — pass
  2. cd apps/native && node scripts/gen-theme.ts --check && node --test parity/sync.test.ts && node conformance/generate.ts --check — pass (tokens.rs up to date, 42/42 sync tests)
  3. cd apps/native && cargo test -p t3-core && cargo test -p t3-client -- --test-threads=4 — pass (t3-core 1663/1663, conformance 8/8, t3-client 135/135)
  4. cd apps/native && T3_NATIVE_HOME=$(mktemp -d) cargo test -p t3-native --features snapshot -- diff git thread_details terminal sidebar::controller settings::project_actions — pass (46/46)
  5. cd apps/native && cargo clippy --workspace --all-targets -- -D warnings && cargo build -p t3-native — pass (0 clippy warnings)

Generated with Antigravity (Gemini)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
rynfar added 2 commits November 19, 2026 00:55
@rynfar
feat(native): close Phase D diff and git parity gaps (DF-PANEL, GT-AC…
98eabae
…TIONS, GT-BRANCH, GT-SCRIPTS)

Closes remaining native client parity gaps for DF-PANEL (#246, #389), GT-ACTIONS (#247, #389), GT-BRANCH (#180, #389), and GT-SCRIPTS (#247):

- DF-PANEL: hidden hunk context expansion via `review.getDiffFileContents` with staleness validation, revision-tracked `pullRequests.setFilesViewed` with Shift-click range & auto-fold (`pingdotgg#35114`), and resolved review avatars / inline conversation cards & file-tree badges (`pingdotgg#34644`), plus host hooks ready for `PR-DETAIL`.
- GT-ACTIONS: 3-step `PublishRepositoryDialog` with `sourceControl.discovery` readiness cards and Settings redirect, `ServerSettings.offeredSourceControlProviders` wiring, and clickable changed files in the Commit dialog.
- GT-BRANCH: sidebar thread-delete worktree cleanup flow (`orchestration.getWorktreeThreadIds`, deferred confirmation, `vcs.removeWorktree`), persisted offline ref snapshots & unreadable-cache recovery, PR checkout picker row + `PullRequestThreadDialog`, and repository publishing.
- GT-SCRIPTS: `From t3.json` card quick-imports with settings-editor fallback, `runProjectScript` terminal drawer open/focus, and `autoOpenPreview` launch.
- Promotes DF-PANEL, GT-ACTIONS, GT-BRANCH, and GT-SCRIPTS to `done` in `apps/native/parity/LEDGER.md`.

Generated with Antigravity (Gemini)
@rynfar
fix(native): address PR #423 review findings across diff expansion, v…
c3c31be
…iewed flush, and draft PR checkout

Addresses all 4 review findings on PR #423:

1. DF-PANEL (`crates/core/src/diff/{expand,rows}.rs`): add `hunk_side_start` for zero-count pure addition/deletion hunks (`@@ -5,0 +6,3 @@`, `@@ -6,3 +5,0 @@`) and update zero-count hunk starts on downward/trailing/merge expansion + `expand_file_to_line` + `rows.rs`, with regression tests covering incremental/merge expansion and `reproduces_patch`.
2. DF-PANEL (`crates/app/src/diff/view.rs`): persist per-file `trailing_hidden: Vec<u32>` on `View` across `set_folded`, `set_all_folded`, `set_hidden`, and `update`, with regression test.
3. DF-PANEL (`crates/app/src/diff/{mod,tests}.rs`): flush pending debounced `pullRequests.setFilesViewed` presses for the previous target before clearing/resetting in `set_viewed_target`, with wire-level `ClientFixture` regression test.
4. GT-BRANCH (`crates/app/src/git/{mod,dialogs}.rs`, `parity/LEDGER.md`): disable `Worktree` PR checkout mode on drafts (defaulting `PressEnter` and primary CTA to `Local` with hint), guard `prepare_pull_request_thread` / `apply_prepared_pull_request` against unattachable draft worktrees, add regression test, and note draft worktree handoff under `PR-DETAIL`'s `usePullRequestDraftThread.ts` in `LEDGER.md`.

Generated with Antigravity (Gemini)
@rynfar
rynfar merged commit f296b88 into native Nov 19, 2026
@rynfar
rynfar deleted the nw/f2-diff-git-closeout branch November 19, 2026 08:54
This was referenced Nov 19, 2026
native: branch picker parity gaps (GT-BRANCH) #180
Closed
Native git actions remaining parity (GT-ACTIONS, GT-SCRIPTS) #247
Closed
parity(git,pr,diff): PR comments-to-chat, mentions, resolved avatars, diff scroll/reveal & VCS branch perf (DF-*, GT-*, PR-*) #389
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@rynfar
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.