fix: green full-suite after main product drift#2275
Conversation
Restore i18n key parity (Replan + mobile nav strings), update engine test mocks for getTask/recordActivity/getAsyncLayer/ModelRuntime, align DUPLICATE marker and mission validator expectations with current product APIs, and make worktree path-reservation tests use real temp roots.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
🚧 Files skipped from review as they are similar to previous changes (5)
📝 WalkthroughWalkthroughThis PR aligns engine and dashboard tests with updated runtime contracts, expands duplicate-resolution coverage, replaces fixed worktree paths with temporary filesystem roots, and adds replanning and mobile-navigation translations for five locales. ChangesTest contract alignment
Worktree test environments
Localized UI strings
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThis PR updates drifted tests and localization data to match current product behavior. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (2): Last reviewed commit: "merge: origin/main into fix/main-tests-v..." | Re-trigger Greptile |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/engine/src/__tests__/triage-split-into-subtasks-delete.test.ts`:
- Around line 168-172: Update the getTask mock in the affected test to return
the canonical FN-4894 task for that ID while preserving the original default
current-task mock for all other IDs; do not return undefined for unmatched
lookups.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: d9361725-945c-49d6-b0ed-1f04671bb569
📒 Files selected for processing (14)
packages/dashboard/app/hooks/__tests__/useBlockerFanout.test.tspackages/engine/src/__tests__/executor-assigned-agent-runtime-config.test.tspackages/engine/src/__tests__/mcp-pr-response-forwarding.test.tspackages/engine/src/__tests__/pi-layers-wiring.test.tspackages/engine/src/__tests__/reliability-interactions/mission-validation-trigger-gap.test.tspackages/engine/src/__tests__/triage-finalize-duplicate-lineage.test.tspackages/engine/src/__tests__/triage-split-into-subtasks-delete.test.tspackages/engine/src/__tests__/worktree-acquisition-backend.test.tspackages/engine/src/__tests__/worktree-acquisition-worktrunk.test.tspackages/i18n/locales/es/app.jsonpackages/i18n/locales/fr/app.jsonpackages/i18n/locales/ko/app.jsonpackages/i18n/locales/zh-CN/app.jsonpackages/i18n/locales/zh-TW/app.json
Resolve i18n locale conflicts by keeping translated Replan/mobile-nav strings and filling main's new add/select/remove nav keys for es/fr/ko/zh-CN/zh-TW.
|
Follow-up for the resolved CodeRabbit thread on |
## Summary Follow-up to #2275 review feedback: `getTask` mocks for DUPLICATE recovery tests now return a default current-task fixture for non-canonical IDs instead of `undefined`. ## Context CodeRabbit on #2275 noted that returning `undefined` for every id except the canonical task could break recovery if the subject task is re-fetched mid-path. ## Test plan - [x] `triage-split-into-subtasks-delete.test.ts` - [x] `triage-finalize-duplicate-lineage.test.ts` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Improved duplicate-resolution test coverage by preserving task data during recovery and re-fetch scenarios. * Added validation for non-canonical task handling to prevent errors when duplicate tasks are resolved or split. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Summary
Follow-up after #2266: full suite on latest
mainstill failed on i18n parity and engine product-drift tests (duplicate flagging, mission validator signature, worktree path reservation, pi ModelRuntime, assigned-agent PG layer).Changes
listView/tasks.statusReplanand mobile-nav settings keys to es/fr/ko/zh-CN/zh-TWtriageDuplicateResolution: "delete"coverage + default prompt/flag path; stubrecordActivitygetTaskfor merger model resolutionModelRuntime.create(FN-8142)getAsyncLayerfor authoritative AgentStore fallbackstartValidatorRun(..., taskId)+runValidation{ result, inspection }shapeMAX_AUTO_MERGE_RETRIESfromself-healing-constants.ts(wave-8 peel)Test plan
pnpm test:gateSummary by CodeRabbit
Localization
Tests