Repository navigation
[WRONG BRANCH] fork: survive first Fork Upstream Sync run - #5
Merged
Merged
Conversation
Skip preview tags that are not on upstream/main, treat a vendor pin that already contains the release as current, bootstrap missing vendor branches, and keep coordinators running if the issue notifier fails. Co-authored-by: Cursor <[email protected]>
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Its title has been prefixed with |
yansigit
marked this pull request as ready for review
August 22, 2026 18:23
yansigit
pushed a commit
that referenced
this pull request
Sep 16, 2026
…idge-jun#4547) parseCatalogBuffer had arms for ClientModelConfig fields 1, 4, 18 and 22 and no default, so field 5 (supports_images) was dropped by omission. Carry it on ModelCatalogEntry as an optional boolean: a present true asserts text+image support, a present false asserts text-only, and an omitted field stays unknown. It deliberately does not copy the disabled pattern, which defaults to false — collapsing unknown into text-only was the lidge-jun#1796 regression, and antigravity-models.ts already implements the same tri-state for its discovered catalog. The header schema comment gains the #5 row and the #18 row it never listed, and its verification claim now says which fields came from the bundled extension.js, which from a live catalog dump, and which from the public WindsurfAPI documentation. The owning structure doc records the catalog pre-flight contract. Propagation of the flag to the client catalog is a separate change.
yansigit
pushed a commit
that referenced
this pull request
Sep 16, 2026
…og (lidge-jun#4556) Round 1 made the Devin catalog parser preserve ClientModelConfig field #5 as a tri-state on ModelCatalogEntry; the flag stopped at the cache. Carry it through: fetchDevinUsableModels now votes per base across the rows that collapse into it and returns inputModalities, and the Devin branch of provider-fetch spreads that value before catalogHintsFromProviderConfig, so exact modelCapabilities declarations, the legacy modelInputModalities record and the vision-sidecar rewrite keep precedence and the live value survives only when none of them applies. Collapse policy, pinned with the round-1 lidge-jun#1796 precedent: rows that never asserted field #5 abstain, so one unsuffixed unknown row cannot poison a base whose effort variants were measured image-capable; unanimous measured rows advertise ["text"] or ["text","image"]; measured disagreement advertises nothing, because a single measured false is not outvoted by its siblings. The accepted mismatch is documented in code: resolveWireModelUid prefers the plain UID when the catalog lists it, so a variant-measured image base can route a no-effort request to an unasserted plain row. Tests: a new devin-live-models suite seeds the cache through the real parser via a setCachedCatalogForTests seam and covers the collapse matrix (disabled and MODEL_* rows proven non-voters by behavior) plus five fetchProviderModels advertised-catalog cases locking the hint precedence, including the existing sidecar path for exact text-only declarations. Layout registries name the new file; structure/catalog.md and structure/adapters/registry.md record the contract.
cursor Bot
pushed a commit
that referenced
this pull request
Oct 12, 2026
…ge-jun#6090) (lidge-jun#6173) * feat(quota): report Devin account quota from GetUserStatus Devin accounts had no quota row, so headroom-based account ranking had nothing to order them by. Probe Cognition's unary SeatManagementService/GetUserStatus with the default cloud-direct Metadata, against the credential's allowlisted api-server host with redirects refused and no response body echoed. Only dated daily/weekly windows the plan does not hide are published: credit-billed plans leave those percents at a zero default that would read as exhausted. Prompt plus flex credits form one monthly pool measured against the server balance; a negative balance is unlimited. 4xx other than 408/429 is terminal; a decoded status with nothing measurable is authoritative-empty. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit b493e0d) * fix(quota): tighten Devin quota mapping and failure handling - Publish the credit pool only for credit-billed plans (or an unknown strategy with no dated window); a quota-billed plan with a zero credit balance no longer reads monthly-exhausted. - Drop dated windows whose reset is not after now. - Read the body through the bounded byte reader and decode inside the try, so a truncated or oversized body keeps last-good instead of throwing. - Treat 409 and 499 as retryable alongside 408 and 429. - Cover flow credits (#5/#9/#13), hide_weekly (#37), and 403/404/429. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 7d12eb1) * fix(quota): reject truncated Devin quota protobufs and document the probe - Require the decoded fields to account for every byte. iterFields stops quietly at a truncated length-delimited field, so half a response decoded to an empty status and was published as authoritative-empty, deleting the last-good row. - Use the Web Crypto randomUUID instead of node:crypto. - List Devin in the per-account quota section of the CLI accounts reference. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit a71f149) * fix(quota): stop flow credits gating Devin accounts; key the cache by tenant host - Flow credits are decoded but no longer published. They meter agent tool actions, not chat turns, and ranking reads the fullest custom window as the account's limit, so an empty flow balance retired accounts that could still serve. - A credit-billed plan with nothing used and nothing left reads 100% instead of unmeasured, so ranking no longer prefers it as untested. - The account quota identity includes the credential's own api base URL when it has one, so a tenant host change invalidates the cached reading. Credentials without one keep their existing key. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 9e23686) * fix(quota): reject a Devin status with no plan or a malformed plan-end timestamp - A present plan-end timestamp that fails to decode now fails the whole status instead of reading as absent, so a malformed response keeps the last-good row rather than publishing an authoritative-empty one. - A status with neither the top-level PlanInfo nor the nested PlanStatus plan is rejected instead of decoded into a zero-valued plan, which could read as a credit-billed account with every credit spent. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 52d9b62) * fix(devin): reject malformed quota statuses and preserve last-good Validate known protobuf wire types and 64-bit varint bounds before quota mapping. Require observed prompt balances for a monthly window, treat only credential rejection as terminal, and scope tenant host cache identity to Devin. Update the provider contract and regression coverage. Co-authored-by: Sayo <[email protected]> * fix(quota): count a lone Devin balance field as credit evidence GetUserStatus is proto3, which omits zero-valued fields, so an exhausted pool arrives with used_prompt and no available_prompt. Requiring both fields hid that account's 100% monthly window and ranked it as untested headroom. Any of the four pooled balance fields (#4, #6, #7, #8) is now evidence; only a status with none of them publishes no credit window. Co-authored-by: Sayo <[email protected]> * fix(quota): keep last-good Devin quota on a GetUserStatus 403 A 403 from GetUserStatus can forbid that one RPC for a key that still serves chat, so treating it as a rejected credential cleared a usable account's quota. Only 401 is terminal now. The structure and CLI reference describe the balance-evidence rule as shipped: any one of the pooled balance fields counts. Co-authored-by: Sayo <[email protected]> * fix(quota): honor configured Devin tenant for legacy credentials Co-authored-by: Sayo <[email protected]> * fix(quota): keep expired Devin windows out of credit fallback Co-authored-by: Sayo <[email protected]> * fix(quota): enforce one Devin probe deadline Co-authored-by: Sayo <[email protected]> * fix(quota): reject negative Devin used credits Co-authored-by: Sayo <[email protected]> --------- Co-authored-by: Sayo <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.
Summary
vendor/main/vendor/devwere missing on the fork. Those pins are now published; the workflow also bootstraps them from upstream if they are absent.v2.31.0-preview.*as latest even though it is not onupstream/main. Stable tags onmainwin; a vendor pin that already contains the release isalready-current.emitstill starts coordinators if the GitHub issue notifier fails. Issues were disabled on this fork and are now enabled.Verification
bun test tests/fork/sync-cli.test.ts tests/fork/sync-detect.test.ts tests/fork/sync-generic-cli.test.ts tests/fork/sync-generic-http.test.ts tests/fork/sync-notify.test.ts tests/fork/sync-pin.test.ts tests/fork/sync-webhook.test.ts tests/fork/sync-workflow.test.ts— 43 passChecklist