Skip to content

feat(cli): the console's frame-src names the storage origin a PDF preview frames, and nothing wider - #36565

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-36443-csp-frame-storage
Nov 23, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-36443-csp-frame-storage

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread
Fixes #36443
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用 S3 类对象存储的部署上,控制台页面现在允许在对话框里内嵌显示存储桶上的 PDF,部署文档写明了存储桶要配的跨域规则;本地存储的部署用户无感。
  • 为页内附件预览做准备(附件预览的服务端半边),替界面那张预览卡扫清浏览器安全策略的拦截。
  • 若出错,最坏是 PDF 在页内显示不出来、只能新标签页打开;改动只放宽到存储桶这一个来源,可整体撤回。
  • 要你做的:无。

What changes

packages/cli/src/utils/console.ts, the Console document's content-security-policy:

  • frame-src now names the storage origin beside 'self' when the deployment stores files in S3 or an S3-compatible store. It is the one value connect-src already names for presigned uploads (readStorageUploadOrigin, read per document). The S3 adapter signs its download links (getPresignedDownload, behind mintDownloadUrl) with the same client options for the same bucket, so the signed GET the preview frames carries that origin; a test asserts the equality against real signed links.
  • Nothing wider: never the operator's OS_CONSOLE_CSP_CONNECT_SRC hosts, never a scheme or wildcard. With local storage, or when the storage service cannot name its origin, frame-src is written exactly as before: absent (left to default-src 'self'), or 'self' plus the Turnstile frame while that challenge is on. With Turnstile and S3 both on: frame-src 'self' https://challenges.cloudflare.com STORE_ORIGIN.
  • The storage service's answer is now accepted only as an exact http(s) origin (it was any connect-src source shape). One value feeds both directives, so a scheme-only, wildcard, path or WebSocket answer is left out of both and reported once at warn. The adapters that ship answer URL.origin, so no deployment changes.
  • The once-per-process warning for an unreadable storage origin now says a PDF preview cannot be framed (the new tab still works), and that OS_CONSOLE_CSP_CONNECT_SRC restores uploads only.

content/docs/deployment/self-hosting.mdx, after the "Uploads need S3" paragraph: the bucket CORS rule browser uploads and file previews need. AllowedOrigins is the Console's exact public origin, never *; AllowedMethods GET, HEAD, PUT; AllowedHeaders content-type (or *); ExposeHeaders Content-Length, Content-Type, Content-Disposition, ETag; MaxAgeSeconds 3000. It says why a text or CSV preview needs the rule (a GET from the page) and a PDF frame does not, and that without it the preview falls back to opening the file in a new tab. The generated content/docs/references/system/object-storage.mdx is untouched.

Read first, by risk: consoleContentSecurityPolicy (the frameSrc block), readStorageUploadOrigin (the STORAGE_ORIGIN check), then the new describe in console.content-security-policy.test.ts.

Two-minute check: pnpm --filter @objectstack/cli exec vitest run --project unit src/utils/console.content-security-policy.test.ts -t 'frame-src names the storage origin' shows 11 passing cases.

Tests

