Repository navigation
fix(auth): prevent credential session races and move OAuth ownership - #663
Merged
Merged
Conversation
Session expiry events now carry the credential fingerprint captured before dispatch, so a backend 401 that arrives after a credential replacement can no longer clear the newly stored session. The publisher suppresses both the bus event and the RPC auth-expired marker when the fingerprint no longer matches the current credential. Auto-committed-on: cuttlefish Co-authored-by: Medulla <medulla@tinyhumans.ai>
Update the vendored tinyagents submodule to the latest upstream commit. Auto-committed-on: cuttlefish Co-authored-by: Medulla <medulla@tinyhumans.ai>
Add sha2 to the tinyinference dependency set and pin tinyjuice-module back to 0.11.3, while advancing the vendored tinyvoice submodule to its new revision. Auto-committed-on: cuttlefish Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
This was referenced Oct 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #636
This moves provider OAuth acquisition, import, refresh, pending state, and controller wiring into
openhuman-tinyhumans, while keeping the existing RPC surface. It also prevents stale credential failures from invalidating a replacement session, rolls back failed credential scope rebinds, and serializes OAuth refresh and token rotation safely on current-thread runtimes.The TinyAgents gitlink includes request-time credential provenance fingerprints. TinyVoice is pinned to the compatible revision required by the current TinyAgents API.
Regression coverage includes stale session expiry and RPC suppression, failed credential rebind rollback, concurrent/current-thread OAuth refresh, refresh metadata preservation, disconnect failure propagation, and request-time credential fingerprint matching.
Verification: focused Rust regression suites,
cargo check, appcargo check, crate-chain and Rust layout checks passed. The layout check reports existing TinyChannels schema errors unrelated to this change. The upstream PR (tinyhumansai#8373) also passed coverage, AppImage RPATH, and PR checklist checks; its Markdown-link check reports two pre-existing stale links on both main and the epic base.