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 — sync(upstream): merge upstream/main 1c7d059f5 into fork/dev by patroza · Pull Request #370 · patroza/t3code

Conversation

@patroza

@patroza patroza commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Summary

Merge upstream/main through 1c7d059f5 into fork/dev, adopting pingdotgg#5493 user-anchored turn-window pagination (reverse load-earlier) as the canonical thread history model.

Important

Merge with a merge commit, not squash. Squashing drops the second parent and makes “commits behind upstream” lie.

Upstream commits entering the product

6b73b3def feat: paginate thread loading with user-anchored turn windows (pingdotgg#5493)
ae7b27de8 fix: prevent reconnect loops during server stalls (pingdotgg#5561)
6fa457607 fix(server): settle stopped Claude subagents (pingdotgg#5568)
1c7d059f5 fix: scrolling up during a running thread no longer snaps back to the bottom (pingdotgg#5566)
+7 worktree/origin, bulk snooze toast, Claude stop diagnostics, remote non-Git env, etc.

Superseded fork / candidates work (intentionally dropped)

Upstream never landed pingdotgg#4018 / pingdotgg#3510-style activity cursors. pingdotgg#5493 solves the same problem differently (turn keyset + loadEarlier). This PR goes back to upstream for thread syncing on web / mobile / server:

  • Removed orchestration.getThreadActivities RPC and client olderThreadActivities / loadThreadActivities
  • Removed hasMoreActivities detail windowing in favor of OrchestrationThreadDetailPage + requestOlderThreadTurns
  • Web MessagesTimeline / mobile thread screens use upstream loadEarlier surface
  • Client threads.ts is upstream’s semaphore/epoch pagination model

Candidate provenance that is now content-superseded (for a later candidates-layer cleanup, not blocking this PR):

  • Import bounded web thread history from upstream #4018 #29 bounded web thread history (upstream fix(web): paginate large thread history for remote clients pingdotgg/t3code#4018)
  • Page mobile history and bound replay catch-up (upstream #3510) #35 mobile pagination / bounded replay (upstream fix(server): paginate large thread history to stop the server running out of memory pingdotgg/t3code#3510)
  • Batching pieces of perf(client): batch large thread sync updates (upstream #5344) #328 that assumed the old apply loop (event batching tests removed; reintroduce later if still wanted on the new model)

Fork product kept

  • Follow-up queued messages / pendingTurnStart
  • Identity originSource / participantSummaries
  • Fork-only projection helpers (getSessionStopContextById, getThreadLifecycleById)
  • Discord / VS Code / identity surfaces (not rewound except where they depended on the old activities RPC)

Migrations

Upstream adds 037_ProjectionTurnsKeysetIndex. Fork SQL migrations live in a separate ledger (t3_fork_sql_migrations), so the shared 037 filename prefix is fine.

Validation

  • Static ship gate green on push (vp check + full workspace vpr typecheck)
  • Focused typecheck clean for contracts, client-runtime, web, server, mobile
  • Unit tests deferred to publish (pnpm pr:ready) per agent ship gate

Follow-ups (out of scope)

  • Rebuild / trim fork/candidates provenance commits that only re-export superseded activity pagination
  • Decide whether to re-layer client event batching (Stream.groupedWithin) on the new threads state machine
  • Put back any Discord/VS Code thread UX that depended on activity-window specifics, if still wanted after soak

Sorry, something went wrong.

Uh oh!

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

All reactions
t3dotgg and others added 12 commits August 6, 2026 20:13
@t3dotgg @claude
fix(server): skip origin fetch when creating worktrees in repos witho…
331c6dc
…ut an origin remote (pingdotgg#5556)

Co-authored-by: Claude Fable 5 <[email protected]>
@t3dotgg @claude
fix(web): update tooltip no longer dismisses when scrolling release n…
ea50b69
…otes (pingdotgg#5547)

Co-authored-by: Claude Fable 5 <[email protected]>
@t3dotgg @claude
fix(server): stop showing commit/push/PR notices as errors in the wor…
0ec4fbc
…k log (pingdotgg#5559)

Co-authored-by: Claude Fable 5 <[email protected]>
@t3dotgg
fix(web): show remote environment for non-Git projects (pingdotgg#5555)
64a991a
@t3dotgg @claude
fix(server): stopping a Claude thread no longer shows an ede_diagnost…
c471145
…ic error (pingdotgg#5557)

Co-authored-by: Claude Fable 5 <[email protected]>
@t3dotgg
fix(web): show one toast when snoozing threads in bulk (pingdotgg#5560)
6da9224
@t3dotgg
fix(server): let stopped threads settle immediately (pingdotgg#5553)
7aad791
@t3dotgg @claude
feat: paginate thread loading with user-anchored turn windows (pingdo…
6b73b3d
…tgg#5493)

Co-authored-by: Claude Fable 5 <[email protected]>
@gfsaaser24 t3-turbo-simulation
@claude @t3dotgg
fix: prevent reconnect loops during server stalls (pingdotgg#5561)
ae7b27d
Co-authored-by: t3-turbo-simulation <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
Co-authored-by: Theo Browne <[email protected]>
@t3dotgg
fix(server): settle stopped Claude subagents (pingdotgg#5568)
6fa4576
@t3dotgg @claude
fix: scrolling up during a running thread no longer snaps back to the…
1c7d059
… bottom (pingdotgg#5566)

Co-authored-by: Claude Fable 5 <[email protected]>
@github-actions
sync(upstream): merge upstream/main 1c7d059 into fork/dev
2160eb5
Adopts upstream through 1c7d059, headlined by pingdotgg#5493 user-anchored turn-window
pagination (reverse load-earlier) and follow-on scroll/reconnect/settlement fixes.

Thread sync on web, mobile, and server goes back to upstream's model:
- Drop candidate-era getThreadActivities RPC, olderThreadActivities client, and
  hasMoreActivities windowing in favor of turn-keyset pages + loadEarlier.
- Keep fork product fields on threads (queuedMessages, pendingTurnStart,
  identity originSource/participants) and fork-only ProjectionSnapshotQuery
  surfaces (session stop / lifecycle).

Merge with a merge commit (not squash) so upstream commits stay ancestors.
@patroza
patroza marked this pull request as draft August 7, 2026 05:17
@patroza
patroza marked this pull request as ready for review August 7, 2026 05:24
github-actions Bot added 2 commits August 7, 2026 07:28
@github-actions
fix(client-runtime): align connection tests with upstream thread sync
c64a989
Adopt upstream session/supervisor (and their tests) for pingdotgg#5561 reconnect
behavior so Fork CI Test matches the merged implementations. Adapt
fork-only threads-sync expectations to upstream threads.ts: HTTP reload
on empty re-subscribe, stream errors keep cache without mapping
snapshot reasons to status deleted, and thread.deleted events still
drive permanent removal.
@github-actions
fix(mobile): restore fork thread surface markers after upstream sync
abe9952
Keep upstream load-earlier pagination while restoring anti-stack-drop
markers: conversation flex host testID, steering-queue send scroll
guard, and the surface existence assertions that track them.
@patroza
patroza enabled auto-merge (rebase) August 7, 2026 05:34
github-actions Bot added 5 commits August 7, 2026 07:38
@github-actions
fix(server): record upstream migration 37 in fork migration bootstrap
79e23a4
ProjectionTurnsKeysetIndex is now the tip of the upstream migration
ledger. Update bootstrap repair and namespace tests so mixed-ledger
repair applies and records 37 alongside 35/36.
@github-actions
fix(server): restore identity source projection and streaming shell skip
2eeed17
Re-apply fork projection behavior dropped during the upstream pagination
merge: stamp message.source on thread.message-sent, skip full shell
history rescans for streaming assistant deltas, and settle multi-turn
title regeneration fixtures so queue-by-default does not hide context.
Also record upstream migration 37 in fork migration bootstrap/tests.
@github-actions
fix(server): include message source_json in windowed thread detail reads
a39e979
The turn-window message SELECT omitted identity source_json, so the
ProjectionThreadMessage row schema failed with MissingKey source during
paginated detail loads.
@github-actions
fix(server): skip origin fetch when bootstrap has no origin remote
4274e79
Match upstream pingdotgg#5556: check remoteExists before fetch/resolve, and
provide a shell projection mock so the no-origin bootstrap test can
complete waitForWorktreeProjection.
@github-actions
fix(server): default remoteExists mock for bootstrap tests
d102c76
After requiring remoteExists before startFromOrigin fetch, Layer.mock
left unmocked remoteExists unimplemented. Default to true so existing
bootstrap tests keep working; the no-origin case still overrides false.
@patroza
patroza disabled auto-merge August 7, 2026 05:59
@patroza patroza closed this Aug 7, 2026
@patroza patroza mentioned this pull request Aug 7, 2026
sync(upstream): adopt user-anchored thread pagination into fork/dev #371
Closed
@omegent-app

omegent-app Bot commented Aug 7, 2026

Copy link
Copy Markdown

Superseded and closed in favour of #368 (merged) and #372.

For the record, since this branch resolved the same upstream range independently: comparing the two trees, this one took upstream wholesale in 12 files where the fork had its own content. Four of those were legitimate (the superseded pagination candidate in MessagesTimeline); the rest dropped live behaviour — ProjectionPipeline lost the queued-message, messages-resynced, PrLookupFreeze and identity-participant handlers (queued messages would never reach the projection), threads.ts lost the terminal-failure handling and load-once HTTP guard while keeping their tests, the mobile screens lost sendEntersQueue, and the getThreadActivities RPC was removed while deployed mobile builds still call it. The windowed message SELECT was also missing source_json, which fails decode on every paginated read — verified by removing that one line from #368's tree, where it fails 7 upstream windowed-detail tests.

Nothing here is lost: #368 carries the same upstream range with those behaviours intact, and #372 carries the 10 commits that followed. Thanks for the parallel attempt — the comparison is what turned the windowed-SQL defect into a verified finding rather than a suspicion.

All reactions

Sorry, something went wrong.

Uh oh!

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

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.

3 participants

@patroza @t3dotgg @gfsaaser24
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.