Skip to content

fix(threads): keep un-settled threads active after their PR merges (turbo) - #62

Merged
gfsaaser24 merged 3 commits into
turbofrom
fix/sticky-unsettle-turbo
Aug 10, 2026
Merged

fix(threads): keep un-settled threads active after their PR merges (turbo)#62
gfsaaser24 merged 3 commits into
turbofrom
fix/sticky-unsettle-turbo

Conversation

@gfsaaser24

Copy link
Copy Markdown
Owner

Port of #61 onto turbo. See that PR for the full root-cause writeup and upstream context (pingdotgg#5575, pingdotgg#5643).

Turbo-specific parts:

  • The SidebarV2.tsx hunks are re-applied to Sidebar.tsx — upstream feat: sidebar v2 is now the default sidebar pingdotgg/t3code#5672 (in turbo's newer ingest) made sidebar v2 the default and renamed the file. Everything else cherry-picked cleanly.
  • New seam settled-lifecycle-sticky-pin registered in .t3-turbo/customizations.json; turbo:customizations:verify passes (26 seams, 172 file checks). Marked as an upstream candidate: drop the seam if upstream merges an equivalent.
  • Changelog entry added under Unreleased.

Verified on this branch: server orchestration (27), client-runtime threadSettled (180), web logic suites (154), mobile thread lists (61) all green; typecheck clean across contracts, client-runtime, server, web, mobile; no turbo-only effectiveSettled callers needed wiring.

🤖 Generated with Claude Code

Port of fork-main PR #61 onto turbo. Un-settling a thread whose PR had
merged only lasted minutes: any session start or message cleared the
keep-active pin back to neutral, and the merged-PR rule then re-settled
the thread the moment the burst of work went quiet.

- The explicit keep-active pin is now sticky: activity still wakes an
  explicitly SETTLED thread, but no longer spends the user's "not done"
  pin. Only an explicit settle clears it. (decider.ts, three sites)
- Instant merged/closed-PR auto-settle applies only when the thread went
  quiet at or before the PR's completion; newer activity defers to the
  inactivity rule, fed by the PR's updatedAt now carried on the VCS
  status contract into web and mobile classification.

Turbo specifics: the SidebarV2.tsx hunks are re-applied to Sidebar.tsx
(upstream pingdotgg#5672 made v2 the default sidebar); new seam
settled-lifecycle-sticky-pin registered in .t3-turbo/customizations.json
(verify passes: 26 seams, 172 checks); changelog entry added.

Upstream context: pingdotgg#5575, pingdotgg#5643.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions github-actions Bot added size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Aug 10, 2026
@github-actions

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

ℹ️ No successful main baseline artifact is available yet. This run establishes the initial measurement.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 11.3 KiB 15.1 KiB
Codex Thread snapshot wire 5.5 KiB 7.3 KiB
Codex Live turn WebSocket wire 5.9 KiB 7.8 KiB
Codex Live turn WebSocket decoded 49.7 KiB 66.4 KiB
Codex Live turn messages 16 21
Claude Total thread wire 11.3 KiB 15.1 KiB
Claude Thread snapshot wire 5.5 KiB 7.3 KiB
Claude Live turn WebSocket wire 5.9 KiB 7.8 KiB
Claude Live turn WebSocket decoded 50.6 KiB 66.4 KiB
Claude Live turn messages 16 21

Baseline: unavailable · PR result: 83eee75 · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 94.6 KiB
  • Claude decoded thread snapshot: 95.4 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

t3-turbo-bot and others added 2 commits August 10, 2026 11:22
…est test

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Formatting was broken at the tip of turbo (8901313) and fails the Check
job for every PR; formatted here to unblock.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@gfsaaser24
gfsaaser24 merged commit 99b7b21 into turbo Aug 10, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant