Skip to content

Upstream sync conflict #51

Closed
Closed

Description

@github-actions

Handed to T3 (request run 41285727151)

Stopped commit: 4912b64397e91006e69a1d3632be51ef38f16713 fix(web): show the result of the notified delegated task

Run: https://github.com/Alb11747/t3code/actions/runs/41285727151

Local resolution: fork/README.md.

Activity

  1. Alb11747 commented on Nov 1, 2026

    @Alb11747
    Owner

    Fork sync resolution: request 41285727151

    Candidate incorporates fork main fd5c10196a08458c3b876e235f8d48836fe1ce20 and pinned upstream 7195b699547b538e49f758e314dde5c8c5d907cf. No webhook request data was used. All publication goes through the trusted publish helper.

    Superseded patch

    Upstream PR pingdotgg#22291, commit 08a40a9d6e5746a8b35ec99af824c6595fa2c6fd, already implements pending question/approval retention in server snapshots. Aborted the initial merge and reverted fork commit 73b4ab6dddbeadc43c9e9abd8682b637bd6040cd without rewriting history, then merged again. Kept upstream's server implementation. Restored only the complementary fork client cache invalidation, history-page visibility repair, and regression coverage. Restored the fork's required-card byte-budget adjustment after its existing regression tests demonstrated that upstream's half-budget minimum overflows the snapshot budget with large pending cards. Updated fork/CHANGES.md to describe the remaining patch accurately.

    Conflict resolutions

    • apps/mobile/src/features/settings/scheduledTaskDraft.ts: retain fixed-time timeZone and upstream's one-time runAt field.
    • apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts: cancel the fork overload retry before using upstream's bounded interrupt/close sequence.
    • apps/server/src/orchestration-v2/Orchestrator.ts: tool-boundary joins retain the running turn's model and notification/delegation metadata; ordinary queue promotion uses upstream's queued model selection. Adapt delegated-question cancellation to upstream's narrower projection reads with a separate message lookup restricted to queued run message IDs.
    • apps/server/src/orchestration-v2/SteeringCompletion.integration.test.ts: preserve the fork's user/agent Stop coverage and upstream's queued-model selection case.
    • apps/server/src/orchestration-v2/threadHistoryPaging.ts: initial conflict disappears after reverting the overlapping retention patch; use upstream's structure and names, plus the fork's complementary required-card budget adjustment.
    • Eight apps/server/src/orchestration-v2/testkit/fixtures/*/muse_transcript.ndjson files (multi_turn, muse_permission, muse_subagent_approval, muse_subagent_interrupt, muse_workflow, simple, subagent_v2, turn_interrupt): retain upstream's plural PR-link tool guidance and the fork's absolute-file-link guidance. Verified every resulting blob equals upstream after removing exactly the fork guidance sentence; all JSON lines parse.
    • apps/server/src/provider/agentContextBudget.json: measure merged context instead of taking either side's obsolete byte counts: 5331 Claude, 7061 Codex, 50125 MCP tool JSON bytes.
    • apps/server/src/scheduledTasks/ScheduledTaskService.ts: combine fork fixed-time zone preservation/null reset with upstream once-time ISO normalization.
    • apps/web/src/components/settings/ScheduledTasksSettings.tsx: preserve upstream once-capability guard and the fork's projectless workspace validation.
    • apps/web/src/components/settings/scheduledTasksSettings.logic.ts: retain projectless selection helpers and fixed-time zones alongside upstream once draft fields/conversion.
    • apps/web/src/components/settings/scheduledTasksSettings.logic.test.ts: retain both workspace and once-time regression groups.
    • packages/contracts/src/orchestratorMcp.ts: document both once schedules and the fork's fixed-time zone update semantics.
    • packages/contracts/src/scheduledTask.ts: include upstream's once schema alongside the fork's nullable time-zone upsert schema.
    • packages/ssh/src/tunnel.test.ts: retain the fork command/spy imports and upstream's new password-prompt error import.
    • docs/user/project-settings.md: explain both configurable fixed-time zones and upstream's one-time schedules.
    • docs/user/thread-sidebar.md: retain automatic retry behavior and describe Resume without limiting it to web/desktop now that upstream supports mobile.

    Also removed the duplicate Deferred import produced by the automatic merge in apps/server/src/mcp/OrchestratorMcpService.test.ts. No manual workflow/action changes. The only fork-maintained content changed is fork/CHANGES.md; the trusted procedure and fork/scripts/t3-resolver/ are unchanged.

    Validation

    All final checks passed; no checks were skipped for environment limitations. Dependencies were present; pnpm successfully synchronized four lockfile dependencies when first invoked.

    • Focused typechecks: contracts, client-runtime, SSH, server, mobile, and web all pass. The first server check exposed the duplicate import and missing messages in the narrowed projection; both fixed and server typecheck rerun successfully.
    • Focused tests pass: AgentContextBudget.test.ts, threadHistoryPaging.test.ts, ProjectionStore.test.ts, SteeringCompletion.integration.test.ts, Adapters/ClaudeAdapterV2.test.ts, mcp/OrchestratorMcpService.test.ts, scheduled-task service interval/webhook/schedule/main tests, Schedule.test.ts, web scheduledTasksSettings.logic.test.ts, mobile scheduledTaskDraft.test.ts, contracts scheduledTask.test.ts, client-runtime threadHistoryMerge.test.ts and threads-sync.test.ts, SSH tunnel.test.ts, and provider-core runtimeInstructions.test.ts.
    • Initial focused tests caught stale context budget and loss of the complementary required-card budget adjustment; fixed and rerun successfully. An intermediate queued-message lookup name collided with upstream's later lookup; renamed before final checks, then reran affected MCP/steering/scheduler tests successfully.
    • Focused lint passes on all resolved TypeScript and restored client/test files.
    • corepack pnpm exec vp fmt --check passes repository-wide after formatting schedule normalization.
    • git diff --check fd5c10196a08458c3b876e235f8d48836fe1ce20 HEAD passes with no upstream whitespace exceptions.
    • Clean checkout/index, no unresolved entries or merge/revert state, and both pinned ancestors present.

    Review should concentrate on the required-card budget reservation, bounded queued-question message lookup, ordinary versus tool-boundary model selection, and the once/time-zone schedule combination. Hosted checks and an exact-candidate Codex review remain required before automatic promotion.

  2. Alb11747 commented on Nov 1, 2026

    @Alb11747
    Owner

    Fork sync resolution: request 41285727151

    Candidate incorporates fork main fd5c10196a08458c3b876e235f8d48836fe1ce20 and pinned upstream 7195b699547b538e49f758e314dde5c8c5d907cf. No webhook request data was used. All publication goes through the trusted publish helper.

    Superseded patch

    Upstream PR pingdotgg#22291, commit 08a40a9d6e5746a8b35ec99af824c6595fa2c6fd, already implements pending question/approval retention in server snapshots. Aborted the initial merge and reverted fork commit 73b4ab6dddbeadc43c9e9abd8682b637bd6040cd without rewriting history, then merged again. Kept upstream's server implementation. Restored only the complementary fork client cache invalidation, history-page visibility repair, and regression coverage. Restored the fork's required-card byte-budget adjustment after its existing regression tests demonstrated that upstream's half-budget minimum overflows the snapshot budget with large pending cards. Updated fork/CHANGES.md to describe the remaining patch accurately.

    Conflict resolutions

    • apps/mobile/src/features/settings/scheduledTaskDraft.ts: retain fixed-time timeZone and upstream's one-time runAt field.
    • apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts: cancel the fork overload retry before using upstream's bounded interrupt/close sequence.
    • apps/server/src/orchestration-v2/Orchestrator.ts: tool-boundary joins retain the running turn's model and notification/delegation metadata; ordinary queue promotion uses upstream's queued model selection. Adapt delegated-question cancellation to upstream's narrower projection reads with a separate message lookup restricted to queued run message IDs.
    • apps/server/src/orchestration-v2/SteeringCompletion.integration.test.ts: preserve the fork's user/agent Stop coverage and upstream's queued-model selection case.
    • apps/server/src/orchestration-v2/threadHistoryPaging.ts: initial conflict disappears after reverting the overlapping retention patch; use upstream's structure and names, plus the fork's complementary required-card budget adjustment.
    • Eight apps/server/src/orchestration-v2/testkit/fixtures/*/muse_transcript.ndjson files (multi_turn, muse_permission, muse_subagent_approval, muse_subagent_interrupt, muse_workflow, simple, subagent_v2, turn_interrupt): retain upstream's plural PR-link tool guidance and the fork's absolute-file-link guidance. Verified every resulting blob equals upstream after removing exactly the fork guidance sentence; all JSON lines parse.
    • apps/server/src/provider/agentContextBudget.json: measure merged context instead of taking either side's obsolete byte counts: 5331 Claude, 7061 Codex, 50125 MCP tool JSON bytes.
    • apps/server/src/scheduledTasks/ScheduledTaskService.ts: combine fork fixed-time zone preservation/null reset with upstream once-time ISO normalization.
    • apps/web/src/components/settings/ScheduledTasksSettings.tsx: preserve upstream once-capability guard and the fork's projectless workspace validation.
    • apps/web/src/components/settings/scheduledTasksSettings.logic.ts: retain projectless selection helpers and fixed-time zones alongside upstream once draft fields/conversion.
    • apps/web/src/components/settings/scheduledTasksSettings.logic.test.ts: retain both workspace and once-time regression groups.
    • packages/contracts/src/orchestratorMcp.ts: document both once schedules and the fork's fixed-time zone update semantics.
    • packages/contracts/src/scheduledTask.ts: include upstream's once schema alongside the fork's nullable time-zone upsert schema.
    • packages/ssh/src/tunnel.test.ts: retain the fork command/spy imports and upstream's new password-prompt error import.
    • docs/user/project-settings.md: explain both configurable fixed-time zones and upstream's one-time schedules.
    • docs/user/thread-sidebar.md: retain automatic retry behavior and describe Resume without limiting it to web/desktop now that upstream supports mobile.

    Also removed the duplicate Deferred import produced by the automatic merge in apps/server/src/mcp/OrchestratorMcpService.test.ts. No manual workflow/action changes. The only fork-maintained content changed is fork/CHANGES.md; the trusted procedure and fork/scripts/t3-resolver/ are unchanged.

    Validation

    All final checks passed; no checks were skipped for environment limitations. Dependencies were present; pnpm successfully synchronized four lockfile dependencies when first invoked.

    • Focused typechecks: contracts, client-runtime, SSH, server, mobile, and web all pass. The first server check exposed the duplicate import and missing messages in the narrowed projection; both fixed and server typecheck rerun successfully.
    • Focused tests pass: AgentContextBudget.test.ts, threadHistoryPaging.test.ts, ProjectionStore.test.ts, SteeringCompletion.integration.test.ts, Adapters/ClaudeAdapterV2.test.ts, mcp/OrchestratorMcpService.test.ts, scheduled-task service interval/webhook/schedule/main tests, Schedule.test.ts, web scheduledTasksSettings.logic.test.ts, mobile scheduledTaskDraft.test.ts, contracts scheduledTask.test.ts, client-runtime threadHistoryMerge.test.ts and threads-sync.test.ts, SSH tunnel.test.ts, and provider-core runtimeInstructions.test.ts.
    • Initial focused tests caught stale context budget and loss of the complementary required-card budget adjustment; fixed and rerun successfully. An intermediate queued-message lookup name collided with upstream's later lookup; renamed before final checks, then reran affected MCP/steering/scheduler tests successfully.
    • Focused lint passes on all resolved TypeScript and restored client/test files.
    • corepack pnpm exec vp fmt --check passes repository-wide after formatting schedule normalization.
    • git diff --check fd5c10196a08458c3b876e235f8d48836fe1ce20 HEAD passes with no upstream whitespace exceptions.
    • Clean checkout/index, no unresolved entries or merge/revert state, and both pinned ancestors present.

    Review should concentrate on the required-card budget reservation, bounded queued-question message lookup, ordinary versus tool-boundary model selection, and the once/time-zone schedule combination. Hosted checks and an exact-candidate Codex review remain required before automatic promotion.

    Hosted fix round 1

    The first candidate, 650ec4faf07dd5351ec5834d31261ce196eda43d, passed hosted Quality but the hosted run reported one test failure: integration/transferBudgetV2.integration.test.ts timed out after 120 seconds. Reproduced that same timeout locally. Checked out the exact pinned upstream commit temporarily and ran the same unchanged test: it passed (14.87 seconds including setup/imports). Returned to the resolver branch before making the fix.

    Temporary diagnostics isolated a mismatch between the local final shell's contextNote: undefined and the streamed shell's contextNote: null. The fork's nullable optional context-note field is normalized to null by the wire codec; legacy threads without notes were not normalized in the two local shell constructors. In apps/server/src/orchestration-v2/ProjectionStore.ts, normalize absent notes with ?? null in both threadShellFromProjection and shellFromState. No test, assertion, timeout, or expected result was changed. All temporary diagnostic edits were removed; the integration test remains byte-identical to upstream.

    After the two-line fix, the original transfer integration and ProjectionStore tests pass together (48 tests across 2 files). Server typecheck, focused ProjectionStore lint, repository-wide formatting, ancestor/clean-state/helper-integrity audit, line-ending inspection, and baseline git diff --check all pass again. Other previously successful focused checks remain applicable; the fix changes only the two shell constructors. Please also inspect the null normalization when reviewing this candidate.

  3. github-actions commented on Nov 1, 2026

    @github-actions
    Author
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions