Repository navigation
Conversation
Signed-in people need to see their own work first and bring each other in. With OIDC configured, the pairing screen offers "Sign in with Kanidm" (browser redirect, or the system browser plus t3code://pair on desktop). The sidebar keeps your own threads in the existing project view and adds "Shared with me", grouped by owner and session group. Share… in the thread menu and command palette invites a principal as viewer or participant and files the thread in a session group; Settings shows who you are and manages groups. Messages from someone else carry their name, and viewers get a disabled composer. With the default owner principal nothing changes.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: abeaa404e1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const isSessionViewer = | ||
| useThreadAccessRole(routeKind === "server" ? scopeThreadRef(environmentId, threadId) : null) === | ||
| "viewer"; | ||
| const canOperateThread = hasOperateScope && !isSessionViewer; |
There was a problem hiding this comment.
Apply viewer roles to the mobile composer
When a recipient opens a viewer-shared thread in the mobile app, this role check applies only to web ChatView. Mobile ThreadRouteScreen still derives canOperateThread from the environment scope, which principal sessions have, so ThreadComposer enables Send; the server then rejects the dispatch because viewers may only read. Apply the shared role check on mobile too, so viewers aren't shown an action that always fails.
AGENTS.md reference: AGENTS.md:L69-L73
Useful? React with 👍 / 👎.
| } | ||
| const target = ownedGroups.find((group) => group.id === groupId); | ||
| if (target !== undefined) { | ||
| await mutate({ type: "group.thread.add", groupId: target.id, threadId }); |
There was a problem hiding this comment.
Preserve the old group when moving fails
When moving a thread from one group to another, the old-group removal commits before this add is sent. If the add fails, for example because the connection drops or the target group was deleted concurrently, the thread is left in no group and the old group's members lose access even though the owner selected a new group. Make the move atomic or restore the old membership when the add fails.
Useful? React with 👍 / 👎.
| void mutate({ | ||
| type: "thread.unshare", | ||
| threadId, | ||
| principal: share.principal, | ||
| }) |
There was a problem hiding this comment.
Revoke active thread subscriptions when unsharing
When the recipient already has this thread open, removing the share only deletes the access row. The server checks visibility when subscribeThread starts (apps/server/src/ws.ts:2352-2362) but does not recheck the live stream, so the recipient can continue receiving new conversation events after removal until reconnecting. Revoke active subscriptions or otherwise invalidate the recipient's open thread when its share is removed.
Useful? React with 👍 / 👎.
|
Note 🤖 Claude Opus 5.5 responding on behalf of caniko Superseded by #6, which rebased these commits onto the 20261104 nightly and merged them into |
Fork-only, stacked on #3.
oidcSignIn. On web it is a browser redirect; on desktop it opens the system browser and comes back throught3code://pair. Pairing still works.Contract additions: an optional
AuthSessionState.principal.sessionAccess.listandsessionAccess.threadSharesmove from client-guarded methods to server-required read scopes; the server check is unchanged.CI now typechecks the web and client-runtime packages and runs the new unit and browser tests. The browser test could not run on the dev host, where Playwright's Chromium has no system libraries.
Known gap: a newly shared thread reaches the recipient's sidebar on its next update or reconnect. The client polls the access list every 30 s, but the shell has no push for this yet.
Council review
Rounds: 1 (question: close as superseded by #6)
🤖 Generated with Claude Code