New top-level describe in the shared harness src/utils/console.content-security-policy.test.ts (real plugin, real Hono app, real StorageServicePlugin):

  • local storage: no frame-src, default-src 'self';
  • R2: frame-src is exactly 'self' plus the bucket origin;
  • for four S3 shapes (R2 virtual-hosted, AWS regional, dotted bucket name, MinIO on http://127.0.0.1:9000): the extra source equals the origin of a real signed download link for a PDF;
  • Turnstile plus S3: 'self', the Turnstile origin, the store origin, nothing more;
  • OS_CONSOLE_CSP_CONNECT_SRC hosts (including a bare https:) never reach frame-src;
  • a presigner that refuses the endpoint, and fake answers https:, https://*.example.com, a path, wss: and a number: neither directive widens, one warning.

Acceptance notes

  • The bucket CORS rule lives in the hand-written deployment page, not in content/docs/references/system/object-storage.mdx, which build-docs.ts generates and must not be hand-edited (surface amended on the card).
  • Framing a PDF needs no bucket CORS (a frame navigation is not a CORS request); reading a text or CSV file from the page with a GET does, and so do the existing browser uploads (PUT).
  • StorageServicePluginOptions.s3 does not accept forcePathStyle, though S3StorageAdapter does; a path-style case was therefore dropped from the signed-link test. Observation only, not filed.
  • Open fix(service-storage)!: stored bytes outside the inline allow-list are served as attachments, with nosniff and a sandbox CSP #36518 answers stored bytes with a sandbox CSP and nosniff and keeps PDF inline. Measured in Chromium (below), a PDF served with that sandbox header still mounts the browser's PDF viewer inside the frame.

Verification

Real Chromium: a cross-origin PDF in an iframe, before and after the frame-src change
before | csp frame-src: (none) | store requests: 0 | frames: ["http://localhost:34597/","chrome-error://chromewebdata/"]
after  | csp frame-src: frame-src 'self' http://127.0.0.1:37259 | store requests: 2 | frames: [..., "http://127.0.0.1:37259/c.pdf","chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/index.html", ...]
with the sandbox CSP of #36518 on the PDF response, after: same frames, the PDF viewer extension mounts
Ablation 1: delete the frame-src storage push
ablation-replace: ok mutation landed: anchor 1 -> 0, blob e3b4b99a70eb -> 3b1a92599641
Tests  4 failed | 7 passed | 66 skipped (77)
ablation-replace: ok restored: blob == HEAD (e3b4b99a70eb) and `git diff HEAD` is empty
Ablation 2: accept any connect-src shape again instead of an exact origin
ablation-replace: ok mutation landed: anchor 1 -> 0, blob e3b4b99a70eb -> 84c91631c08e
Tests  4 failed | 7 passed | 66 skipped (77)   # https:, wildcard, path, wss: red; the number stays refused
ablation-replace: ok restored: blob == HEAD (e3b4b99a70eb) and `git diff HEAD` is empty
Package test and typecheck

Measured at 28deaa2 (the merges since bring no change under packages/cli): CSP file 77/77; the cli unit layer's 7 stale-build failures re-ran green after a rebuild (8 files, 267 tests), the other 431 files passed; pnpm --filter @objectstack/cli typecheck exit 0. Gate families for the current head are reconciled in the report on the card.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ADHkmRB34k9WUWeGpRnVNm

@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 22, 2026
@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/cli, touching 4 documentable anchor(s).

⛔ 1 release-owned page(s) name something this change touched. These are read-only:

  • content/docs/releases/v18/18-4.mdx (via createConsoleStaticPlugin (symbol, a top-level function))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • the SDK route bridge reached 68 of 251 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 40 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json abe95a950dc2fa93c49120b624129783ef818373 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 7c9d969c588ca4f2e5dbb82627ece62f77cc4abf — the merge of head 71ebf3eb13abfb6e867a61c5d1b11f63e3c0d4c1 into base abe95a950dc2fa93c49120b624129783ef818373, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 7c9d969c588ca4f2e5dbb82627ece62f77cc4abf && git checkout 7c9d969c588ca4f2e5dbb82627ece62f77cc4abf
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin abe95a950dc2fa93c49120b624129783ef818373 71ebf3eb13abfb6e867a61c5d1b11f63e3c0d4c1 && git checkout -B drift-repro abe95a950dc2fa93c49120b624129783ef818373 && git merge --no-ff 71ebf3eb13abfb6e867a61c5d1b11f63e3c0d4c1

node scripts/docs-audit/affected-docs.mjs --json abe95a950dc2fa93c49120b624129783ef818373

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs abe95a950dc2fa93c49120b624129783ef818373 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmRB34k9WUWeGpRnVNm

席位核对

ACCEPT — PR #36565 @ 71ebf3e (head of record, full sha on the PR) · card #36443 · L1 first read by area s2-B (area order rule 9) · 2026-11-23T01:13Z

  • Shape: open, draft, base main; first line Fixes #36443 (switched from Part of once the doc half landed, per the area's answer on the card), Clause-②: no, Metadata-protocol: none; no closing keyword near another card (l1-face.mjs --pr 36565 CLEAN).
  • Premise: held (claim 7087111531): the Console CSP had no frame-src for the store, so a PDF on an S3 signed link could not be framed. The dev measured that the S3 adapter signs download GETs with the same client and bucket as the upload-origin probe, and that service-storage has no CDN or public-URL download setting, so the upload origin is the download origin. The claim's doc path turned out to be generated; the surface was amended to content/docs/deployment/self-hosting.mdx (area comment on the card, after os-dev report 7088064959).
  • Scope: 4 files, 167+/18-: packages/cli/src/utils/console.ts, its CSP test harness, the S3 CORS paragraph in self-hosting.mdx, one @objectstack/cli patch changeset. Generated reference page and packages/spec untouched; fix(service-storage)!: stored bytes outside the inline allow-list are served as attachments, with nosniff and a sandbox CSP #36518 untouched. Not governed, 185 lines.
  • Diff read: one value (readStorageUploadOrigin) now feeds both connect-src and frame-src; frame-src is written only when it names something beyond 'self' and always keeps 'self'; the operator's OS_CONSOLE_CSP_CONNECT_SRC hosts never reach it. The storage answer is now accepted only as an exact http(s) origin (was any connect-src source shape): an internal service reading, not an authorable key, and the shipped adapters answer URL.origin — the area's call on the card (answer 4). The warning text now says what a missing origin costs (uploads, PDF framing) and that the env variable restores uploads only.
  • Doc read: CORS table (exact Console origin, never *; GET/HEAD/PUT), why a PDF frame needs no CORS, the new-tab fallback — matches the CSP diff.
  • Changeset read against the diff: matches, including the narrowed acceptance of the storage answer.
  • Tests and gates: 11 new cases in console.content-security-policy.test.ts (local: no frame-src; R2 exact; signed-link origin equality for four S3 shapes; Turnstile + S3 three sources; env hosts excluded; refusal and five malformed answers widen neither directive, one warning). Two ablations, 4 red each, restore blob equal to HEAD. Real Chromium: cross-origin PDF iframe blocked without, loaded with. 103 of 103 derived gate families run, 0 NOT-MEASURED (ledger /mnt/project-files/objectstack-seat2/36443-gates-ran.txt). Check-runs at this head: 42 success, 17 expected skip, 0 failed, 0 pending.
  • Accepted deviations: a first gate re-run was a no-op (missing log directory), caught and re-run; the record holds only the second run. Two runners were launched from a shell sitting in the area's shared checkout but cd'd into the worktree first; the shared checkout's git status is clean (area read).
  • Out of scope: StorageServicePluginOptions.s3 does not accept forcePathStyle while S3StorageAdapter does — read-only inference, no public-door reach measured; Acceptance notes, not filed. fix(service-storage)!: stored bytes outside the inline allow-list are served as attachments, with nosniff and a sandbox CSP #36518 stays with its own card; the renderer notes went to console: preview images, PDF, text and CSV in the page from attachments and file fields (Office stays download only) #36442.
  • Landing: non-governed, ≤3000 lines, K = 12 ⇒ area lands it in this stroke.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 23, 2026 01:14
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 79d9c14 Nov 23, 2026
60 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36443-csp-frame-storage branch November 23, 2026 01:37
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 23, 2026
…achments and file fields (objectstack-ai#36587)

<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi92ncfFpPUpTD8314otX5oaG)_
Fixes objectstack-ai#36442
Clause-②: yes (widening)
Metadata-protocol: none

## 维护者速读

-
控制台用户在记录的附件列表点文件名、或在文件字段点文件链接时,图片、PDF、纯文本和表格文件直接在页面弹窗里看,不再先下载;Word、Excel、PPT
仍只能下载。
- 这是附件预览决策选定的方案甲(页内预览,社区版默认)的界面半边,服务端那半边由同区另一张卡负责。
- 若出错,最坏是预览打不开、用户点弹窗里的下载或新标签页照旧拿到文件;没有下载权限的人在预览里同样被拒;可整体撤回。
- 要你做的:无。

## What changes

A shared `FilePreviewDialog` in `@object-ui/fields` (decision objectstack-ai#34781,
option A), opened from a record's attachments and from a file field:

- **Views, no new dependency.** Image (PNG, JPEG, GIF, WebP, and SVG
through an `img` element only) via the lightbox's own image element
(`LightboxImageView`, extracted from `ImageLightbox`); PDF in an
`iframe` on the browser's own viewer, without a `sandbox` attribute;
plain text as text; CSV as a table, read with the GBK-aware
`decodeSpreadsheetText` and `parseDelimited`, which moved down from
`@object-ui/plugin-grid` (it now imports them from `@object-ui/fields`;
no copy).
- **Download only.** Word, Excel, PowerPoint, HTML and every other type:
"This file type cannot be previewed. Please download it." HTML was
measured as a choice between "unsupported" and "source as text"; this PR
takes **unsupported**: nothing is fetched, nothing is framed, nothing is
drawn. A declared HTML type wins over a harmless name, and an `.html`
name wins over a declared plain-text type.
- **The PDF frame needs a PDF signal**: the declared `application/pdf`,
or a `.pdf` name when no type is declared. A `.pdf` name with another
declared type (for example `application/octet-stream`) is unsupported,
so the frame never receives bytes the browser would read as anything
else.
- **Limits** (maintainer defaults): images and PDF 20 MB, text and CSV 2
MB, judged on the declared size before anything is fetched and on the
bytes read when no size is declared; text and CSV show their first 1000
lines (CSV: header plus 1000 rows). Past a limit: "too large, please
download" with a download button.
- **Controls**: previous / next (and the arrow keys) across a record's
attachments; download; open in a new tab.
- **Same door as the download.** In the attachments panel the preview
mints its link with the download's own call (`/files/:id/url` with the
console's token, now one `signedUrlFor` both use), and a refusal shows
the download's own copy. On a file field the preview uses the field's
own link (the stable `/files/:id` endpoint) and first asks it with
`redirect: 'manual'`: a redirect is the grant, a 401/403 is the refusal,
so no byte moves twice.
- **Phone**: below the `useIsMobile` breakpoint a PDF is offered in a
new tab (the system viewer), never framed; image, text and CSV stay in
the page.
- **Cross-origin bucket** (the contract in objectstack-ai#36443 / objectstack-ai#36565): text and
CSV are read with a `GET` on the signed link from the page; when the
browser refuses that read (no bucket CORS rule for the console origin),
the dialog offers "Open in new tab" instead.
- **Wiring**: `RecordAttachmentsPanel`, the row's name is now a button
that opens the preview (download stays in the row's menu);
`FileValueAffordance` (`file-affordance.tsx`), a plain click opens the
preview, a modified click keeps the link's own new tab, and a click
inside the dialog does not bubble to the grid row behind its portal.
- **Copy**: 15 new keys under `fields.filePreview` in all 12 packs
(zh-Hant regenerated from zh-Hans by its generator).

New public exports from `@object-ui/fields` (preferred names, built
under them): `FilePreviewDialog`, `FilePreviewDialogProps`,
`FilePreviewItem`, `decodeSpreadsheetText`, `parseDelimited`.
Alternatives considered: `FileViewerDialog` / `FileViewerDialogProps` /
`FileViewerItem`.

New `@object-ui/i18n` keys (every pack): `fields.filePreview.title`,
`fields.filePreview.previous`, `fields.filePreview.next`,
`fields.filePreview.download`, `fields.filePreview.openInNewTab`,
`fields.filePreview.loading`, `fields.filePreview.tooLarge`,
`fields.filePreview.unsupported`, `fields.filePreview.denied`,
`fields.filePreview.loadFailed`, `fields.filePreview.blocked`,
`fields.filePreview.pdfOutside`, `fields.filePreview.truncatedRows`,
`fields.filePreview.truncatedLines`, `fields.filePreview.empty`.

Read first, by risk: `filePreviewKind` (which bytes may reach the
`iframe`), `useResolver` in `FilePreviewDialog.tsx` (the refusal probe
and the one-resolver-per-dialog rule), then `previewSignedUrl` /
`signedUrlFor` in `RecordAttachmentsPanel.tsx`.

Two-minute check: `pnpm --dir ui exec vitest run
packages/fields/src/widgets/FilePreviewDialog-36442.test.tsx` shows 51
passing.

## Tests

- New card-named file
`ui/packages/fields/src/widgets/FilePreviewDialog-36442.test.tsx`: the
kind table (Office, HTML, SVG, PDF-signal cases); each view and its
element; SVG only as `img`, no `iframe`/`object`, bytes never fetched;
text drawn as text (a script tag in the file stays text); GBK CSV; the
1000-row cap; Office and HTML download only with nothing resolved,
fetched or framed; too large per kind, a control at exactly the limit,
and a text file judged on its bytes; the refusal from `resolveUrl`, from
the default probe (403), from the text read (403), with a redirect as
the control; the CORS-blocked read offering the new tab; previous / next
/ arrow keys / wrap; download and new tab; phone PDF in a new tab and
phone image in the page; the field link opening the preview, a modified
click not, a refused field file, a Word field file.
- Shared harness `RecordAttachmentsPanel.test.tsx`, new top-level
`describe`: the name opens the preview on the signed link, next walks to
the next row's own link, a refused reader gets the download's copy (and
the link is asked once), a Word file offers only the download and that
download is the row menu's, the row menu still carries Download.
- Shared harness `importParsers.test.ts`, new `describe`: the wizard's
`parseDelimited` / `decodeSpreadsheetText` are the very functions
`@object-ui/fields` exports.
- Tests changed because the product changed: none. Existing pins that
query `getByText('report.pdf')` keep passing on the new name button.

## Acceptance notes

- **Multi-file field values preview one file at a time.** A file field
holding several files opens each file's own preview without previous /
next across the value: the group lives at the call sites in
`FileField.tsx` and the cell renderer in the fields barrel, outside this
card's claimed file surface. The attachments panel walks its whole list.
- "Phone" is the console's viewport breakpoint (`useIsMobile`, under 768
px), not a device check.
- objectstack-ai#36518 (open): answers stored bytes outside an inline allow-list as
attachments, keeps PDF and plain text inline. Effect here: none on the
in-page views (the text and CSV views read bytes with `fetch`, which
ignores the disposition; objectstack-ai#36565 measured Chromium mounting its PDF
viewer under that PR's sandbox header). The "Open in new tab" for a CSV
would download it rather than display it once objectstack-ai#36518 lands.
- On S3, the PDF frame needs objectstack-ai#36565's `frame-src` and the text and CSV
reads need the bucket CORS rule objectstack-ai#36443 documents; without them the
dialog offers the new tab, as that card's contract states.
- The pre-existing `FILE_DOWNLOAD_DENIED` (field-owned files) has no
friendly copy in the attachments panel's mapper; the panel only maps
`ATTACHMENT_DOWNLOAD_DENIED`. The preview shows exactly what the
download shows. Observation only.

## Verification

Screenshots: NOT MEASURED. Reason: the relay writes text bodies only and
no write door here uploads an image to a pull request; a live Console
run was not started in this container.

<details><summary>Package suites on the merged head (ab1feda, then
c131bca and 81b19aa for the census fixes)</summary>

```
pnpm --dir ui exec vitest run packages/fields/ packages/plugin-grid/ packages/i18n/      (merged head 538f09f)
  Test Files  1 failed | 735 passed | 1 skipped (737)   the zh-Hant pack is generated: regenerated in ab1feda
pnpm --dir ui exec vitest run packages/i18n/ FilePreviewDialog-36442 RecordAttachmentsPanel.test importParsers.test   (ab1feda)
  Test Files  109 passed (109)   Tests  2138 passed | 13 skipped (2151)
pnpm --dir ui exec vitest run scripts/ packages/plugin-grid/src/importParsers.test.ts   (c131bca)
  Test Files  173 passed | 2 skipped (175)   Tests  5185 passed | 2 skipped (5187)
pnpm --dir ui exec vitest run dialogViewportGutterCensus-12603 clickableNonControlCensus-13461 FilePreviewDialog-36442 fileCellDownload-9485 RecordAttachmentsPanel.test   (81b19aa)
  Test Files  5 passed (5)   Tests  129 passed (129)
pnpm --filter @object-ui/{fields,i18n,plugin-grid,app-shell} type-check   TC-OK on all four
```
</details>

<details><summary>Ablation: delete the default probe's refusal (one line
in useResolver)</summary>

```
ablation-replace: ok mutation landed: anchor 1 -> 0, blob 1697ea6 -> 6bf8a8ebcffc
  × by default, the stable storage endpoint is asked without following its redirect; a 403 is refused
  × a field file the reader may not download gets the refusal in the preview
  Tests  2 failed | 49 passed (51)
ablation-replace: ok restored: blob == HEAD (1697ea6) and `git diff HEAD` is empty
```
</details>

<details><summary>Derived gate list on 81b19aa: 42 of 42 run, all
exit 0</summary>

`node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack
--ran FILE`: "42 derived famil(ies) accounted for — 42 run, 0
NOT-MEASURED". `check:type-check-debt` and the ui `scripts/` suite ran
under the shared verify lock. `node scripts/pm/overlap-check.mjs`:
VERDICT clean exit 0.
</details>

CI on 81b19aa: every required check green (Lint & Repo Gates,
TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI,
Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression
Gate; Build Core skipped by its selector).

Two shared censuses the first CI round named are now satisfied without
touching them: the dialog's width is `sm:max-w-[92vw] xl:max-w-5xl`, a
viewport-relative cap that keeps a margin at every width (the gutter
census counts it as not wide), and the dialog stops its own clicks at
its content rather than through a clickable wrapper element (the
clickable-non-control census).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01ADHkmRB34k9WUWeGpRnVNm
<!-- signed: repo:objectstack#2 · os-steve ·
session_01ADHkmRB34k9WUWeGpRnVNm -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cli/storage: let the console frame a PDF from the storage origin, and document the bucket CORS the file preview needs

2 participants