Skip to content

release 0710#770

Merged
meta-d merged 6 commits into
mainfrom
develop
Jul 10, 2026
Merged

release 0710#770
meta-d merged 6 commits into
mainfrom
develop

Conversation

@tiven-w

@tiven-w tiven-w commented Jul 10, 2026

Copy link
Copy Markdown
Member

PR

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Tip

Close issue syntax: Fixes #<issue number> or Resolves #<issue number>, see documentation for more details.

Checklist

Please note: ✅ we will close your PR without comment if you do not check the boxes above and provide ALL requested information.


@tiven-w tiven-w requested a review from meta-d July 10, 2026 10:21
@meta-d meta-d merged commit 550fca8 into main Jul 10, 2026
4 checks passed

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f48e79a85c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

threadId,
copilotId
})
if (!usesOrganizationCredentials(copilot, organizationId)) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Use hydrated provider when skipping membership usage

When a tenant-global copilot is selected with an organization-visible provider, input.copilot carries that org provider, but this handler reloads the copilot by id through CopilotGetOneQuery, whose handler ignores organization visibility. In that case this new guard evaluates against the tenant provider instead, calls recordUsage, and org-funded calls that passed CopilotCheckLimitHandler can still consume or fail membership points. The guard needs to use the already-hydrated copilot/provider or reload through the same visible-provider path.

Useful? React with 👍 / 👎.

: { ...baseWhere, organizationId: IsNull() },
relations: resolvedRelations
})
const hydratedItems = await this.hydrateVisibleModelProviders(items, tenantId, organizationId ?? null)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Avoid shadowing tenant providers with incomplete org overrides

Passing the request organization into hydration makes findVisibleByCopilotIds prefer any organization provider row over the tenant provider. For users whose membership access resolves to the tenant scope, an incomplete or invalid org override for a tenant-global copilot now shadows the valid tenant credentials; the later filter still keeps the copilot because its organizationId matches tenant access (null), so callers receive an unusable provider. Only select the org provider here when it actually satisfies usesOrganizationCredentials, otherwise keep the tenant-scoped provider selected by access.

Useful? React with 👍 / 👎.

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.

3 participants