Skip to content

Share links: a view guest watches the thread's preview tabs #540

Open

Description

@Jacksondr5

A later piece of share links, after the enforcement in #532 and the client work that follows it. Moved out of #532 on 2026-10-11 (Jackson) to keep the enforcement PR to the conversation and the sidebar. Until this lands, the preview browser is refused to guests.

Definition: Shared server AC12 (a view guest watches the thread's preview tabs). Driving tabs is a collaborator's (AC13, AC16) and belongs to #533.

What it needs

  • previewList allowed for a granted thread.
  • subscribePreviewEvents carries every thread's events and takes no thread: filter it per guest where it is produced (preview/Manager.ts).
  • /api/preview-stream/ws and /api/preview-stream/download check only a permission, not which thread the tab belongs to. Add them to the guest allow-list with a thread check.
  • Upstream's 50647de014, which makes stream input and upload check the preview permission. Cherry-pick it, or wait for the advance that brings it. Done: it is already in J5, as part of upstream before v0.1.3 (checked 2026-11-06 during the v0.1.7 advance review).
  • A desktop app can host preview tabs itself, and upstream's split between watching and driving does not apply to those. Confirm a guest only ever sees the server's own tabs.
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions