No actionable comments were generated in the recent review.
External image Recent review info
-
External image Run configuration
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: t3/daily-performance-check-in
- File: .coderabbit.config.ts
- Commit: c234d92
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Team
- Run ID:
350fe669-6658-4f71-9d12-6d80b95aee7a
External image Commits
Reviewing files that changed from the base of the PR and between 8be18a37339ce7064dfefe67d6d371de836312c2 and c234d92e4dd96fe4d22f20eea0bd148500128f1a.
External image Files selected for processing: 3
apps/server/src/orchestration-v2/DelegatedCompletionDelivery.test.tsapps/server/src/orchestration-v2/Orchestrator.tsapps/server/src/orchestration-v2/ProjectionStore.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
Walkthrough
The server now narrows delegated-task reads, stores and filters completion-delivery state, and schedules limit-recovery lookups using wake hints. Pull-request sweeps share workspace-project reads within a scope. Claude and Codex retry-completion spans apply to event emission.
Changes: Delegated-task projection reads
Layer / File(s) Summary Projection filters and delivery state
apps/server/src/orchestration-v2/ProjectionStore.ts,apps/server/src/orchestration-v2/ProjectionStore.test.ts,apps/server/src/persistence/Migrations.ts,apps/server/src/persistence/Migrations/075_SubagentDeliveryState.ts,apps/server/src/persistence/reconcileV2PreviewMigration.test.ts,apps/server/src/orchestration-v2/ProviderTurnControlService.test.ts,apps/server/src/orchestration-v2/DelegatedCompletionDelivery.test.tsProjection reads support node and turn-item filters and optional settled-subagent omission. Subagent records store completion-delivery state. Migration 75 adds and backfills the state. Tests cover filtering and delivery-notification counts. Targeted delegated-task operations
apps/server/src/orchestration-v2/Orchestrator.ts,apps/server/src/mcp/OrchestratorMcpService.tsDelegated-task operations load selected records instead of full subagent collections where applicable. Task ordinals use the projection store’s subagent count. Completion-notification paths load the full delegated-task cohort when required. Limit-recovery scheduling
Layer / File(s) Summary Shared due-hint factory
apps/server/src/scheduling/DueHint.ts,apps/server/src/scheduledTasks/ScheduledTaskService.tsThe scheduling module provides a reusable due-hint factory. The scheduled-task service uses it for scheduled tasks and pending webhooks. Projection recovery wake time
apps/server/src/orchestration-v2/ProjectionStore.ts,apps/server/src/orchestration-v2/ProjectionStore.test.tsThe projection store returns the earliest future reset or snooze time for eligible threads. Tests cover reset deadlines, snooze expiry, and disabled auto-resume. Recovery worker polling
apps/server/src/orchestration-v2/UsageLimitRecoveryWorker.ts,apps/server/src/orchestration-v2/UsageLimitRecoveryWorker.test.tsThe worker invalidates its due hint for selected events and settings changes. It skips candidate lookup while idle and records a wake time when no command was attempted. Tests check query timing. Shared project reads
Layer / File(s) Summary Scoped project-read sharing
apps/server/src/pullRequest/PullRequestService.ts,apps/server/src/pullRequest/PullRequestService.test.ts,apps/server/src/orchestration-v2/PullRequestSyncReactor.ts,apps/server/src/orchestration-v2/PullRequestSyncReactor.test.tswithSharedProjectReadscaches matching project reads for the scope of an effect. The sync worker wraps each sweep in this operation. Tests verify reuse within a scope and fresh reads afterward.Retry-completion spans
Layer / File(s) Summary Retry-completion span emission
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts,apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.tsBoth adapters use untraced retry-completion functions and apply named spans when emitting completed retry items. Priority: External image Low
Estimated code review effort: 4 (Complex) | ~45 minutes
Change: Refactor
Suggested reviewers:
maria-rcks,yash-singh1
Merge Risk: External image Low · up to c234d
A transient project-read failure can delay matching pull-request updates until the next sweep. This is a bounded risk for merge consideration.
Pre-merge checks: Passed 4
Check name Status Explanation Title check Passed The title clearly and concisely describes the main performance changes: settled subagents are no longer decoded unnecessarily, and idle pollers skip work. Description check Passed The description is detailed and covers the problem, implementation, scope, measurements, tests, and observed results. The required sections are represented, although explicit maintainer approval or an… Linked Issues check Passed Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request. Full details: Description check
Explanation
The description is detailed and covers the problem, implementation, scope, measurements, tests, and observed results. The required sections are represented, although explicit maintainer approval or an approval exemption is not stated separately.
Finishing Touches
📝 Generate docstrings
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.