Repository navigation
Explain each 1Password fill error code in vault guidance - #282
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
bmsaadat
approved these changes
Nov 23, 2026
bmsaadat
left a comment
Contributor
There was a problem hiding this comment.
Approve, with two notes that depend on #5703:
- "create a new access request" for
noActiveGrant/credentialNotFoundonly works if #5703 moves the credential back to pending. If it doesn't, this should say to delete and recreate the credential, which the existing guidance already describes. invalidToken(account-linked): "fill again once" resends the same token unless the API forces a refresh. If #5703 doesn't add that, suggest1pw_disconnect, thenconnect_accounton the same key. The same goes forintegrationKeyInvalid's "reconnect".
Nits: the new map sits under the Link/Shop Pay checkout comment (vault-responses.ts:717), so that comment now labels the wrong code. extensionUnavailable (restart the browser) has no entry.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1499fa1. Configure here.
…dance # Conflicts: # src/lib/mcp/vault-responses.ts
This branch was successfully deployed
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.

Summary
The
1pw_fillresult came with the same guidance whatever 1Password returned. ForautosubmitFailedit said "inspect the page", and agents usually responded by requesting access again and refilling. Last week 53% retried within 30 minutes, 96% of those retries made a new approval request, and 68% failed the same way.Guidance now depends on
error_codeand follows 1Password's partner docs:autosubmitFailed: 1Password saw no progress for 10 seconds and cleared the fields. The approval is still valid, so don't request access again. Check the page; if the form is still showing, don't fill again, and ask the owner or use another sign-in method.noActiveGrant/credentialNotFound: request access again. These are the only codes that need a new approval.websiteMismatch,fillFailed,rateLimitExceeded,serviceUnavailable,networkError,invalidToken,integrationKeyInvalid,internal,noExistingCredentials: the documented next step for each.The
1pw_filloperation description in the item guidance gets the same rules.Merge after kernel/kernel#5703 deploys. The guidance for
noActiveGrant/credentialNotFound(invoke1pw_create_access_requeston the same credential) andinvalidToken(Kernel already refreshed and filled once more) describes what #5703 does.Review follow-ups:
integrationKeyInvalid:1pw_disconnecton the credential_account, thenconnect_accounton the same key.extensionUnavailable: create a new browser with the vault attached.fillFailed: the form may already have been submitted, so check the page first.fill_unknown).Testing
bun test(1335 pass), with new cases forautosubmitFailed,noActiveGrant, an unrecognized code, and no codetsc --noEmitand prettier on changed files. No lint run: the repo has no ESLint config andbun run lint(next lint) fails on main.