Repository navigation
fix(dashboard): report a finished consolidation on the status island (#2006) - #2043
Merged
doobidoo merged 2 commits intoNov 16, 2026
Merged
Conversation
Owner
|
@dodoshell please resolve the merge conflicts |
Contributor
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
Contributor
Author
|
Merged |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
A scheduled consolidation now reports its end on the status island as its own source, "Consolidation": a finished run is confirmed for five seconds with its time horizon ("Finished (daily)"), and a failed run ("Failed (weekly)") stays until the reader closes it or the next run reports.
Why
Fixes #2006
The scheduler sends
consolidation_completedwith{"time_horizon": ..., "success": true|false}when a run ends (consolidation/scheduler.py), but the listener in_connectSSE()ignored the payload and only refreshed the dashboard numbers, so a failed run was shown nowhere.What I did, following the issue:
sync_completedand calls a newhandleConsolidationCompleted(data).success: truereports sourceconsolidationassuccesswithoutsettle, with{ horizon: data.time_horizon }asvars.success: falsereportserrorwithdismissible: true.island.source.consolidation, and the dashboard refresh stays.this.statusIsland?., so the dashboard keeps working without the island.How it was verified
New cases at the end of
tests/web/test_status_island.cjs. The event goes through the realconsolidation_completedlistener in_connectSSE()(with a stubEventSource) and lands in the real island model (StatusIsland.createModel()):success,island.consolidation.completed,vars.horizon, nosettle, gone after it expires, dashboard refreshed;error, leads, does not expire by itself, can be dismissed;{horizon}.bash scripts/pr/pre_pr_check.sh(Windows): every check passes except[3/9] Test suite, and[2/9]was skipped (no LLM backend). The failing tests in the full run (for exampletests/ci/test_auto_assign_claim.py, which compares/-separated paths with Windows ones) are the same set onmainwhen I run those files there, so they are not from this change.Screenshots
Dashboard running locally on
sqlite_vec, panel open in every shot.MCP_SCHEDULE_DAILYto the next minute, and the scheduler sent{"time_horizon": "daily", "success": true}. The row showed up and was gone five seconds later.EventSource, so the real listener handles it. The failure shots were taken six seconds after the event, past the time a confirmation lasts.Changelog fragment
changelog.d/2006.fixed.mdNotes for the reviewer
POST /api/consolidation/triggerdoes not sendconsolidation_completed. It calls_consolidate_async()directly instead of going through the scheduler, so a manual run is still not shown on the island (I checked with the SSE stream open: onlyconnection_establishedcame through). I left the backend alone to keep this PR in the dashboard. Happy to send the event from the endpoint too, here or separately.island.source.consolidationnames the row, likeisland.source.sync.island.consolidation.completedandisland.consolidation.failedhold the text. The texts are short ("Finished ({horizon})") because the capsule shows the text alone, and a longer one pushed the row label to a mid-word break in the panel. All eleven catalogs have translations.daily,weekly, ...), so it stays English in the other catalogs, as the issue asks (vars). Translating it would take five more keys in every catalog; I can add them if you want.Agent Disclosure
I used Claude Code to help with this change, and I went through the diff, the tests and the description myself before opening this.


Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found.Summary
Scheduled consolidation results now appear on the status island.
dodoshellexplicitly left manual runs outside this change becausePOST /api/consolidation/triggerdoes not sendconsolidation_completed.Reviews (6) · Last reviewed commit: "Merge branch 'main' into fix/2006-consol..." · Reviewed by Greptile