Skip to content

vercel-ai-sdk: delete stored installations when the app is uninstalled #326

Backlog

Description

@zimeg

Summary

The vercel-ai-sdk/ app saves each OAuth installation to Vercel Blob, but nothing removes it again. BlobInstallationStore.async_delete_installation() and async_delete_bot() exist and are tested, yet nothing calls them, and the manifest doesn't subscribe to app_uninstalled or tokens_revoked. So when a workspace uninstalls the app or revokes a token, the bot and user tokens stay in Blob.

Options

  • Subscribe to app_uninstalled and tokens_revoked in manifest.json, then call app.enable_token_revocation_listeners() in app_vercel.py. Bolt's built-in listeners then call the installation store's delete methods.
  • Or add those two listeners by hand, if the built-in ones don't fit the lazy listener runner on Vercel.

The same store is copied into slack-samples/bolt-python-support-agent (#343), so a fix here should be ported there too.

Activity

  1. added
    enhancement
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions