Use Flaps for app and region lookups that only read Flaps-available f… - #5182
Merged
lillianberryfly merged 2 commits intoSep 8, 2026
Merged
Conversation
lillianberryfly
force-pushed
the
lillian/flaps-drop-in-replacements
branch
from
September 7, 2026 18:49
7f709c6 to
2f313e7
Compare
lillianberryfly
force-pushed
the
lillian/flaps-drop-in-replacements
branch
from
September 8, 2026 14:55
2f313e7 to
23489b0
Compare
…ields
Many commands fetched an app through the GraphQL GetAppCompact or
GetAppBasic queries but only read the name, organization slug, network,
or Postgres role, all of which the Flaps GET /apps/{name} endpoint
returns. Switch those callers to the Flaps client, and add a small
flapsutil.IsPostgresApp helper for the app_role check.
Regions move to the Flaps /platform/regions endpoint everywhere,
including the cached list in the prompt package. It returns the same
fly.Region type plus the nearest region code, so the nearest-region
lookup for unattached volumes uses it too.
Org-scoped app completion lists apps through Flaps by org slug, and the
launch Postgres planner checks for an existing database app with one
Flaps lookup instead of listing every visible app.
Callers that feed the app or org GraphQL ID into a mutation, such as
SSH certificate issuance through flypg, stay on GraphQL.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DMttEkUAVhL7YZFRFjhHwB
Use apps.BuildContextForApp and flapsutil.NetworkName at every site that opens an agent tunnel from a Flaps app, so apps on the org's default network get the empty network name the WireGuard API expects. tokens list compares the Flaps org slug against both the raw slug and the "personal" alias of the selected org. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DMttEkUAVhL7YZFRFjhHwB
lillianberryfly
force-pushed
the
lillian/flaps-drop-in-replacements
branch
from
September 8, 2026 16:17
23489b0 to
e17a506
Compare
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.
…ields
Many commands fetched an app through the GraphQL GetAppCompact or GetAppBasic queries but only read the name, organization slug, network, or Postgres role, all of which the Flaps GET /apps/{name} endpoint returns. Switch those callers to the Flaps client, and add a small flapsutil.IsPostgresApp helper for the app_role check.
Regions move to the Flaps /platform/regions endpoint everywhere, including the cached list in the prompt package. It returns the same fly.Region type plus the nearest region code, so the nearest-region lookup for unattached volumes uses it too.
Org-scoped app completion lists apps through Flaps by org slug, and the launch Postgres planner checks for an existing database app with one Flaps lookup instead of listing every visible app.
Callers that feed the app or org GraphQL ID into a mutation, such as SSH certificate issuance through flypg, stay on GraphQL.
Claude-Session: https://claude.ai/code/session_01DMttEkUAVhL7YZFRFjhHwB