fix(miner): delete the orphaned portfolio chat-action duplicate - #8662
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8662 +/- ##
==========================================
- Coverage 93.77% 90.59% -3.18%
==========================================
Files 798 98 -700
Lines 79475 22572 -56903
Branches 24082 3917 -20165
==========================================
- Hits 74525 20449 -54076
+ Misses 3565 1945 -1620
+ Partials 1385 178 -1207
Flags with carried forward coverage won't be shown. Click here to find out more.
|
registerPortfolioChatActions (packages/loopover-miner/lib/chat-portfolio-actions.ts) had zero non-test callers: the live portfolio release/requeue registration lives in apps/loopover-miner-ui under the portfolio.release/portfolio.requeue names, while this orphaned copy used the divergent portfolio_release/portfolio_requeue names. Deletes the dead module and its test, corrects the registry header comment, and adds a regression test asserting the underscore variants are never registered. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-25 23:22:17 UTC
Review summary Nits — 4 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. Visual preview
Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy. Scroll preview
A short scroll-through clip (desktop) — click either thumbnail to open the full animation. Evidence for scroll-linked behavior a single screenshot can't show. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|

Fixes #8640
Root cause
registerPortfolioChatActions,PORTFOLIO_RELEASE_CHAT_ACTION, andPORTFOLIO_REQUEUE_CHAT_ACTION(all exported frompackages/loopover-miner/lib/chat-portfolio-actions.ts) have zero non-test callers anywhere in the repo. The live portfolio release/requeue registration already exists inapps/loopover-miner-ui/src/lib/chat-portfolio-queue-actions.tsunder theportfolio.release/portfolio.requeuenames; the orphaned copy registered the same handlers under the divergentportfolio_release/portfolio_requeue(underscore) names.Verifying zero non-test callers (run against this branch — empty output):
Changes
packages/loopover-miner/lib/chat-portfolio-actions.tsand its 100%-covered testtest/unit/miner-chat-portfolio-actions.test.tsin full.chat-action-registry.ts's header comment, which claimed all three action families register frompackages/loopover-miner, to name the real location: portfolio release/requeue registers fromapps/loopover-miner-ui.apps/loopover-miner-uichat-action suite asserting the live registration exposes only the dottedportfolio.release/portfolio.requeuenames and never the deleted duplicate'sportfolio_release/portfolio_requeueunderscore variants — so a future reintroduction is caught immediately.One extra, comment-only touch beyond the listed deliverables:
chat-discover-attempt-actions.tshad an illustrative comment namingchat-portfolio-actions.jsas a sibling example. I updated only that comment (not the registration, which the issue scopes out) so the PR leaves no dangling reference to the file it deletes.Coverage
Per the issue:
packages/loopover-miner/**is codecov-measured, but this is a deletion-plus-comment-plus-new-assertion PR — it adds no new coverable source lines (the deleted module's lines go away, the two edits are comment-only, and the regression test lives in codecov-ignoredapps/**). Socodecov/patchhas nothing to grade on the diff and stays net-neutral.Validation
apps/loopover-miner-uichat-action suite: 14 passed (13 existing + the new guard), on a branch rebased onto currentmain(ee390f51)npm run typecheckclean;tsc -p packages/loopover-miner/tsconfig.jsoncompiles cleanly with the module removed (proving nothing imported it);oxlintclean on the changed filesgit diff --checkclean