Repository navigation
chore: merge train 20261106-1304 - #5408
Merged
Merged
Conversation
A PNG still over 2 MiB after the composer compressed it never reached the model: the composer capped its longer side at 2048 px and kept it a PNG, which hardly shrinks a detailed picture (a scan, a photo, a busy screenshot), and the server sent any image over its 2 MiB inline bound as its text surface, `[attachment: <name>]`. The model answered that it could not read the image, and nothing told the sender why. The composer now checks its redraw against the largest image a model is shown (CHAT_IMAGE_MODEL_MAX_SIZE, the server's bound, now one constant) and steps down until it fits: a picture with no transparent pixel becomes a JPEG at a lower quality, then at a smaller size; one with transparency stays a PNG at smaller sizes first and is drawn on white as a JPEG only when no PNG size fits. Every JPEG is drawn on white, so a transparent WebP no longer turns black. An image whose first redraw already fits is uploaded as before. The upload carries the type of the bytes it sends: a redrawn image kept the type it was picked with, so a JPEG made from a PNG (as from a WebP before) was stored and sent to the model as image/png, which a provider that checks the bytes refuses. The model wire labels an image by what its bytes are, which also mends the ones stored that way before. An image the composer cannot fit (an animated GIF, which it never redraws, or one the browser cannot decode) is named under the staged chips before the send. On the model wire such an image, and one that cannot be read, reads as its name and the reason, for example `[attachment: scan.png — not sent to you: the image is 3.30 MB, over the 2 MB limit for one image]`, so the reply can tell the sender. The REST send carries no images and task agents read attachments as files, so the composer is the one path that puts images into a model request. Only the chat composer asks for the fit, and not in a sandbox thread: a task's files, which an agent reads as files, are redrawn as before and nothing more. An original already within the limit is never stepped down, and is kept when its redraw comes out no smaller. The chat attachments guide (en, de, fr), the manual box CHAT-AT16 and its automation row describe it. Closes #5396
An acceptance requirement asks that admins can revoke the personal access tokens that reach their organization. On the stable line they could only see them: All keys in this organization lists a member's own key read-only, since only its holder can end it. An Owner or Admin can now block a member's personal API key in this organization only, from the member's row in Settings > Members (Personal API keys). The key's requests here are refused with 403 API_KEY_BLOCKED on the REST routes, the MCP server and the model endpoints alike, which all sit behind the one /api/v1 door; the answer lists the organizations where the key still works (the model endpoints answer the code in their own error shape, without the list). The block does not reach the holder's other organizations, and the holder keeps the key. The same roles lift the block. An Admin cannot block an Owner's key or lift its block, an Owner can do both on anyone's, nobody blocks their own key (API_KEY_BLOCK_FORBIDDEN), and a key bound to an organization, the one a member made after single sign-on included, is ended, not blocked (API_KEY_NOT_FOUND). The holder's role is read in the serializable transaction that writes the block. Each block and each lift is one audit row (api_key.blocked, api_key.unblocked) naming the actor and the key by its masked ends; repeating either records nothing. The holder hears of each in the bell, and their own key list marks the key blocked in this organization. The admins' dialog lists only the member's keys that are still valid, and never their last use. All keys in this organization now leaves out another member's own key blocked here, which stays in that member's dialog where the block is lifted, and keeps the viewer's own blocked key with its mark. GET /api/app/api-keys/members/:userId/personal and PUT/DELETE /api/app/api-keys/:keyId/block serve it. This ports the feature line's f5ce781, with 420f420's export cleanup and the block rules of 3243a4e's listing, and keeps its files and structure so the feature line reconciles with it. It leaves out the feature line's switch for members' personal keys: no setting, no notice about it, no refused state in the dialog, and the refusal lists every organization of the holder that has not blocked the key. Blocks live in app.api_key_org_blocks, migration 0231, byte-identical to the feature line's: the lines share migration numbers, the file creates one table and one index and needs nothing the feature line's 0221 to 0230 create, and a v0.5.101 database, which has 0235 to 0238, applies it on upgrade. The REST contract goes to 3.53.0, with the OpenAPI document, both contract fingerprints and the MCP skill snapshot regenerated. APIKEY-R8 and the new APIKEY-R11, docs/{en,de,fr}/platform/admin/ api-keys.md, the manual boxes SET-F103 and SET-B48, SET-F112, the automation register and the error-code reference say so. Closes #5397
Contributor
Author
|
Release lease: v0.5.102
State at acquisition:
Next: the gate once the seven runs finish, then the |
Contributor
Author
|
Release lease released: v0.5.102 is published
Receipt (RELEASING.md, "A release that has to go out", step 4):
Holds, read again before the tag at 14:09 UTC:
Other checks:
A published version is not a deployment; Ops adopts it with its release adopter. |
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.
Cut: 663f6fd
The stable line's merge train for v0.5.102: two fixes the owner asked for today, after re-checking a customer acceptance list against v0.5.101, and their release notes. It departs ahead of its 8-hour slot because the owner asked for this release today.
Commits:
882564b0bfix(platform): fit a large picture under what a model is shown (closes bug(platform): a PNG still over 2 MiB after the composer's compression never reaches the model, and the sender is not told #5396). A PNG still over 2 MiB after the composer compressed it never reached the model (the server's inline bound), and nothing told the sender. The chat composer now steps a redraw down until it fits the 2 MiB a model is shown (CHAT_IMAGE_MODEL_MAX_SIZE, now the one constant both sides read): a picture without transparency becomes a JPEG at a lower quality, then a smaller size; one with transparency stays a PNG at smaller sizes first. An original already within the limit is never stepped down, and a task's files and a sandbox thread's are only redrawn, as before. An image the composer cannot fit (an animated GIF) is named under the staged chips; on the model wire such an image, or an unreadable one, reads as its name and the reason. The upload, its metadata and the attachment now carry the type of the bytes sent (a converted image kept its picked type: JPEG bytes labelledimage/pngorimage/webp), and the wire labels an image by its bytes, which also mends rows stored that way.80ca60f07fix(platform): let admins block a member's personal API key here (closes feat(platform): bring #5217 to the stable line — an Admin can block a member's personal API key in their organization #5397). The feature line's feat(platform): let admins block a member's personal API key in their organization only #5217 (f5ce781bc), ported without feat(platform): let an organization refuse members' personal API keys #5218's switch for members' personal keys: an Owner or Admin blocks a member's own key in this organization only (Settings › Members › Personal API keys); the/api/v1door refuses it there with 403API_KEY_BLOCKED(REST, MCP and both model endpoints), listing where it still works. Migration0231_api_key_org_blocks.sql, byte-identical to the feature line's (the lines share numbers); API contract 3.53.0. It also fixes the holder's "Blocked in this organization" mark, which ran over the next column (a browser test holds it, in en, de and fr).663f6fd00docs: write the v0.5.102 release notes, last, so that the rebase merge's merge commit is the release candidate.Checked before departure (locally, on this tree):
format:check,lint:conflicts,lint:links,lint:manual,turbo lint typecheck build,knip:check, platform server + pii (92,437 tests),test:ui(9,469/9,469),test:browser(748/749; the one red isautomation-editor.browser.test.tsx"readable in dark", load-dependent, 27/27 alone), docs tests and prerender.format:check,lint:manual,turbo lint typecheck,knip:check, the platform build,test:ui(9,470/9,471; the one red isversion-compare-page.test.tsx, load-dependent, 16/16 alone and red the same way on a cleanmainunder load), and both new browser tests.backend:integrationwithITEST_REQUIRE_ALL_LANES=1, its own MinIO and throwaway databases: 2412/2412 checks across 296/296 lanes.API_KEY_BLOCKEDin that organization on REST, MCP,/openaiand/anthropic(each in its own shape) and kept working in her other one; audit rowsapi_key.blocked/api_key.unblocked; both bell notices reached the holder; lifting worked; an Admin got 403 on the Owner's key and on their own.API_KEY_BLOCKEDstill list an organization that blocked the key (bug(platform): a blocked API key's other refusals still list the organization that blocked it #5405), and an Admin can lift a block an Owner placed on another member's key (Decision: may an Admin lift a block an Owner placed on another member's API key? #5406). The feature line's next rebase has to keep the stable port's badge fix and box wording (chore(release/0.6): reconcile the stable line's port of #5217 at the next rebase #5407).bun tools/cli/scripts/release-notes.ts --version v0.5.102validates (migration0231_api_key_org_blocks.sql; API contract 3.52.0 → 3.53.0).It rebase-merges when green (auto-merge). While it is open, no other stable-line train departs. After it lands, v0.5.102 is validated and tagged from the merge commit of the notes commit.