Skip to content

Fix Analytics visibility, CSV export, and data recovery - #228

Closed
BunsDev wants to merge 31 commits into
release-reviewed-batchfrom
review-analytics
Closed

BunsDev wants to merge 31 commits into
release-reviewed-batchfrom
review-analytics

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Integration target: release-reviewed-batch. This reviewed update will land through the combined batch and its protected squash to main; Images/Plugins #236 is excluded.

Analytics could reopen after being hidden while navigation was pending, cancel every CSV export, lose the next usage event after a torn ledger write, and serve assets through directory symlinks outside its root. This follow-up to the already-landed #219 addresses all four findings.

Keep the latest visibility request, permit only the dashboard's own CSV blob export through a native save dialog, preserve the ledger record boundary after a torn tail, and refuse symlinks in dashboard asset paths. Integrate current Notes Tree and reviewed native acceptance fixes.

Verification: full repository build and unit suite passed. All 303 desktop E2E cases passed with real Knowledge integration enabled, including Analytics visibility and native CSV export; all 7 website cases passed. The native CSV test supplies its save path, so manual Save dialog interaction is not claimed. Independent reviews found no remaining blockers.

Verified tree: 4ce04019daff18cb5eb4949f8781676d9d48e41d. Final combined batch CI remains required before main landing.

Coven-Harness: Codex / GPT-6

Claude Code refuses Fable with "You're out of usage credits. Switch to
another model..." before running anything. Modex showed that as an
assistant bubble plus an "unknown" failure card and stopped.

Now, when the refusal arrives before any reply, tool or reasoning, the
runner reruns the turn on Opus in the same session, posts a warning
naming both models, and notes it on Auto's route receipt. Later Fable
turns start on Opus for an hour. A refusal after work started keeps its
failure card, so nothing runs twice. If Opus also fails, the card lists
the fallback under recovery.

The Claude backend drops the CLI's synthetic API-error reply, which the
failed result repeats. The classifier reads "out of usage credits" as
rate limited with its own summary. Settings > General can turn the
fallback off; it is on by default.

Coven-Harness: Claude Code / claude-opus-5-5
Exclude fallback notices from empty-reply detection and revise the open Auto route to the model that actually ran, without learning a user override. Verify cancellation and cooldown expiry. Include current main with the iPhone timing-budget fix.

Coven-Harness: Codex / GPT-6
Keep empty fallback replies retryable and record the actual Opus route without a false user override.

Coven-Harness: Codex / GPT-6
Build and full unit suites pass. Focused UI verification still encounters
intermittent native-show launch timeouts; preserved diagnostics show delayed
actual event delivery under high host load. Keep existing assertions intact
and require fresh CI before landing. Independent integration review cleared.

Coven-Harness: Codex / GPT-6
Each turn that calls a model, Auto or not, now adds one row to
app/usage.jsonl: tool, model, thread, project, account, and the turn's
input, cache reads and writes (summed over every call by UsageMeter) and
output. Prompts, files and replies are never recorded; costs stay null.
A ledger failure is logged and never changes the turn.

The rail's new Analytics icon opens the existing usage dashboard on
those rows. The dashboard keeps its own global styles, so it runs as a
separate document in a WorkspaceBrowser view served from
modex-analytics://app/ in an in-memory session, with the rows at
usage.json and every other request refused. Its Demo Data wording now
appears only in the standalone preview. Settings > General can hide the
icon; the Store app leaves Analytics out.

Coven-Harness: Claude Code / claude-opus-5-5
# Conflicts:
#	apps/desktop/src/renderer/App.tsx
#	apps/desktop/src/shared/types.ts
#	docs/status.md
Preserve the reviewed fallback fixes while integrating thread deletion and archive behavior. Cover pending credit refusal during owner-removal admission.

Coven-Harness: Codex / GPT-6
Tree-identical to the verified review head 2d05bc9; preserve original branch history for delivery.

Coven-Harness: Codex / GPT-6
Preserve the reviewed fallback, archive, and owner-removal behavior with the
landed Knowledge and Space changes. Independent integration review cleared.

Coven-Harness: Codex / GPT-6
Retain both reviewed status entries. Combined build and full unit suite pass. Local UI verification remains incomplete after native-show and test timeouts under extreme host load; preserve traces and require fresh CI.

Coven-Harness: Codex / GPT-6
Settings opens on Auto routing, so the rail option was never on screen.

Coven-Harness: Claude Code / claude-opus-5-5
Retry the menu opener once within its existing deadline, retaining the actual menu-item assertion and guarding delayed presentation. Cover ignored taps, delayed opening and deadline overruns.

Coven-Harness: Codex / GPT-6
Ignore delayed navigation completions after hide, disposal, or newer bounds. Cover the visibility races and reopening after a hidden load with deferred-browser regressions.

Coven-Harness: Codex / GPT-6
@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modex Ready Ready Preview Oct 15, 2026 6:26pm UTC

Request Review

Confine dashboard assets through directory components and keep valid usage records separate from a torn tail.

Coven-Harness: Codex / GPT-6
@BunsDev BunsDev changed the title Preserve Analytics hide requests while navigation is pending Fix Analytics visibility, CSV export, and data recovery Oct 15, 2026
@BunsDev BunsDev self-assigned this Oct 15, 2026
Base automatically changed from rail-analytics to main October 15, 2026 15:32
Preserve reviewed visibility, CSV export, ledger recovery and asset-path fixes alongside current main. Full build and unit tests pass; independent integration review is clear.

Coven-Harness: Codex / GPT-6
Preserve main Analytics and fallback behavior while retaining early native-window observation and paired iPhone menu recovery. Full build and unit tests pass; independent integration review is clear. Local desktop acceptance was interrupted after repeated native-show setup failures; fresh hosted acceptance remains required.

Coven-Harness: Codex / GPT-6
Preserve distinct native show and first-paint observations, require stable visible geometry, and close failed launches without masking errors. Integrate current worktree documentation.

Coven-Harness: Codex / GPT-6
The merge tree is identical to the verified native readiness tree.

Coven-Harness: Codex / GPT-6
Preserve the Analytics review fixes and current NotesStore source. Full build and unit suite passed.

Coven-Harness: Codex / GPT-6
Full build and unit suite passed. All 303 desktop E2E cases, including real Knowledge, and all 7 website cases passed.

Coven-Harness: Codex / GPT-6
@BunsDev

BunsDev commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

Landed on main in #243 (squash 4408c9c), which merged the reviewed release batch (#242, notes-final-review 9322bb2) into main for v0.1.0. Closing as landed.

@BunsDev BunsDev closed this Oct 15, 2026
@BunsDev
BunsDev deleted the review-analytics branch October 18, 2026 03:43

This branch was successfully deployed

1 active deployment
Preview — 8b59fab5 Deployed Oct 15, 2026 by vercel[bot]
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