Skip to content

chore: sync upstream pingdotgg/t3code (20260721) - #221

Merged
adamfgr merged 32 commits into
mainfrom
chore/upstream-sync-20260721
Jul 21, 2026
Merged

chore: sync upstream pingdotgg/t3code (20260721)#221
adamfgr merged 32 commits into
mainfrom
chore/upstream-sync-20260721

Conversation

@wizzoapp

@wizzoapp wizzoapp Bot commented Jul 21, 2026

Copy link
Copy Markdown

Nightly upstream sync of pingdotgg/t3codeagriffiths-bots/t3code.

Cherry-picked 31 upstream commits (2640e6d..c0bb237, upstream/main). One commit (pingdotgg#4186 "Pass CLI OAuth config to hosted web deploy") applied empty — its 2-line change targets upstream's hosted web-deploy job, which this fork's Windows-only release pipeline does not have.

Notable conflict resolutions

The bulk of the work was reconciling two large upstream rewrites of the shell/thread synchronization protocol (pingdotgg#4163 "Synchronize mobile threads with authoritative shell snapshots" and pingdotgg#4177 "speed up new-chat propagation and offline catch-up") against the fork's audience-scoping and thread-reconciliation features.

  • Client shell (state/shell.ts, shell-sync.test.ts): adopted upstream's versions. Upstream's server rewrite (perf(orchestration): speed up new-chat propagation and offline catch-up pingdotgg/t3code#4177) supersedes the fork's Fix shell replay gaps #142 replay-gap watchdog (server no longer emits a caught-up marker), so the fork's client-side watchdog was orphaned. Removed the now-dead caught-up contract member and the obsolete fork shell server tests; upstream's coalescing tests cover the behavior.
  • Client threads (state/threads.ts): kept the fork's reconciliation subsystem (storage-epoch cursors, revision reconciliation, audience-scoped resume) and re-wired it onto upstream's subscribeDynamic model — establish the base snapshot once, then resume via the live cursor on foreground/session resubscribes (completion-marker + foregroundResubscriptions grafted in).
  • Server (ws.ts): took upstream's coalescing subscribeShell + projectUpsertOrRemove/threadUpsertOrRemove helpers while preserving the fork's requireAudienceOpaqueEventCursor guard and project.data-audience-set full-refresh path (projection reads are audience-scoped, so coalescing stays audience-safe).
  • Additive/import merges: ClaudeAdapter (SDK executable path + worker isolation), OpenCodeAdapter (resume + MCP session), Sidebar (archive-from-context-menu + tree rows), DesktopWindow (window-bounds restore + backend-status splash), ChatComposer, model/registry tests, and the fork's superset of test files were kept.
  • .github/workflows/release.yml: kept the fork's Windows-only reusable pipeline.

Verification

  • vp run typecheck
  • vp check
  • vp test run ✅ — 6380 passed, 17 skipped, 0 failed (702 files)

Gated by CI + the upstream-sync procedure (per-commit factory gate skipped via the audited sync escape hatch).

nsxdavid and others added 30 commits July 21, 2026 03:08
)

Co-authored-by: Shoaib Ansari <shoaibansari@Shoaibs-Mac-mini.local>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…otgg#2093)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <jmarminge@gmail.com>
Co-authored-by: root <root@localhost.localdomain>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: codex <codex@users.noreply.github.com>
…tgg#4163)

Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
…tarting an empty one (pingdotgg#3617)

Co-authored-by: codex <codex@users.noreply.github.com>
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
Co-authored-by: Rhiz3K <rhiz3k@protonmail.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…otgg#4140)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: codex <codex@users.noreply.github.com>
…up (pingdotgg#4177)

Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…g#4113)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…#4217)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
wizzoapp Bot and others added 2 commits July 21, 2026 05:08
Post-cherry-pick reconciliation of the shell/thread sync rewrite:
- adopt upstream's client shell.ts + shell-sync.test.ts (drops the fork's
  superseded #142 replay-gap watchdog; server no longer emits 'caught-up')
- remove the orphaned 'caught-up' contract member and obsolete fork shell
  server tests (upstream's coalescing tests cover the behavior)
- keep the fork's thread reconciliation, resubscribing via subscribeDynamic
  (establish base once; foreground/session resubscribe via the live cursor)
- add latestSequence to OrchestrationEngine test mocks; thread dispatch
  authority in bin.test; narrow stream-item unions past the new 'synchronized'

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…0260721

# Conflicts:
#	apps/server/src/orchestration/Layers/ChildThreadCoordinator.test.ts

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aeb936280a

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/web/src/components/preview/PreviewView.tsx
Comment thread apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts
Comment thread apps/server/src/ws.ts
Comment thread apps/web/src/components/AppSidebarLayout.tsx

@adamfgr adamfgr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved by wizzo-approve: all policy conditions verified against HEAD 7366840.

@adamfgr
adamfgr enabled auto-merge (squash) July 21, 2026 05:08
@adamfgr
adamfgr merged commit c767872 into main Jul 21, 2026
26 of 27 checks passed
@adamfgr
adamfgr deleted the chore/upstream-sync-20260721 branch July 21, 2026 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.