Repository navigation
feat(web): a shared thread shows who is on it, and a guest leaves from their own client - #596
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
1d44a9c to
5113d9b
Compare
1a15c96 to
3c6db37
Compare
3c6db37 to
1ec03eb
Compare
1ec03eb to
bd3e9d8
Compare
bd3e9d8 to
77aa042
Compare
0ff61dd to
eb368c2
Compare
A browser that had never used the app and opened a named link for a person with nothing shared landed on upstream's first-run wizard, which asks them to connect computers and import projects. The first-run gate is now enabled through one J5 hook: upstream's answer for a browser never paired through a share link, off for one that was, and on again when the server says the connection is a member's. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A guest with nothing shared read "No projects yet" over an "Add project" button that could only fail for them. The sidebar's empty state now reads upstream's own "No threads yet" for a guest's connection. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every J5 read was withheld once a connection was known to be a guest's, and the artifact list had become one of those reads, so a project guest's Artifacts page never asked. The reads the server gives a guest are now named beside the refusal and still go out. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
They said the server "does not provide this J5 feature", which is what a server that is too old gets. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ows nothing Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ir first screen Upstream leaves a missing thread's address only when the server has another thread to show, so a guest removed from their only thread stayed on an empty page. J5's root host now takes them to "Nothing is shared with you". Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t's only once paired Review fixes for the pairing page. An ordinary pairing link goes to upstream's page at once and its token is sent nowhere else; a link with J5's mark waits up to five seconds to be described and then falls back to upstream's page. The "paired through a share link" flag is set after the server accepts the link, so a member who opens a guest's link and is refused keeps upstream's first screen and first run. The redirect for a removed guest reads nothing for a member. FORK.md, D33 and the shared-server scenarios say what is built. Co-Authored-By: Claude Opus 5.5 <[email protected]>
896671c to
8a78c8b
Compare
bryantderosier
left a comment
There was a problem hiding this comment.
One small leave-flow thing from the crew review, inline below. Still there at the top of the stack (#602).
| * thread in the project. A thread covered by neither is an agent beneath a thread that was | ||
| * shared, and goes when that thread is left. | ||
| */ | ||
| export function leaveChoiceFor( |
There was a problem hiding this comment.
minor: if a guest has a direct grant on this thread and a project grant that covers it (AC7 allows both), leaveChoiceFor picks the thread grant and the wording says "It disappears from your list". It doesn't, though, because the project grant still covers it. The dialog navigates away anyway, and the next Leave falls through to the project case and drops every thread in the project.
I'd either say that the thread stays because the project is shared with them, or offer leaving the project right in this dialog. Same code at #602.
There was a problem hiding this comment.
You were right, and the existing test had the wrong behaviour written down as intended. Fixed in d919abe before this merged: when a thread is shared on its own and as part of its project, the dialog now says the thread stays while the project is shared, and offers one "Leave project" that removes both grants, with wording that says every thread in the project goes. Before and after are in the PR description under "After Bryant's review". The rest of your review is in the collaborate layers (#598 to #602), which have not merged; each finding is being verified and fixed there, and I will answer on those PRs.
🤖 Generated with Claude Code
…every connected server Jackson approved the first-run gate and the sidebar's empty state with one rule: a client is not changed because one of several connected servers is a guest one. The sidebar's empty state and the Settings pages left out for a guest now ask whether the person is a guest everywhere, not whether the primary server's connection is a guest's. The first-run gate is on again as soon as any connected server says the person is a member of it. People still follows the primary server. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ject leaves both A guest who holds a grant on a thread and one on its project was told the thread "disappears from your list" and left only the thread's grant. The project's grant still covered it, so it stayed, and a second Leave then took the whole project unannounced. The confirmation now says the thread stays for as long as the project is shared, names the project, says every thread in it goes, and leaves both grants. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reached
This review includes 55 billable files and costs up to $13.75.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 21 minutes for your next included review. View limit details
Comment |
Approved by Jackson, 2026-10-13, with one rule
Two edits inside upstream-owned files. Jackson's rule, in his words: "we have to be careful that the sidebar is not modified just because they are connected to a server where they are a guest. It's only if they are connected to only servers where they are guests that this would be a thing". Commit
3f462ef1b1makes the code follow it: the sidebar's empty state and the Settings pages left out for a guest ask whether the person is a guest on every connected server, and the first-run gate is on again as soon as any connected server says the person is a member of it. People still follows the primary server. Both upstream edits are the same size as before (the sidebar's hook call changed; the root route's import path changed).1. A guest is not sent to the setup wizard (
8df1b037dd,apps/web/src/routes/__root.tsx: one import, one hook call, andFirstRunGate'senabledreads the hook's answer).pairedThroughShareLink.test.ts).2. A guest's empty sidebar does not offer to add a project (
5ec989833d,apps/web/src/components/Sidebar.tsx: one import, one hook call, and&& !isGueston the empty list's condition).After Bryant's review
A guest who holds a grant on a thread and one on its project was told the thread "disappears from your list", and only the thread's grant was left; the project still covered it, and a second Leave then took the whole project unannounced. The confirmation now names the project, says the thread stays for as long as the project is shared and that every thread in it goes, and leaves both grants (
d919abe32d). Seen live: after "Leave project" the guest read "Nothing is shared with you" and the member's People page showed nothing shared with them.Awaiting Jackson's read
A definition edit (
docs/j5/product/features/shared-server.md, in the last commit). One scenario said a View guest "finds no composer". The build, as the UI design chose, shows upstream's composer read-only with "You can read this thread, but not send anything to it." The scenario now says that, with a History line.After the Opus review (no blocking finding), fixed in this PR's last commit and seen live:
Problem
A shared thread does not say it is shared, and a guest's client still offers what a guest cannot do: Archive and Delete in the thread menu, a composer that reads as if it could send, a draft as the first screen, and no way to leave (#535, #541; Shared server AC23, AC25). A join link has no page to open on. This is the third of three UI layers of Jackson's 2026-10-12 design (
artifacts/share-links-ui-design.md, sections 1, 7 and 8).What changed
listThreadPeople) and follows its change counter, so it updates without a reload. A guest sees members, then everyone with a grant, their own name marked "(you)", and "Leave this thread".GuestAwarePairingSurface.tsx): "Joining as …" with what the person was invited to, "Join a shared thread" with a name field for a join link, and one "This link does not work" state. It asks the server what the link opens before anything is spent, and hands every other link to upstream's pairing page untouched.GuestLanding.tsx): their thread, a list when they hold several things, or "Nothing is shared with you"; never a draft. A member's first screen is upstream's, drawn without waiting on J5.Built differently from the design, each for a stated reason:
userswas approved.UI changes
Same seeded test home on base (#594) and head, 1280x800, light. Not captured: "Joining as …" (pairing finishes before the page can be photographed; its wording is unit-tested), "Others on this thread", dark mode, and the Artifacts page clearing.
Live testing
Second peer run, on the whole Share stack after the final rebase (report:
test-reports/j5code/share-ui-3-thread-and-guest.md; commits345121d8fcthen896671c06a). Verdict: fail, on two findings; every core flow passed.896671c06a): a guest removed from their only open thread was left on a blank page. Re-tested: they land on "Nothing is shared with you", or on the thread that remains when they hold two.Re-run after the review fixes (report:
test-reports/j5code/share-ui-review-retest-8a78c8b492.md, commit8a78c8b492): all pass. An ordinary pairing link made no describe request. A member who opened a guest's link was refused, kept an unset flag, and got the normal member app on "/". With two member clients, the second went straight to the share form after the first set the name, and a rename showed on the other's People page without a reload. A named link and a join link each paired and landed on the thread, read-only. One caveat: the first rename once took more than 15 seconds to show, in both clients, and arrived with the next change; a controlled repeat showed in about half a second and the stale row was not reproduced.The first run, on this PR as first pushed:
Report:
test-reports/j5code-share-ui-3-thread-and-guest.md(a peer agent, isolatedj5-live-testserver, no flags, commit1a15c96c36: this PR as first pushed with its route edits, before the commits listed under "Since the test").Verdict: fail on one defect that is still open (A); the sharing, landing, leaving and revocation flows passed.
Ran live, member in one browser profile and guests in others:
restartat rest: the guest reopens on the same thread and the member's panel still lists them.Findings:
/welcomeafter pairing, not to "Nothing is shared with you". Fixed by the first edit under "Awaiting Jackson's approval" above.sharingrevision moves. Checked in a browser: a rename in one tab showed in a second tab without a reload.345121d8fc(now98745d6c24, which differs by one sentence of text) (fresh test home, headless Chromium):j5.artifacts.listis sent; it was withheld by the client before). A guest holding only a thread in that project reads "This is not shared with you on this server." there.j5.agentPersonas.getCatalogzero times (it was sent once and refused).vcs.listRefs0,server.reportClientActivity3. On an open thread, per minute:vcs.listRefs3,server.reportClientActivity2; both are upstream's and untouched.5c3766c5e6: a View guest at 390px wide reads the view-only sentence and "Ask anything" appears nowhere; a member paired withoutaccess:read/access:writesees "Alice H. · View" in the People section and no controls; a join-link dialog left open went from "Nobody has joined yet" to "1 person has joined" with the new name while a guest joined in another browser.Since the test, not re-run by the peer: fixes B, C, E, F; the list of a shared project's threads being most recent first; the guest-quieting edits below; the owner's-name dialog from #592, which every member now meets on a server whose owner has no name.
Seen live by the builder after the test, as a View guest: a turn that edited a file shows "1 changed file"; opening it shows the turn's diff with the added line readable (the right panel's Diff tab, scope "Latest turn"). The same tab on a thread with no turn changes says "This connection cannot read local diffs.", and Files says "This connection cannot read host files."; both are upstream's plain statements for a connection without the file permission and are left as they are. The Device surface opens upstream's "Set up devices" dialog with its switch and Continue disabled for a guest: nothing on the host can be changed from it.
Not exercised live:
Upstream impact
FORK.md case 73; register D33 gains a consequence line. Approved by Jackson on 2026-10-12, one mount or item each:
components/chat/ChatHeader.tsxcomponents/chat/ThreadDetailsPanel.tsxcomponents/chat/ChatComposer.tsxplaceholderprop, and the collapsed composer's fallback text reading the same value (1 line)packages/client-runtime/src/rpc/client.tsEnvironmentSubscriptionRpcTagbeside case 69'sroutes/pair.tsxroutes/_chat.index.tsx<GuestLanding>(Jackson, 2026-10-13)The guest's thread menu needs no new upstream line: #592's two calls carry it.
Edits that quiet what a guest could only see fail
Approved by the build lead under Jackson's 2026-10-13 standing permission (one import and one or two lines calling into J5, to hide or quiet something a guest sees as an error). Each is in FORK.md case 73 and D33.
components/chat/ThreadDetailsPanel.tsx: the section is not mounted for a guest&& !isGueston one condition, beside the People mountcomponents/settings/SettingsSidebarNav.tsx: #594's nav-filter condition becomes one call into J5, which also leaves these three out of a guest's sidebarj5/skills/SkillInstallerSettings.tsx) says "Skills are not available on a server you are a guest on."A guest who types one of the three Settings addresses by hand still gets upstream's error page; that is accepted.
Proposed, not made (for Jackson):
log-out, inapps/web/src/contextMenuFallback.ts(three shapes, about five lines) andicon: "log-out"on J5's item. Nothing already in the table reads as leaving.components/Sidebar.tsxline 5643,projects.length === 0gains&& !isGuest, with one hook call (the file already imports fromj5/sharing); a guest then reads upstream's "No threads yet".Checklist
FORK.md(case text and file-table row) in this PRdocs/j5/product/upstream.mdClaude Opus 5.5, Claude Code harness in J5 Code.
🤖 Generated with Claude Code