Commit 912c366
@
fix(feishu-adapter): address review findings for approval card safety and error visibility
- Move interruptSessionRuns after bindThenRun success, so old runs survive
when the new run fails authentication/bind/submission.
- Gate permission fallback remap on explicit request-not-found error,
preventing transient RPC failures from targeting the wrong request.
- Re-derive next pending request under lock after the 1.2s approval
display delay, avoiding stale snapshot overwrites.
- Prioritize runPermissionActiveRequest in lookupPendingPermissionByCard
so the fallback matches what is actually shown on the card.
- Let extractUserVisibleErrorText read envelope.message directly as a
fallback, matching the bootstrap run_error payload shape {code,message}.
- Finalize historical permission cards on terminal run events so stale
approval cards converge to a resolved state.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@1 parent a4fe834 commit 912c366
2 files changed
Lines changed: 264 additions & 62 deletions
0 commit comments