Skip to content

Explain each 1Password fill error code in vault guidance - #282

Merged
rgarcia merged 5 commits into
mainfrom
hypeship/1pw-fill-guidance
Nov 23, 2026
Merged

rgarcia merged 5 commits into
mainfrom
hypeship/1pw-fill-guidance

Conversation

@rgarcia

@rgarcia rgarcia commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The 1pw_fill result came with the same guidance whatever 1Password returned. For autosubmitFailed it 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_code and 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.
  • Any other code: tell the owner and don't retry unchanged.

The 1pw_fill operation description in the item guidance gets the same rules.

Merge after kernel/kernel#5703 deploys. The guidance for noActiveGrant / credentialNotFound (invoke 1pw_create_access_request on the same credential) and invalidToken (Kernel already refreshed and filled once more) describes what #5703 does.

Review follow-ups:

  • integrationKeyInvalid: 1pw_disconnect on the credential_account, then connect_account on 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.
  • Unrecognized codes: the form may have been filled or submitted (#5703 returns them as fill_unknown).
  • Moved the Link/Shop Pay checkout comment back above the code it describes.

Testing

  • bun test (1335 pass), with new cases for autosubmitFailed, noActiveGrant, an unrecognized code, and no code
  • tsc --noEmit and prettier on changed files. No lint run: the repo has no ESLint config and bun run lint (next lint) fails on main.

@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
mcp Ready Ready Preview Nov 23, 2026 9:41pm UTC

Comment thread src/lib/mcp/vault-responses.ts Resolved

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread src/lib/mcp/vault-responses.ts Resolved
@rgarcia
rgarcia requested a review from bmsaadat November 23, 2026 16:54

@bmsaadat bmsaadat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve, with two notes that depend on #5703:

  • "create a new access request" for noActiveGrant / credentialNotFound only 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, suggest 1pw_disconnect, then connect_account on the same key. The same goes for integrationKeyInvalid'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.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ 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.

Comment thread src/lib/mcp/vault-responses.ts Resolved
…dance

# Conflicts:
#	src/lib/mcp/vault-responses.ts
@rgarcia
rgarcia merged commit b75aa4a into main Nov 23, 2026
10 checks passed
@rgarcia
rgarcia deleted the hypeship/1pw-fill-guidance branch November 23, 2026 21:43

This branch was successfully deployed

1 active deployment
Preview — a69d94b0 Deployed Nov 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants