fix(desktop): preserve cached replies and repair CI gates #6129
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.45) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 446 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.365
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #6129"
general
weight: 0.35
chinawch007
Summary
Preserve completed replies in the local transcript cache when a normal Session catalog update lands before a coalesced cache write. The global database revision fence discarded that write, leaving offline history without the reply. Keep coalescing and cancel pending writes at the existing service boundary when a Session or authority is actually removed. Catalog reconciliation returns its transaction's actual deleted Session IDs so the service cancels only those pending snapshots, without duplicating the deletion rule.
Restore two stale CI ledgers: the production dependency list omits
marked@18.0.11, which Host-side image parsing needs, and AppShell's recorded token count still predates its reduction from 7285 to 7280.Stabilize two existing tests that also failed in recent CI runs:
Refs #5455, #5969.
Verification
npm run check:artifact-budgetwith 242 package instances. Install usednpm ci --ignore-scriptsbecause the check reads the dependency tree.origin/main --strict-base.npm run format,npm run lint,npx knip --workspace apps/desktop, andgit diff --checkpassed.AI use
Tool(s) and scope: Codex investigated CI failures, fixed cache invalidation, refreshed the ledgers, simplified asynchronous test fixtures, and ran verification.
Checklist
Does this PR entail a change in behavior?