Skip to content

Commit 4a990ef

Browse files
committed
chore(changeset): the bearer-read changesets name every converted door in user terms, and claim only the same-server console requests
Claude-Session: https://claude.ai/code/session_01QSeKYnV6DdKeTL414FFGnp Co-authored-by: Claude <noreply@anthropic.com>
1 parent 48321c6 commit 4a990ef

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

‎.changeset/37080-console-reads-bearer.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
'@object-ui/console': patch
33
---
44

5-
fix(console): the developer pages and the device sign-in approval send the stored bearer token, so a session the rest of the console accepts works there too
5+
fix(console): the developer pages and the device sign-in approval send the stored sign-in token, so a session held by its token alone works there too
66

77
Clause-②: no
88
Metadata-protocol: none
99

10-
The developer integrations page, the agent-connect section (discovery and API key minting) and the device sign-in approval (claim, approve, deny) called this server's `/api/` routes with the session cookie only (`credentials: 'include'`). A session held by its bearer token alone was answered `401` there. They now go through `createAuthenticatedFetch` from `@object-ui/auth`, built per call, as every other console request does. The session cookie still rides along, so a cookie session behaves exactly as before, and a `401` now reaches the console's session-ended check. Nothing changes in what the server accepts.
10+
The developer integrations page, the agent-connect section (discovery and creating an API key) and the device sign-in approval (claim, approve, deny) asked this server with the session cookie only, so a session held by its sign-in (bearer) token alone was refused there. They now send the stored token as well, as the other same-server console requests do. 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. Nothing changes in what the server accepts.

‎.changeset/37080-shell-reads-bearer.md‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,20 @@
22
'@object-ui/app-shell': patch
33
---
44

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
66

77
Clause-②: no
88
Metadata-protocol: none
99

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.
1111

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

Comments
 (0)