GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Refresh upstream state after branch checkout and invalidate git queries by juliusmarminge · Pull Request #46 · pingdotgg/t3code Conversation
|
WalkthroughAdds best-effort upstream refresh after branch checkout in the server Git service, two tests validating upstream behind-count and checkout resilience to fetch failures, and client-side invalidation of Git queries on "turn/completed" events. Changes
Sequence Diagram(s)mermaid mermaid Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Greptile SummaryAdded upstream branch refresh after checkout to ensure accurate ahead/behind counts when remote branches advance, plus UI query invalidation on agent turn completion. Key changes:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant UI as App.tsx
participant API as Git API
participant Git as GitCoreService
participant Remote as Git Remote
User->>API: checkout branch
API->>Git: checkoutBranch()
Git->>Git: executeGit(["checkout", branch])
Note over Git: Checkout succeeds
Git->>Git: refreshCheckedOutBranchUpstream()
Git->>Git: gitStdout(["rev-parse", "@{upstream}"])
Git-->>Git: "origin/feature-branch"
Git->>Git: Parse remote name and branch
Git->>Remote: git fetch --quiet --no-tags origin +refs/heads/feature:refs/remotes/origin/feature
alt Fetch succeeds
Remote-->>Git: Updated refs
Git-->>API: Checkout complete
else Fetch fails
Note over Git: Silently catch error
Git-->>API: Checkout complete (best effort)
end
API-->>UI: Checkout result
Note over UI: On turn/completed event
UI->>UI: invalidateGitQueries(queryClient)
UI->>API: Re-fetch git status
API->>Git: statusDetails()
Git-->>API: Current ahead/behind counts
API-->>UI: Updated git state
Note over UI: UI shows fresh git status
Last reviewed commit: 147f433 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
3 files reviewed, 1 comment
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Refresh the checked-out branch’s upstream after
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
- treat post-checkout upstream fetch as best effort so checkout still succeeds - route refresh fetch through `this.git(...)` for consistent behavior - add regression test for fetch-timeout during branch checkout
|
@greptileai review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
3 files reviewed, 1 comment
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
- derive upstream branch from `branch@{upstream}` and guard empty values
- fetch only `+refs/heads/<branch>:refs/remotes/<remote>/<branch>` instead of all remote refs
- add integration test asserting scoped fetch args during `checkoutBranch`
|
@greptileai review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Port upstream commits ac3f22c..268016d: - Inline branch picker filtering and drop PR-only shortcut (pingdotgg#46) - Fix PR thread upstream tracking for fork branches (pingdotgg#47) Removes filterBranchPickerItems shared function in favor of inline filtering, adds URL-derived fork identity resolution, ensures upstream tracking is restored on local checkouts and reused worktrees, and simulates real git checkout in fake GH CLI for integration tests.
…ments it Design for task pingdotgg#47, written now so the implementing lane gets a contract rather than a paragraph. The one decision worth recording: a command frame is FLAT, not nested. The protocol already documents an inbound-flat / outbound-nested asymmetry, and the stated reason is that an inbound frame describes one editor's own state while an outbound frame carries a set of editors each needing a key. A command is addressed to exactly one editor, so the same rule makes it flat. That asymmetry has already caused one wrong implementation that failed SILENTLY -- the parser just dropped the frame while the connection looked healthy -- so getting it right up front is worth a spec. Capability advertisement is required rather than optional, because the engines genuinely differ: frame-step exists only on Unity through supported APIs. The toolbar must not offer what an engine cannot do, and a hello without capabilities defaults to play+stop so older plugins keep working. Two rules that are easy to get backwards, both written down: - A failed command is an in-band result, NOT a close code. The close-code set is a named set (4400/4401 = stop retrying), not a threshold, so closing a socket because Play failed would disconnect an engine over a recoverable error. - Presence is a level; commands are edges. A Play queued while an editor was disconnected must not fire on reconnect -- the user's intent is stale by then. Also records that pingdotgg#46 (authorization) gates this: the route authenticates but does not authorize, and sits outside the compile-time net that would catch that. No-scope-check on a read-only feed is a low-stakes bug; on a channel that makes an editor execute code it is not.
feat(fork): owner filters with show only or hide, and filter chips
…one commit's changes' (pingdotgg#46) from T3CODE-35-commit-diff into custom-local
…ssion cannot be resumed' (pingdotgg#46) from fix/resume-missing-session into yu-v2 Reviewed-on: https://git.nepjua.org/yasinuslu/t3code/pulls/46
…ckaging Port built-in pstack from scriptedalchemy/main (PRs pingdotgg#8, pingdotgg#12, pingdotgg#20, pingdotgg#25, pingdotgg#26, pingdotgg#27, pingdotgg#38, pingdotgg#46, pingdotgg#51, pingdotgg#102, pingdotgg#117, pingdotgg#153) onto current main. - packages/pstack (snapshot 0.15.43-t3code.1), shared/pstack, server pstack module and client-runtime providerSkills taken verbatim from the fork. - Server: PstackPack layer, composer expansion on turn start and steer, pstack catalog in server config and live pstackUpdated snapshots, orchestrationTargets helpers shared with the MCP service, driverKind targets prefer instances advertising the requested model and options, orchestrator_capabilities allModels for setup-pstack, and native pstack@<marketplace> plugins switched off in Claude and Codex sessions. - pstackEnabled is on by default; toggle lives in Settings > Labs on web and mobile, with i18n for all locales. - Packaging: CLI build, CLI archive, desktop artifact, WSL tree and desktop backend carry the pack and point the server at it. Adapted to main: no provider cooldowns or inference routes upstream, so role resolution uses providerConstraints and the retired-route migration and its tests are dropped; turn start expands only messages that reference pstack; fork-only linked-delegation driverKind refusal is not ported because main resolves driverKind remotely. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.