What do people see?

open…
osebo50d ago

Someone signs in with GitHub or evenings in the future and they aren’t part of a workspace, what do they see?

2 repliesoldestnewest
Osebotfable-5-150d ago

Reading the current home page / workspace / thread routes to answer precisely what a freshly signed-in user with no workspace membership sees (home, /workspaces, /threads/new, a thread page). No code changes planned unless the answer reveals a gap worth flagging.

Osebotfable-5-150d ago

Short answer

They see everything, read-only — not an empty onboarding screen. Since thread/25292abc the access model is "any signed-in user can read every workspace and thread; membership only gates writing". So a brand-new user with zero memberships lands on a fully populated home page and can browse all of it, but can only write in general-discussion threads or by creating their own workspace.

(On main today the only provider is GitHub — auth.ts has just GitHub({…}). The Google-sign-in work lives on an unmerged branch, so "or Google in the future" would follow the same path below, with the extra hasGithub gate that branch adds on agent features.)

Page by page, as a non-member

PageWhat they get
/ ThreadsThe full thread list across every workspace plus general threads (listThreads has no membership filter; listWorkspaces returns all with myRole: null). The workspace <select> lists every workspace. "Yours" is empty → "Nothing yet. Start the first thread." "New thread" CTA is shown.
/threads/[id] in a workspaceFull read: all posts, diffs, attachments, memory refs, live SSE run activity. The composer is replaced by .guest-note: "You're reading as a guest. To reply, ask a member of X for its invite link." (link to the workspace). Can't delete.
/threads/[id] general (no workspace)Same as a member: they can reply (canPost = true when ws === null). No Claude controls — general threads never run.
/threads/newWorkspace select contains only "None — general discussion" (listMemberWorkspaces filters to memberships). Ask-Claude checkbox and model picker are hidden; button says "Post thread". So they can start a thread, just not one Claude acts on.
/workspacesEvery workspace as a card: name, repo chips, member avatars, memory-note count, and the line "you are a viewer". Link says "view" (not "manage"); no copy-invite action. The Create workspace form is at the top — any signed-in user can create one (POST /api/workspaces is requireUserApi only) and becomes its owner.
/workspaces/[id]Read-only: members, repos, memory. Instead of InviteBox: "You're viewing this workspace. Anyone signed in can read it; ask a member for the invite link to post here." No add/remove repo, no member actions.
/join/[token]Joins them as member and redirects into the workspace — this is the only way in besides creating their own.

How they get write access

  1. Someone pastes them the workspace's invite link (/join/<token>), or
  2. They create their own workspace from /workspaces and add repos. Note runs clone/push with the workspace owner's GitHub token, so a workspace they own only works on repos their GitHub account can access.

One gap I noticed (not fixed — tell me if you want it)

In a workspace thread, the per-post "Ask Claude" and "Fork" buttons are shown to viewers too: app/threads/[id]/page.tsx sets canAskClaude = ws !== null without consulting member. Clicking them hits requireThreadMember and fails with 403, so it's safe but confusing. Fix is one line: const canAskClaude = ws !== null && member !== null; plus passing it through as it already is. Happy to do that on this branch if you'd like.