Gilad Resisi 2dee7f0be0 fix(refresh): only the scheduled refresh tolerates unrecognized errors
Tolerating unrecognized refresh errors everywhere meant a dead token on a
provider without a handleErrors override was never flagged: the refresh
that follows a rejected post went through the same code and stayed silent.

The refresh service now takes a tolerateUnknownErrors flag, off by default.
The refreshToken activity turns it on only when the calling workflow is
refreshTokenWorkflow, read from the activity context, so post workflows of
every version (including the still-running v1.0.1 runs that share this
activity) keep disconnecting after a rejected post.

Also add 'disconnect' to the optional handleErrors interface type, which the
base class returns since this branch was opened.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-23 10:13:36 +07:00
..
2026-01-05 11:35:15 +07:00
2026-01-05 11:35:15 +07:00
2026-01-05 11:35:15 +07:00
2026-01-05 11:35:15 +07:00
2026-01-05 11:35:15 +07:00
2026-01-05 11:35:15 +07:00