A friend signed in with their GitHub and the threads and workspaces that I created weren’t visible to him, how can we make them shared?
Shared threads
Short answer: workspaces are private by design — a signed-in user only sees workspaces they're a member of (workspace_members), and threads inherit that. Your friend signing in doesn't make him a member of anything, so he sees an empty home page.
The sharing mechanism already exists: every workspace has an invite link. Open the workspace (/workspaces → manage), and under Members there's an Invite link box with a Copy button. Send him https://…/join/<token>; opening it while signed in adds him as a member and he'll immediately see all the workspace's threads, memory and repos. Owners can rotate the link if it leaks.
What I'll change — the problem is really discoverability, on both sides:
app/page.tsx— the "No workspaces yet" empty state your friend saw says only "create a workspace". I'll add that if a teammate already has one, they should ask for its invite link.app/workspaces/page.tsx— add a copy invite link action directly on each workspace card so you don't have to dig into the manage page.app/threads/[id]/page.tsx— a signed-in non-member opening a shared thread URL currently gets a bare 404; I'll show "you're not a member of this workspace, ask for the invite link" instead (without leaking the thread title).- README: one sentence on how to share.
No schema/API changes needed.
threadide@5f8626bHow to share with your friend (works today, no deploy needed)
Workspaces are private to their members — signing in with GitHub doesn't grant access to anything. To bring him in:
- Go to Workspaces → manage on the workspace.
- Under Members, copy the Invite link (
https://…/join/<token>). - Send it to him; he opens it while signed in and becomes a
member.
He'll then see every thread, memory note and repo in that workspace on his home page. Members can read/post and (with a linked GitHub account) ask Claude; only owners can add/remove repos, remove members, or rotate the link if it leaks. Repeat per workspace — membership is per workspace, not per account.
What I changed (branch thread/25292abc, commit 5f8626b)
The mechanism existed but was hard to find from either side, so this is a discoverability pass — no schema or API changes:
app/workspaces/page.tsx— every workspace card now has a copy invite link action next to manage (newCopyInviteLinkincomponents/members.tsx; same URL the manage page shows). Intro text now says workspaces are member-only.app/page.tsx— the "No workspaces yet" empty state your friend landed on now also says: to join a teammate's workspace, ask for its invite link.app/threads/[id]/page.tsx— a signed-in non-member who opens a thread URL (e.g. one you pasted him) gets a "this thread belongs to a workspace you're not a member of, ask for the invite link" card instead of a bare 404. The thread title/body are not revealed.README.md— one sentence on how sharing works.app/globals.css— tiny.ws-actionsrow for the two card actions.
tsc --noEmit passes. I didn't screenshot: the app needs Postgres + OAuth and the change is a few lines of copy plus a link-style button reusing existing button.link styles.
Not done / possible follow-ups if you want more than invite links: (a) a "public to anyone signed in" workspace flag, or (b) auto-adding members by GitHub org. Both need a schema change plus rethinking requireMember; say the word if the invite flow isn't enough.
I’d love for all threads on this site to be visible, no just by joining via invite link
Got it — make the site open to read for anyone who's signed in, no invite needed.
Heads-up first: the previous commit on this branch (5f8626b, the invite-link discoverability pass) is no longer in the branch history — thread/25292abc currently sits on main (6af0f0b). So I'm building on main, and this change supersedes most of that pass anyway.
Access model after this change (three tiers instead of two):
| signed-in user (viewer) | member | owner | |
|---|---|---|---|
| see every workspace, thread, post, memory, live updates | ✅ | ✅ | ✅ |
| reply, create threads, ask Claude, fork, re-run | ❌ | ✅ | ✅ |
| add/remove repos, remove members, rotate invite, delete workspace | ❌ | ❌ | ✅ |
I'm keeping writes member-only for now because a post that asks Claude launches a run that pushes to your repos with your GitHub token and bills your API key — anyone with a GitHub account can sign in here. If you'd rather have replies open too, that's a one-line change (requireMember → requireUser) I can flip after.
Changes (threadide/):
lib/data.ts—listThreads()drops the membership filter;listWorkspaces()returns all workspaces withmyRole: "owner" | "member" | null.lib/session.ts— newrequireThreadExists()for read paths;requireMember/requireThreadMemberstay for writes.- Pages: home lists everything;
/workspacesshows all workspaces with your role (or "viewer");/workspaces/[id]and/threads/[id]open to viewers with member-only controls (composer, invite box, leave) hidden and a small "viewing as guest — ask a member for an invite to reply" note. /threads/newonly offers workspaces you're a member of.- API:
GET /api/threads,GET /api/threads/[id]/events,GET /api/workspaces,GET /api/workspaces/[id]/membersopen to any signed-in user; all POST/DELETE unchanged. - README / architecture.md updated.
No schema change.
threadide@ccad649Done — everything is readable by anyone who's signed in
Your friend (or anyone with a GitHub account who signs in) now sees every workspace and every thread on the home page, can open any thread, follow live updates, and browse each workspace's repos, members and memory. No invite link needed to read.
What still needs membership: replying, starting threads, asking Claude, fork/re-run, deleting. I kept writes member-only on purpose — a post that asks Claude launches a run that pushes to your repos with your GitHub token and spends your API budget, and sign-in is open to anyone with a GitHub account. Viewers see a small note ("You're reading as a guest — ask a member of <workspace> for its invite link to reply") where the composer would be, and the New thread button only appears if you belong to at least one workspace. If you'd rather have replies open to everyone too, tell me — it's swapping requireMember → requireUserApi in POST /api/threads/[id]/posts and POST /api/threads.
| any signed-in user | member | owner | |
|---|---|---|---|
| read workspaces, threads, memory, live stream | ✅ | ✅ | ✅ |
| reply / new thread / ask Claude / fork / run | — | ✅ | ✅ |
| repos, members, invite link, delete workspace | — | — | ✅ |
Changes (threadide ccad649, rebased on top of the earlier 5f8626b)
lib/data.ts—listThreads(workspaceId?)no longer filters by membership;listWorkspaces(userId)returns all workspaces withmyRole: "owner" | "member" | null; newlistMemberWorkspaces()for the new-thread form.lib/session.ts— doc comment spelling out the read/write/admin tiers; newrequireThreadExists()for read paths.requireMember/requireThreadMemberunchanged for writes.- Pages: home lists site-wide threads (+ guest note, CTA hidden for viewers);
/workspacesshows all workspaces with "you are an owner / a member / a viewer" and manage vs view;/workspaces/[id]and/threads/[id]open to viewers with member controls hidden. The copy invite link action from the previous commit stays, members only (only members can read the token). - API:
GET /api/threads,GET /api/threads/[id]/events,GET /api/workspaces/[id]/membersneed only a signed-in user. All POST/DELETE routes unchanged. README.md,architecture.mdupdated;.guest-noteinglobals.css.
No schema change, no migration. tsc --noEmit passes. Not screenshotted — the app needs Postgres + OAuth and the visual delta is one 13px note.
Note for teammates: the branch had been reset to main locally while 5f8626b was already on the remote; I rebased rather than force-push, dropping that commit's now-wrong "workspaces are private" copy and its NotAMember card.