feat(account): add hosted allowance and secure OAuth return - #170
Merged
Conversation
HonQii
force-pushed
the
codex/hosted-account-ci
branch
from
August 14, 2026 06:51
8847b40 to
e0f0c85
Compare
HonQii
force-pushed
the
codex/hosted-account-ci
branch
from
August 14, 2026 08:20
8cacbd2 to
d99b0d1
Compare
# Conflicts: # design-docs/user-journeys.md
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.
What changed
Why
StashBase needs an open-source desktop client that can use either user-owned API credentials or a signed-in hosted allowance. The initial implementation did not make quota exhaustion authoritative across every semantic path and had callback/configuration edge cases that could retry exhausted work, focus the wrong window, or overwrite malformed configuration.
User impact
Signed-in users can use the included allowance without entering an API key. When it is exhausted, vector indexing and semantic search pause clearly, Exact search continues, and work resumes after reset. BYOK remains independently configurable. Browser sign-in returns to the window that initiated it and closes the callback only after native confirmation.
Validation
pnpm typecheckpnpm test:config(13 passed)pnpm test:renderer(254 passed)npm run test:electron(81 passed)pnpm test:conversion-scheduler(128 passed)pnpm test:python(27 passed)pnpm test:agent(104 passed)pnpm test:retrieval,pnpm test:library-files,pnpm test:mcppnpm test:docspnpm buildpnpm test:electron:smokepnpm test:e2e:smoke(5 passed)pnpm test:e2e:functional(28 passed)