fix(miner): honor --json on manage status and queue dashboard runtime failures - #6140
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 #6140 +/- ##
=======================================
Coverage 95.33% 95.33%
=======================================
Files 599 599
Lines 47186 47188 +2
Branches 15032 15032
=======================================
+ Hits 44983 44985 +2
Misses 1477 1477
Partials 726 726
Flags with carried forward coverage won't be shown. Click here to find out more.
|
… failures
Wrap store init/collection in try/catch and route errors through
reportCliFailure so automation and MCP consumers get parseable
{ ok: false, error } output instead of uncaught stack traces.
Tracking: #7
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 LoopOver review result - reject/close recommendedReview updated: 2026-07-15 14:36:37 UTC
🛑 Suggested Action - Reject/Close Review summary Nits — 4 non-blocking
Why this is blocked
📋 Copy for AI agents — paste into your coding agent
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://gittensory.aethereal.dev/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 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.
|
|
LoopOver is closing this pull request on the maintainer's behalf (No linked issue detected; Maintainer requires a linked issue). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Summary
runManageStatusandrunPortfolioDashboardnow wrap store init + collection intry/catchand route failures throughreportCliFailure, matching the Make CLI error paths respect--json#4836 CLI contract used by sibling commands (calibration,plan list,queue list).try;finallyuses optional chaining so partial init still closes opened stores.Problem (proposed upstream issue)
loopover-miner manage status --jsonandqueue dashboard --jsonhandled parse errors viareportCliFailure, but SQLite open/read/runtime failures escaped as uncaught stack traces — breaking cron/automation and MCP consumers (loopover_miner_get_manage_status, #5822).Fork tracking issue: RealDiligent#7
Test plan
npx vitest run test/unit/miner-manage-status.test.ts test/unit/miner-portfolio-dashboard.test.ts(23/23 pass)