|
2 | 2 | '@object-ui/app-shell': patch |
3 | 3 | --- |
4 | 4 |
|
5 | | -fix(app-shell): the shell's package list, the AI chat lists and the studio-design reads and writes send the stored bearer token, so a session the rest of the console accepts keeps its Studio and design entries |
| 5 | +fix(app-shell): the package list, Studio, AI chat and draft screens send the stored sign-in token, so a session held by its token alone keeps its packages, Studio and design entries |
6 | 6 |
|
7 | 7 | Clause-②: no |
8 | 8 | Metadata-protocol: none |
9 | 9 |
|
10 | | -These reads and writes called this server's `/api/` routes with the session cookie only (`credentials: 'include'`), while the rest of the console sends the stored bearer token through its authenticated fetch. A session held by its bearer token alone (a second local runtime on the same host replaced the cookie, the cookie was blocked as a third-party cookie, or the cookie jar was cleared) was answered `401` there. The most visible case was the shell's held package list (`GET /api/v1/packages`, read by the sidebar, the app header, the command palette and the Studio entries): every package went missing and the Studio and design entries with it, with no error shown. |
| 10 | +These screens asked this server for their data with the session cookie only, while the other same-server console requests also send the stored sign-in (bearer) token. A session held by its token alone (a second local runtime on the same host replaced the cookie, the browser blocked it as a third-party cookie, or the cookie jar was cleared) was refused there. The most visible case was the package list behind the sidebar, the app header, the command palette and the Studio entries: every package went missing, and the Studio and design entries with it, with no error shown. |
11 | 11 |
|
12 | | -They now go through `createAuthenticatedFetch` from `@object-ui/auth`, built per call: the package list and the studio-design package writes (ensure-customization, duplicate, customizations), the package switcher, the AI chat conversation list and conversation reads and writes, the build-debug report, AI usage, the inbox bell and the approval feeds, suggested bindings, the commit timeline and revert, the pending-draft and unpublished-app reads, the metadata-admin catalog, connector, flow and sharing reads, the packaged action and flow ledgers, the deployment notice, the connect-agent widget, the context selectors (only for requests to this server's own origin), and the same-origin cloud-connection and install routes of the marketplace. The session cookie still rides along (`credentials: 'include'` is unchanged), so a cookie session behaves exactly as before, and a `401` now reaches the console's session-ended check as it does on every other page. Nothing changes in what the server accepts. |
| 12 | +They now send the token as well: |
| 13 | + |
| 14 | +- packages: the package list and the package switcher, creating a package's customization package, duplicating a package, a package's customizations, and the package form; |
| 15 | +- Studio: the automation status, cloning a flow, cloning a permission set, the flow picker and connector inputs, a flow's run history and node palette, the page preview, the sharing-rule catalog and catalog activation, and the packaged action and flow ledgers in Setup; |
| 16 | +- drafts: the pending drafts, the unpublished-app bar, the draft changes panel and its flow checks, and the commit history with its revert; |
| 17 | +- AI: the conversation list and conversations, the build-debug report, AI usage, and suggested bindings; |
| 18 | +- the inbox bell, the approval feeds and a record's approvals, and changing a record's owner; |
| 19 | +- the shell: the no-access state, the deployment notice, the connect-agent widget, the context selectors (only for requests to this server's own origin), the design-mode language list, and the marketplace's install steps on this server. |
| 20 | + |
| 21 | +The session cookie is still sent, so a cookie session behaves exactly as before, and a refused request now reaches the console's session-ended check. A few requests stay cookie-only for now, among them sign-in, the OAuth hand-off, public forms and calls to the cloud control plane; they are unchanged. Nothing changes in what the server accepts. |
0 commit comments