Repository navigation
Conversation
Signed-off-by: Codex <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d5201a602f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (!record.disposition.pending) { | ||
| this.reconcileWorkerResults(key, record.disposition); | ||
| continue; |
There was a problem hiding this comment.
Reconcile surviving receipts before skipping legacy-seen signals
If hub.db is restored to before intake while lark-cursors.json and lark-worker-receipts.db survive, collect() finds the source in seen and inserts a non-pending router/legacy-seen record. This branch then skips delivery reconciliation, and reconcileWorkerResults() immediately returns because that record has no workerStates. For a previously queued delivery, the in-memory queue is gone and the surviving queued receipt is never resumed, silently losing the message; started attempts likewise never acquire the promised unconfirmed state or original matter association. Consult surviving receiver receipts before treating a cursor-only source as legacy history.
Useful? React with 👍 / 👎.
Signed-off-by: Codex <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 427d64ceec
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| <time>{formatDateTime(signal.at, { month: 'numeric', day: 'numeric', hour: '2-digit', minute: '2-digit' })}</time> | ||
| <span className="desk-signal-summary" title={summary}>{summary}</span> | ||
| <span className="desk-signal-where" title={signalDestination(signal.disposition)}>{signalDestination(signal.disposition)}</span> | ||
| <span className="desk-signal-where" title={destination}>{destination}</span> |
There was a problem hiding this comment.
Surface unconfirmed deliveries outside collapsed source history
When recovery leaves a delivery unconfirmed (for example, after restoring hub.db without the original turn evidence), the new receiver deliberately suppresses both Worker dispatch and Router fallback, so the owner must review the outcome. However, this label is rendered only inside MatterSignalList's open branch: the component starts closed, fetches signals only on expansion, and its collapsed control shows no unresolved-delivery indicator. Inspection of the web consumers found no other projection of these Worker states. Consequently, an interrupted delivery looks normal unless the owner happens to inspect its source history. Surface a compact unresolved-delivery indicator in the matter overview while keeping the detailed history lazy; the scoped UI guidance explicitly requires errors and pending decisions to remain directly visible.
AGENTS.md reference: apps/workbench/AGENTS.md:L19-L19
Useful? React with 👍 / 👎.
Goal and delivered outcome
Workbench could start a second Worker turn for a Lark message when the first Worker received it and the Hub exited before recording the delivery. On the parent revision, replay sent the same source twice to one matter. If a newer thread had been linked in the meantime, the second copy could go to that thread.
The receiver now binds the source ID and subscribed matter to the original work thread, turn, and private account scope before native dispatch. Replaying a completed turn repairs the sender's record. An unresolved attempt stays visible on the matter without waking the Worker or the Router. A distinct message with the same text can still start its own turn.
Review follow-up
The P2 review identified a restored Hub with two surviving records: the Lark cursor remembers the source and the independent receiver remembers a queued or started Worker turn. At the original head both new recovery cases failed. The follow-up resumes only the original queued target. For a started attempt without turn evidence, it restores the original matter association and displays the uncertain result without another host call. A later subscriber receives fresh sources only.
427d64ceec3293ce2dd297b334d4df97b360db38Author declaration
docs/product/use-cases/office-operations/personal-follow-through.zh-CN.mdat the tested revision.LarkChannel.receive,Store.signalWorkerReceiptslark-worker-recovery.test.tsThreadManager.startTurn,Store.acceptWorkerSignalreconcileWorkerResults,MatterSignalsScope and continuation
This covers direct delivery to an existing subscribed matter. The receiver keeps attempt metadata in
lark-worker-receipts.db, independently of the Hub's turn history. Recovery after restoring both databases together and the Worker's later external business effects require separate evidence. The personal Router's intake and Todo-proposal path is tracked separately. Related PR #9712Validation
d5201a602f3ee273c50a38990740b5036559b314lean regression/WorkbenchWorkerDelivery.lean. The model assumes the independent receiver record survives.Frontend / visual evidence
Narrow viewport, dark theme
Boundary
This DCO-signed bug fix covers the Workbench Lark integration, its source-list status, tests, and operator documentation. The standard premerge check passed on the submitted commit. No paired RFC changed.