Skip to content

Upstream ancestry sync: resolve commit divergence#28

Merged
aaditagrawal merged 9 commits intomainfrom
upstream-ancestry-sync
Mar 20, 2026
Merged

Upstream ancestry sync: resolve commit divergence#28
aaditagrawal merged 9 commits intomainfrom
upstream-ancestry-sync

Conversation

@aaditagrawal
Copy link
Owner

@aaditagrawal aaditagrawal commented Mar 20, 2026

Summary

Merge upstream/main into our fork to establish shared commit ancestry. This resolves the "7 commits behind" indicator on GitHub caused by cherry-picked commits having different SHAs than their upstream originals.

All conflicts resolved by keeping our version (--ours), since our code already contains all upstream changes from the previous cherry-pick integration (PR #26) plus our multi-provider enhancements.

No functional changes — this is purely an ancestry fix.

Test plan

  • bun typecheck — 7/7 packages pass
  • CI passes

Summary by CodeRabbit

  • Tests
    • Enhanced test coverage for provider routing to verify correct session handling.

Note: This is a test-only change with no impact on end-user functionality.

UtkarshUsername and others added 8 commits March 18, 2026 09:46
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: JustYannicc <52761674+JustYannicc@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
# Conflicts:
#	README.md
#	apps/server/integration/orchestrationEngine.integration.test.ts
#	apps/server/src/orchestration/Layers/CheckpointReactor.test.ts
#	apps/server/src/orchestration/Layers/ProviderCommandReactor.test.ts
#	apps/server/src/orchestration/Layers/ProviderCommandReactor.ts
#	apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.test.ts
#	apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts
#	apps/server/src/provider/Layers/ClaudeAdapter.test.ts
#	apps/server/src/provider/Layers/ClaudeAdapter.ts
#	apps/server/src/provider/Layers/ClaudeSdkFastMode.probe.test.ts
#	apps/server/src/provider/Layers/CodexAdapter.test.ts
#	apps/server/src/provider/Layers/ProviderAdapterRegistry.test.ts
#	apps/server/src/provider/Layers/ProviderAdapterRegistry.ts
#	apps/server/src/provider/Layers/ProviderHealth.ts
#	apps/server/src/provider/Layers/ProviderService.ts
#	apps/server/src/provider/Layers/ProviderSessionDirectory.ts
#	apps/server/src/serverLayers.ts
#	apps/web/src/appSettings.test.ts
#	apps/web/src/appSettings.ts
#	apps/web/src/components/ChatView.logic.ts
#	apps/web/src/components/ChatView.tsx
#	apps/web/src/components/Icons.tsx
#	apps/web/src/components/Sidebar.tsx
#	apps/web/src/components/chat/ProviderModelPicker.browser.tsx
#	apps/web/src/components/chat/ProviderModelPicker.tsx
#	apps/web/src/composerDraftStore.ts
#	apps/web/src/routes/_chat.settings.tsx
#	apps/web/src/session-logic.test.ts
#	apps/web/src/session-logic.ts
#	apps/web/src/store.test.ts
#	apps/web/src/store.ts
#	bun.lock
#	packages/contracts/src/model.ts
#	packages/contracts/src/orchestration.test.ts
#	packages/contracts/src/orchestration.ts
#	packages/contracts/src/provider.test.ts
#	packages/contracts/src/provider.ts
#	packages/contracts/src/providerRuntime.ts
#	packages/shared/src/model.test.ts
#	packages/shared/src/model.ts
@coderabbitai
Copy link

coderabbitai bot commented Mar 20, 2026

📝 Walkthrough

Walkthrough

A new test case was added to verify that explicit claudeAgent startSession calls are correctly routed to the routing.claude.startSession mock, with assertions on the returned provider and invocation parameters.

Changes

Cohort / File(s) Summary
Test Case Addition
apps/server/src/provider/Layers/ProviderService.test.ts
Added it.effect test case for ProviderServiceLive routing to verify claudeAgent session routing behavior, including provider validation and mock invocation assertions.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Suggested labels

vouch:trusted

Poem

🐰 A test for Claude's path so clear,
Routes and hops bring verification near,
With assertions checked and mocks in place,
The agent finds its routing space! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title describes a merge operation for commit ancestry synchronization, which is relevant to the PR's objective of resolving divergence with upstream.
Description check ✅ Passed The description covers the main change (ancestry fix), rationale (resolving divergence), and test plan. It aligns with the required template sections.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch upstream-ancestry-sync
📝 Coding Plan
  • Generate coding plan for human review comments

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Mar 20, 2026
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@apps/server/src/provider/Layers/ProviderService.test.ts`:
- Around line 587-609: Duplicate test "routes explicit claudeAgent provider
session starts to the claude adapter" should be removed to avoid redundant
assertions and flaky mock count checks; locate the duplicate block referencing
ProviderService and routing.claude.startSession (the second occurrence around
the later lines) and delete that redundant it.effect test so only the original
test remains, or alternatively reset routing.claude.startSession.mock (e.g.,
mockClear) at the start of the duplicate test if you prefer keeping it; ensure
only one test asserts routing.claude.startSession.mock.calls.length === 1 and
that ProviderService.startSession assertions remain in the single canonical
test.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 68077711-8fd7-4e5e-bd30-054f30569d67

📥 Commits

Reviewing files that changed from the base of the PR and between 51df3f9 and 1863052.

📒 Files selected for processing (1)
  • apps/server/src/provider/Layers/ProviderService.test.ts

@github-actions github-actions bot added size:XS 0-9 changed lines (additions + deletions). and removed size:S 10-29 changed lines (additions + deletions). labels Mar 20, 2026
@aaditagrawal aaditagrawal merged commit 9c00c06 into main Mar 20, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). 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.

5 participants