Skip to content

Upstream sync 2026-11-11: 1064 upstream commits #368

Closed

Description

@tannerpolley

Merge upstream nightly v0.1.10-nightly.20261111.4529 (commit d2c25950b4d9183ea342d5d5fc14c326b9e0172a, upstream main at 2026-11-11 13:46 UTC) into the fork. The sync branch is cut from main 8959b2e5259853368f23addfb472b9f7c49e152e.

This is the first sync since 2026-11-02 (#284). No syncs ran during the Forgejo period, 2026-11-03 to 2026-11-10, so 1064 upstream commits are queued, the largest backlog since 2026-10-12 (673).

Conflicts (git merge-tree --write-tree --name-only --no-messages main <target>): 125 conflicted files, 281 conflict blocks. Earlier syncs on #24: 31/54 on 2026-11-02, 22/27 on 2026-11-01, 61/99 on 2026-10-31.

Largest files by conflict block:

Blocks File
20 apps/server/src/orchestration-v2/Orchestrator.ts
13 apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts
11 apps/server/src/relay/AgentAwarenessRelay.ts
10 apps/server/src/vcs/GitVcsDriverCore.ts
9 apps/server/src/scheduledTasks/ScheduledTaskService.ts
9 apps/server/src/mcp/OrchestratorMcpService.ts
8 apps/web/src/components/sidebar/SidebarThreadRow.tsx

By folder, the most are in apps/web/src/components/chat (16 files) and apps/server/src/orchestration-v2 (11 files).

Upstream adds migrations 078–081 (including 080_ScheduledTaskThreadMode and 081_ProjectionMessageSearchText). Fork migrations stay on the fork ledger.

Process: docs/operations/fork.md § Upstream syncs. The merge is delegated to an implementor. It runs the lost-fork-code audit against base 8959b2e525, then an independent check, then the merge into main and a staged build.

Activity

  1. tannerpolley commented on Nov 11, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code status: Unavailable

    Issue: #368 Upstream sync 2026-11-11: 1064 upstream commits

    Thread: thread:delegated-task:command%3Amcp%3A0b46140a-195e-420e-90ab-9251badb0679%3Adelegate-task%3A75f045da-3039-4321-b407-0ff5b8035685

    Model: gpt-6.1-sol

    Branch: issue-368-upstream-sync-2026-11-11-1064-upstream

    Updated: 2026-11-23T19:21:10.556Z

  2. tannerpolley commented on Nov 11, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: waiting_on_sub_issues

    Issue: #368 Upstream sync 2026-11-11: 1064 upstream commits
    Thread: thread:delegated-task:command%3Amcp%3A0b46140a-195e-420e-90ab-9251badb0679%3Adelegate-task%3A75f045da-3039-4321-b407-0ff5b8035685
    Model: gpt-6.1-sol
    Branch: issue-368-upstream-sync-2026-11-11-1064-upstream
    Completed: 2026-11-11T20:52:51.213Z

    The focused lint pass has no errors; it reports one warning in the retained markdown transformer.

    I’m waiting on the running verification job: server/web/evals type checks, focused unit tests, and the six repaired browser files. Its completion will resume this thread automatically. The merge commit, final audit against HEAD, and check:changed remain open.

  3. tannerpolley commented on Nov 11, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: queued_preparing

    Issue: #368 Upstream sync 2026-11-11: 1064 upstream commits
    Thread: thread:delegated-task:command%3Amcp%3A0b46140a-195e-420e-90ab-9251badb0679%3Adelegate-task%3A75f045da-3039-4321-b407-0ff5b8035685
    Model: gpt-6.1-sol
    Branch: issue-368-upstream-sync-2026-11-11-1064-upstream
    Completed: 2026-11-11T21:17:01.741Z

    Merged and committed upstream d2c25950b4d9183ea342d5d5fc14c326b9e0172a. The working tree is clean, and no verification jobs remain running.

    The merge commit has exactly the pinned fork base and requested upstream commit as its parents. No push, pull request, upstream tag publication, or change to main was made.

    Conflicts and resolution calls

    Resolved 125 conflicted files and 281 conflict blocks across the 1,064 upstream commits. Rerere recorded resolutions but did not replay any.

    The notable integration decisions were:

    • Kept upstream’s orchestration cancellation, receipts, selective reads, recovery, and completion machinery while fitting fork delegation, repository scheduling, routed questions, and silent-wake Threads say they are waiting on a background task that the app does not show #363 into it.
    • Kept fork history retention in ForkHistoryMaintenance; adopted upstream’s projection-covered event pruning. Replay verification remains a test oracle.
    • Kept upstream’s desktop wait-for-process-exit safeguard, alongside the fork’s 10-second termination grace, 12-second warning threshold, shutdown progress window, and final exit deadline.
    • Retained fork worktree placement and handoffs while restoring upstream repository-plus-branch name hashing, failed-checkout rollback, and hook suppression for disposable detached review checkouts.
    • Kept fork migrations on their own ledger. Upstream migrations 078–081 remain upstream-owned; fork migration 030 guards malformed thread JSON in four expression indexes.
    • Preserved the Issues pane, Project view, orchestration and repository-orchestrator tools, Designer and Sprinter roles, artifacts, routed questions, worktrees, and Threads say they are waiting on a background task that the app does not show #363 behavior.

    Final lost-code audit

    Ran the exact requested command against final HEAD:

    scripts/fork-sync/lost-fork-code.py \
      8959b2e5259853368f23addfb472b9f7c49e152e \
      d2c25950b4d9183ea342d5d5fc14c326b9e0172a HEAD
    
    Result Count
    Flagged hunks 99
    Retained/restyled 64
    Replaced upstream 24
    Dropped and restored 11
    Unclassified 0
    Fork files deleted 0
    Fork files no longer imported 0

    The 11 restored flags are the flags still visible after restoration; other repaired losses no longer flag. The complete disposition ledger judges every hunk, and the raw final audit records the script output.

    Restored items, with repeated findings grouped by behavior:

    • Cancel the “Preparing workspace” item when its queued run is cancelled.
    • Apply projectId and threadIds filters together.
    • Preserve provider-turn cancellation in shutdown expectations.
    • Clean up released background work for detached threads previously served by the session.
    • Preserve all retained Claude reset-credit expiries in test expectations.
    • Include routed parents when computing relay visibility.
    • Preserve child-question fallback and approval aggregation when the parent stops.
    • Restore react-test-renderer and its lock entries for retained fork tests.
    • Preserve background-task stop controls, elapsed time, resources, full commands, and task-specific output.
    • Display the configured automatic recovery mode.
    • Reconnect Codex settings import to the new welcome flow, including preview, opt-in, apply, retry, and failures.
    • Preserve sidebar work duration for stopped rows and search results.
    • Capture the environment with a confirmed reset-credit choice.
    • Preserve the complete reset-credit expiry breakdown.

    Also restored upstream parity for worktree identity hashing, cancellation-aware delegated completion, and executing-run priority/held-queue exclusion in result selection.

    Fork code replaced by upstream

    The 24-entry replacement record cites the exact upstream commit’s file and symbol for every replaced flag. Grouped replacements are:

    Removed or superseded fork code Upstream replacement
    Desktop quit timeout constant and its app/update call sites DesktopBackendManager.ts::BACKEND_QUIT_STOP_TIMEOUT; fork termination grace retained
    Stale-PID fixture factory cli/pair.test.ts space-containing temporary-directory fixture
    Claude context-window wrapper, catalog argument, token-usage wrapper, inline context update, runtime accessor ClaudeAdapterV2.ts::claudeContextWindow, claudeProviderTurnTokenUsage, emitContextUsage, and getModelContextWindow
    Old event-compaction expectations ProjectionMaintenance.ts::pruneEventStore
    Recovery candidate predicate arrangement ProjectionStore.ts::getRecoveryThreadIds
    Redundant relay deleted-thread check ProjectionStore.ts::selectShellThreadRows deletion filter
    Old replay provider-name mapping ReplayRuntimeInstructions.ts::materializeReplayTranscriptRuntimeInstructions
    Separate Codex discovery result handling CodexProvider.ts::probeCodexAppServerProvider combined service-tier, native-usage, and rate-limit result
    Special plan-follow-up composer branch useComposerSend.ts regular send pipeline and chatViewSend.ts::restoreComposerDraft; issue contexts retained
    Old effort presentation policy EffortGlyph.tsx::NAMED_LEVELS and descriptor-driven bars
    Timeline test’s forced scrolling MessagesTimeline.browser.test.tsx visibility and scroll-position synchronization
    Borrowed files-panel project identity RightPanelSurfaceContent.tsx files surface’s own projectId
    Relationship test’s real-module mock spread Direct useArchivedThreadSnapshots fixture
    Cursor-specific usage prop Upstream UsageLimits.tsx::UsageLimitsSection; outside Codex/Claude scope
    Old notification-source shape orchestrationV2.ts::OrchestrationV2NotificationSource optional pull-request identity
    Direct Forgejo environment reads ForgejoCli.ts Effect configuration passed to forgejoKeysPaths
    Old dependency peer-resolution suffixes Regenerated upstream dependency graph in pnpm-lock.yaml

    Verification and failures

    All required non-mobile package type checks passed, including desktop and server, one package at a time. Upstream changed the compiler command to effect-tsgo tsrs --noEmit, so checks used package vp run typecheck with that implementation.

    The original test manifests covered 924 files: 821 non-browser and 103 browser files. They include all 803 added/changed upstream tests outside mobile and vendored references, and all 73 fork tests beside resolved files. Failures were repaired and passed in focused reruns.

    Additional verification completed:

    • 198 source-sibling files: 197 passed initially; the remaining packaging fixture passed after correcting its stale expectation about upstream native transcription unpacking.
    • Node tests: 24 passed.
    • Web React Compiler: 1,507 cases passed.
    • Migrations: empty-database checks and a seeded fork-029-to-030 upgrade/query-plan case passed.
    • Previously failing browser files: all six passed, 105 tests, including the integrated background-output assertions.

    The verification ledger records every original failing test/suite instance and its cause. Repairs included missing fixture dependencies and selective-read methods, SQLite fairness, concurrent mailbox registration, provider reopen deadlock, routed-question visibility, delegated completion ownership, guarded JSON indexes, notification disconnect handling, and stale upstream expectations.

    Final check:changed result and remaining limits

    check:changed ran once, against the pinned base. The intentional turn interruption terminated its shell during the test phase. I confirmed that process was gone and completed the uncovered tests, Node checks, and web compiler check separately. The checker itself therefore has no final aggregate verdict; its log preserves these completed results:

    • Passed: unused patches, formatting, lint, knip phase 1, and both GraphQL checks.
    • Failed: knip phase 2, 81 unused exports, the known Commit hook fails on every TypeScript change: 74 unused exports on main #256 failure.
    • Failed: only the three known excluded mobile type errors:
      • ComposerCommandPopover.tsx:112: obsolete app key in the skill-source mapping; line moved from 103.
      • projectIcon.ts:54: missing return path.
      • asset-url-state.ts:36: string incompatible with AssetUrlFailureReason.

    Real-model eval attempts could not start: Claude lacked ANTHROPIC_API_KEY, and Codex could not resolve model_providers.vibeproxy. Their semantic results remain unverified. Mobile, native client verification, and manual client testing were excluded; no dev server or live userdata database was used. The local commits bypassed staged hooks after explicit checks; the recorded knip failure remains visible.

  4. tannerpolley commented on Nov 11, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: done

    Issue: #368 Upstream sync 2026-11-11: 1064 upstream commits
    Thread: thread:delegated-task:command%3Amcp%3A0b46140a-195e-420e-90ab-9251badb0679%3Adelegate-task%3A75f045da-3039-4321-b407-0ff5b8035685
    Model: gpt-6.1-sol
    Branch: issue-368-upstream-sync-2026-11-11-1064-upstream
    Completed: 2026-11-11T21:17:17.335Z

    The completed merge remains at 2da6459c2f2f02f48253e66d6ce1d2ca2ba83c9f, with a clean working tree and no running verification jobs.

    The full evidence is in the final audit ledger, upstream replacement citations, and verification report. No additional changes were made after the final report above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions