fix(workhub): preserve topic identity and remote conversation continuity #6068
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 621 lines diff across 7 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.385
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #6068"
general
weight: 0.35
chinawch007
Summary
WorkHub could answer a follow-up such as “刚才到第几讲内容了?” in the right context but omit its work identity. Even a successful CS336 association lost its heading on an immediate WeChat reply. Modern tool-call transcripts could also leave delegated results without their originating remote chat.
nxtpagination. Keep one assistant voice across acknowledgments, execution, and returned results.Verification
npm run build:test,npm run typecheck,npm run lint, andnpm run format:check: passed.8603b3028, including all affected workspace tests, Runtime Host tests, and desktop E2E.e364f8afa): the three clearing-reason regressions failed with the stale SQL heading before the fix. Afterward all 161 Desktop WorkHub tests passed, including restart/paging, delivery deduplication, failed/mismatched receipts, cross-turn/chat isolation, and SQL-to-CS336 switching. Desktop main build, all four desktop typechecks, renderer architecture, changed-file lint, repository formatting, and diff checks passed.2192ba537): fold validated topic decisions in transcript order per turn, removing superseded topic links while retaining actual delegation/result links. Five defect reproductions failed before the fix; afterward all 167 Desktop WorkHub tests passed. Desktop main build, all four desktop typechecks, renderer architecture, changed-file lint, repository formatting, and diff checks passed.git diff --check, andnode scripts/protocol-epoch-check.mjs --base upstream/main: passed; no protocol epoch change required.Remote transport regression evidence (work name abbreviated in the fixture):
The new regression failed with the unprefixed reply before the fix and passed afterward. Full-repository tests and screenshot capture were not run; verification uses native accessibility state, durable runtime receipts, and transport output assertions.
AI use
Tool(s) and scope: OpenAI Codex implemented the changes, regression tests, and validation. The commit includes
Generated-by: OpenAI Codex.Checklist
Does this PR entail a change in behavior?