fix(macros): follow up on member access review fixes#1156
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughRemoved eager preloading of script exports from SingleMacroEngine; selection now returns lightweight candidates and member resolution loads the script on-demand via Changes
Sequence Diagram(s)sequenceDiagram
participant Runner as Runner (caller)
participant SingleMacro as SingleMacroEngine
participant ChoiceEngine as MacroChoiceEngine
participant ScriptStore as getUserScript()
Runner->>SingleMacro: runAndGetOutput("Macro::Script::member")
SingleMacro->>ChoiceEngine: selectUserScriptCandidate(selector)
ChoiceEngine-->>SingleMacro: candidate(s) (no exportsRef)
SingleMacro->>SingleMacro: pick candidate
SingleMacro->>ScriptStore: getUserScript(candidate.scriptId, app)
ScriptStore-->>SingleMacro: script exports (exportsRef)
SingleMacro->>SingleMacro: resolve member from exportsRef
SingleMacro->>Runner: return execution result
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Deploying quickadd with
|
| Latest commit: |
1a34da1
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://185b4b21.quickadd.pages.dev |
| Branch Preview URL: | https://codex-1155-review-fixes.quickadd.pages.dev |
This is a follow-up to the member-access change that already landed on
masterin commita111204.It contains only the remaining review-fix delta:
The previous PR
#1155was left open after the feature had already landed, so it was closed and replaced with this smaller PR to keep the review surface accurate.Validation:
bun run testbun run test:e2e tests/e2e/macro-member-access.test.tsRefs #1155
Summary by CodeRabbit
Bug Fixes
Tests