Skip to content

fix(cloud): remove duplicate runWithTrajectoryPurpose Worker-stub export — unblock prod deploy - #11865

Merged
NubsCarson merged 1 commit into
mainfrom
fix/dedup-trajectory-purpose-main
Jul 3, 2026
Merged

NubsCarson merged 1 commit into
mainfrom
fix/dedup-trajectory-purpose-main

Conversation

@NubsCarson

Copy link
Copy Markdown
Member

Prod-deploy hotfix. The #11861 promote carried TWO runWithTrajectoryPurpose exports in cloud/api/src/stubs/elizaos-core.ts (my #11847 + codex's parallel #11857 both landed on develop). The duplicate fails the Worker esbuild ('redeclares runWithTrajectoryPurpose') at Deploy API Worker → the prod deploy (28653353358) fails, blocking the money fixes going live. Removed the second copy; wrangler --dry-run builds clean (15.8 MB, single export). Same fix #11857 applies to develop. — [cloud-frontdoor]

…ort — unblock prod deploy

The develop→main promote (#11861) carried TWO runWithTrajectoryPurpose
exports in src/stubs/elizaos-core.ts: my #11847 fix + codex's parallel #11857
fix both landed on develop. The duplicate makes the Worker esbuild fail with
'redeclares runWithTrajectoryPurpose' at the Deploy API Worker step — so the
prod deploy (run 28653353358) fails, blocking the money fixes from going live.

Removed the second (my) copy, kept the top-of-file one. Verified: wrangler
--dry-run builds clean. Fixes the same issue #11857 fixes on develop.
@NubsCarson
NubsCarson merged commit a544b23 into main Jul 3, 2026
25 of 34 checks passed

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@coderabbitai

coderabbitai Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c0fc1a9c-a083-44f7-95a1-7c998ee6d550

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/dedup-trajectory-purpose-main

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.

❤️ Share

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

@NubsCarson
NubsCarson deleted the fix/dedup-trajectory-purpose-main branch July 3, 2026 10:08
NubsCarson added a commit that referenced this pull request Jul 3, 2026
…fuse the next promote deleting BOTH copies (#11875)

#11845/#11847 raced the same missing-export fix into two spots, duplicating
the export. The dedup then ALSO raced: develop's #11857 deleted the first
copy while main's #11865 hotfix deleted the second. Relative to the promote
merge-base both sides now carry a different single deletion, so the next
develop->main promote auto-merges BOTH deletions cleanly and ships a stub
with ZERO runWithTrajectoryPurpose exports — re-breaking every Worker
deploy with the original "No matching export" build failure (verified by
simulating the merge: surviving export count = 0).

Fix: make develop's file byte-identical to main's (keep the first copy).
Identical content on both sides makes the promote merge trivially correct.
`bun run --cwd packages/cloud/api typecheck` passes with this tree.

Co-authored-by: NubsCarson <carson@nubs.site>
NubsCarson added a commit that referenced this pull request Jul 3, 2026
… break (#11902)

After the #11861 promote, the runWithTrajectoryPurpose Worker stub was deduped
DIFFERENTLY on each branch: #11865 removed the second copy on main (kept the
top 'pass-through' one); #11857 removed the top copy on develop (kept the
other). A develop->main 3-way merge would then apply BOTH removals and drop
runWithTrajectoryPurpose entirely (verified: merge-tree yields 0 exports) —
silently re-breaking the Worker build on the next promote.

Fix: make develop's stub byte-identical to main's (single 'pass-through'
export, matching what's already deployed on prod). Future promotes are now a
no-op on this file. Functionally identical no-op stub either way.
@claude

claude Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Claude encountered an error —— View job


I'll analyze this and get back to you.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant