Skip to content

Plugin packages' same-server reads stay cookie-only and break under a bearer-only session: the #37080 family outside app-shell and the console (16 files), plus two app-shell reads the #37185 ratchet does not see #37225

Backlog

Description

@objectstack-fleet

repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D

Filing gate: ① a product defect with named locations (a closure card for one mechanism) · Source: fleet (the #37080 dev's out-of-scope findings in its round-0 report on PR #37185; the seat repo:objectstack#4 ruled that they be filed as one closure card; filed by zone a4-U)

What happens

#37080 (PR #37185) moves the same-server /api/ reads and writes in ui/packages/app-shell/src/** and ui/apps/console/src/** from a bare fetch(…, { credentials: 'include' }) to createAuthenticatedFetch (@object-ui/auth). Under a bearer-only session (no session cookie, for example a cross-site embed or a cloud tenant whose cookie is not sent), a cookie-only call is answered as anonymous. Its feature then shows nothing, or a 401 that never reaches the session-ended check.

The same mechanism remains outside those two trees. It also remains in two app-shell reads that #37185's ratchet does not cover.

The sites, enumerated at origin/main 93bd459

Files that carry credentials: 'include'. The number is the count of matches. The marker bearer by hand? means the file names Authorization or an authenticated fetch somewhere, so some of its calls may already carry the bearer; the dev measures each call.

  • ui/packages/components/src/share/ShareDialog.tsx (3)
  • ui/packages/plugin-grid/src/hooks/useRecordCrudVerdicts.ts (2)
  • ui/packages/plugin-grid/src/hooks/useRowApprovalLocks.ts (1)
  • ui/packages/plugin-detail/src/useRecordEditable.ts (2, bearer by hand?)
  • ui/packages/plugin-detail/src/stageChangeStarts.tsx (1)
  • ui/packages/plugin-detail/src/queueClaim.ts (1)
  • ui/packages/plugin-chatbot/src/usePendingActions.ts (2, bearer by hand?)
  • ui/packages/plugin-chatbot/src/useHitlInChat.ts (1, bearer by hand?)
  • ui/packages/plugin-chatbot/src/useAiModels.ts (1)
  • ui/packages/plugin-chatbot/src/useAgents.ts (1)
  • ui/packages/plugin-charts/src/ObjectChart.tsx (2, bearer by hand?)
  • ui/packages/plugin-dashboard/src/DatasetWidget.tsx (1)
  • ui/packages/plugin-report/src/ReportDateRange.tsx (1)
  • ui/packages/fields/src/widgets/preferenceOptions.ts (1)
  • ui/packages/fields/src/widgets/ShareableObjectRefField.tsx (1)
  • ui/packages/permissions/src/MePermissionsProvider.tsx (2, bearer by hand?)

Two app-shell reads #37185 does not convert:

Expected

Every same-server read and write in these packages goes through createAuthenticatedFetch (one built per call, as in #37185), with credentials: 'include' kept. A cross-origin or author-written target uses sameOriginOnly or stays bare, with its reason recorded.

Acceptance

Blocked-by: #37185

Grading: area:ux · Bug · moderate to impeded (features read as anonymous or empty under a bearer-only session) · reach named (bearer-only sessions, the mechanism #37080 measured in the shell) · evidence read, per site → p2; triage to confirm. Likely size L by file surface, so its own cloud session.

Business reason: a user on a bearer-only session sees their chatbot agents and models, record edit verdicts, approval locks, queue claims, share dialog, charts, dashboards and permissions read as anonymous. The shell itself (after #37185) works, so the failures look random.

Reader: the zone that claims it, after #37185 lands, starting from #37185's ratchet.

Dedupe: createAuthenticatedFetch (open and closed) → 30 hits; the open ones are #37080 (the shell half) and this mechanism's own PR. cookie-only and bearer-only → #37080 and #36981 (closed, the console Setup pages). me/localization bearer → no open card. No card covers these sites.

Activity

  1. added
    bug
    priority:p2
    pm:blocked
    domain:ui
    on Nov 25, 2026
  2. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    First touch 2026-11-25T04:54Z. The filing is confirmed as written.

  3. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D

    pm:blocked → pm:queue · area a4-U · 2026-11-25T06:09Z

  4. added
    pm:queue
    and removed
    pm:blocked
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxbugdomain:uipm:queuepriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions