McpSessionRegistry minted a per-thread MCP bearer credential once at
provider-session start with a hard 8h maximum lifetime and no refresh
path. The token is handed to the agent process as a static header, so
once the absolute cap passed, the still-healthy session's MCP calls
started failing 401 with no way to recover short of a manual
re-authorization (observed 2026-07-03: "t3-code requires
re-authorization (token expired)" mid-session).
Have `resolve()` transparently slide a credential's expiry forward on
every authenticated use, so actively-used sessions never approach the
cap, and bump the default cap itself to 30 days (matching
SessionStore's browser-session TTL) since the credential is already
tightly scoped and explicitly revoked on session stop/error/shutdown.
The existing 30-minute idle timeout still reclaims credentials for
threads that go truly quiet.
Co-Authored-By: Claude Fable 5 <[email protected]>