Skip to content

v0.9.68: v2 api aliases, billing checkout hardening, mcp and security fixes - #10478

Merged
waleedlatif1 merged 12 commits into
mainfrom
staging
Nov 28, 2026
Merged

waleedlatif1 merged 12 commits into
mainfrom
staging

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

…or (#10469)

Enterprise is issued by the team with its own Stripe price and metadata. A self-serve upgrade
naming it wrote the plan onto a pending subscription row, which the Enterprise metadata
constraint rejected, and the caller got a 500. The checkout hook now refuses it with a 400
before taking the admission claim.
…on (#10470)

* fix(billing): tighten self-serve checkout and Enterprise reconciliation

- checkout refuses Enterprise in any casing, caller-supplied subscription metadata, and seat
  counts outside 1..1000; the Stripe plugin is no longer offered the Enterprise plan
- Enterprise reconciliation skips subscriptions created by self-serve checkout
- an organization checkout checks membership before any billing state
- the usage callback answers a failed internal auth with a constant message

* fix(billing): log a free payer's hosted-key refusal at info

A refused hosted key is the payer's plan, not a fault, and logging it at error hid real key
resolution failures among retry loops of expected refusals.
…r error logs, 409 on reused desktop requests (#10471)

- auth before-hook narrows body.email to a string before lowercasing, so a non-string email reaches Better Auth's body validation (400) instead of throwing a TypeError (500); the signup MX check uses the same narrowed value
- credential validators log at most 200 characters of an upstream error body, with control characters collapsed, through one helper shared by readProviderErrorSnippet and the JSON path in validators/http.ts
- preparing a desktop source-connect request with an id already in use throws OrchestrationError('conflict') (409) instead of a plain Error (500); the original request is kept
#10418 renamed public v2 names with no alias, and the v2 schemas reject
unknown keys and values, so clients written against the earlier names now
get 400s. Restore them as deprecated aliases at the contract layer:

- execute: run.source "manual" (now "draft") and run.entry.useMockPayload
  (now sample) are accepted and folded into the current names
- PUT state, POST operations, and the workflow/workspace source applies:
  ?dryRun (now ?dry) is accepted, and dryRun is sent beside dry in the
  response; the source-apply rate bucket honours it too, so a ?dryRun
  request is charged as a dry run

A request that sends both names with different values is refused. The
OpenAPI spec marks the old names deprecated, and the CLI generates no flag
for them.
* fix(mongodb): connect to exactly the validated host

validateDatabaseHost now refuses anything but a single hostname or IP literal before resolving it, so a seed list, userinfo, port, path or options can no longer pass the address check while the driver connects elsewhere. The MongoDB client builds its connection string from the validated host and port only, passes credentials, authSource and TLS as driver options, sets directConnection so server-advertised members are never followed, and validates the port and database name.

* fix(mongodb): measure the database name limit in bytes
…es not exist (#10474)

* fix(mcp): return 400 from test-connection when the server hostname does not exist

A hostname the resolver proves does not exist (ENOTFOUND) is the caller's
input, so test-connection now answers 400 with the same message. Transient
lookup failures (EAI_AGAIN, timeouts) keep returning 502. The classification
reuses isHostNotFound, matching the credential validators' site_not_found split.

* test(mcp): cover test-connection status for missing and transient DNS failures
* fix(mcp): name the reason on MCP route 400 log lines

* fix(mcp): log only the slice for MCP validation failures

* fix(mcp): pass a route context in the test-connection route tests
…rst (#10476)

* fix(copilot): block duplicate chat deletes and leave the open chat first

* fix(copilot): keep a deleting chat from auto-reopening and restore it on failure

* fix(copilot): prune drafts and invalidate from mutation variables, drop failure restore
@vercel

vercel Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Nov 28, 2026 12:41pm UTC

Request Review

@greptile-apps

greptile-apps Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · This PR appears safe to merge; no actionable new issues were found.RetriggerView in GreptileConfidence Score: 5/5

[High impact] This PR appears safe to merge; no actionable new issues were found.

Summary

This release restores older v2 API names and tightens checkout and outbound connection checks.

  • Older v2 workflow names still work alongside the current names.
  • Self-serve checkout blocks unsupported plans and request-supplied terms.
  • Database connections use one checked host instead of a host string with extra parts.
  • MCP connection checks return a client error for hostnames that do not exist.
  • MCP route logs now name why a request was refused.
  • Deleting a copilot chat leaves the open chat before the delete starts.
  • Pricing articles now explain Sim Pro's free trial and its card requirement.
  • Provider error snippets are shorter and cannot add control characters to logs.
  • Reused desktop connection requests now return a conflict response.
  • Embedding search tables start vacuuming after 2% churn.
  • Expected hosted-key plan refusals are logged as information instead of errors.

No actionable new issues were found. Review was based on source inspection; tests were not run.

Reviews (2) · Last reviewed commit: "fix(copilot): block duplicate chat delet..." · Reviewed by Greptile

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 61 files

This PR changes a public API contract. Ultrareviews find 2.4x more serious bugs than standard reviews. Comment @cubic-dev-ai ultrareview to run one.

Turn on auto-fix | Re-trigger cubic

…n integration test (#10479)

The rejected sign-in is audited with no resourceId, so the user-scoped afterEach cleanup missed it. The test now sends a unique user-agent, waits for its audit row, and deletes it in finally, matching the legacy-collision test in the same file.
…hat took its place (#10480)

* fix(copilot): reopen the chat when its delete fails, unless another chat took its place

The panel leaves the open chat before deleting it. A failed delete now reopens it, but only
if the workflow still has no selection, so a chat opened or started in the meantime is kept.

* fix(copilot): restore only when the user took no chat action since the delete

An empty selection doesn't prove the panel is idle: a message sent from the empty panel has no
chat id until its POST returns. Count select, new-chat and send actions instead, and reopen the
chat only if none happened while the delete was pending.

* fix(copilot): a chat already deleted elsewhere counts as deleted

The route returns 404 only when another request deleted the chat between its lookup and its
delete. Treat that like success, so the draft is pruned, the list refreshes, and the panel never
reopens a chat that no longer exists.

* fix(copilot): guard the delete restore on live panel state, not an action count

A count of panel actions misses selections that land later (a new chat whose create returns after
the delete) and sends that don't go through the panel's handlers. Restore only when the workflow
still has no selection and the panel holds no transcript and no send in flight.
@waleedlatif1
waleedlatif1 merged commit e6ad87b into main Nov 28, 2026
167 of 168 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 3c2f25e6 Deployed Nov 28, 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.

1 participant