Skip to content

feat(web): a guest who holds Collaborate sends, queues and answers from the web client - #601

Closed
Jacksondr5 wants to merge 17 commits into
j5code/share-4c-promptsfrom
j5code/share-ui-4-collaborate
Closed

Jacksondr5 wants to merge 17 commits into
j5code/share-4c-promptsfrom
j5code/share-ui-4-collaborate

Conversation

@Jacksondr5

@Jacksondr5 Jacksondr5 commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

Upstream edits, approved by Jackson (2026-10-13)

Seven edits inside upstream-owned files, each its own commit. Two earlier ones were taken back out in cdc37e1462, when the server began to accept composer context from a guest: the condition that kept the @ / $ / slash menu closed, and the wrap that sent a guest's queued edit as text alone.

# Commit File and size Without it With it
1 b8131fa129 ChatView.tsx, 1 import, 1 condition A collaborating guest is shown Stop; the server refuses it No Stop for a guest
2 0918b3edd8 ChatComposer.tsx, 1 import, 1 hook call, 1 line A guest can paste or drop an image, which upstream accepts whatever the server says, and the whole message is then refused A pasted or dropped file is refused at once with "A guest cannot send attachments yet."
3 2cd8ea609c ChatComposer.tsx, 1 line The send button can read "Steer message" for a guest whose own setting is steer; the server queues it anyway It reads "Queue message"
4 78b0487a5a ChatComposer.tsx, 1 line A guest is offered "Always allow this session"; the server refuses it A guest gets Approve, Decline, Cancel
5 cb0f870b21 ComposerPendingUserInputPanel.tsx, 3 lines A View guest (and any connection without the operate permission) gets a live Dismiss on a dismissible question, which the server refuses Dismiss does nothing and reads as disabled with the rest of the panel
6 acbd8ae6e7 QueuedRunsControl.tsx, 1 import, 5 lines added, 5 lines changed Queued messages show the raw [Message from …] line; a guest is offered Edit, Steer, Remove and reorder on everyone's messages and each is refused The words the author typed, a name on someone else's; a guest changes and withdraws only their own, and neither steers nor reorders
7 2ddcc93600 MessagesTimeline.tsx, 1 import, 2 lines A guest's own message offers "Edit from here", which rewinds the thread; the server refuses it from a guest Not offered to a guest

Decisions

  • A guest's message may carry composer context (Jackson, 2026-10-13). The @ / $ / slash menu is upstream's for a guest as for anyone, and a guest's edit of a queued message goes as upstream builds it. Attachments stay refused until Sharing: let a guest collaborator attach files and mention things #597: no attach control, and a pasted or dropped file is refused at once.
  • A View guest sees a prompt's options and Submit disabled, as upstream shows them to any connection that cannot act (Jackson, 2026-10-13). The only edit is row 5: Dismiss is disabled too.
  • Crews ship as built: a thread grant writes to the one agent it names and reads those beneath.

Known limits

Live testing of the final change

After the rebase onto #615 (#600 at a1f88a47a7, f3b5cf5e35), on a rebuilt test home: a person joins a shared thread by its open link as "Bob", lands on it, and sees the two other people's messages as cards and the note as a notice, with no platform text; opening a second thread's open link, the page offers "Join as Bob" and "Not Bob?", and joining lands on that thread. Nothing visible changed, so no new images.

On #600 at f59b9d9a12, a rebuilt test home, a member, a Collaborate guest on the project, a Collaborate guest on one thread and a View guest, Claude Haiku and GPT-6-Luna, headless Chromium:

  • A guest's thread mention goes as a reference and a thread record (seen on the wire: [title](t3-context://v1/thread/…) in the text and a thread record in context). The guest's own bubble draws upstream's chip; the member's card shows its label. The agent read the thread.
  • A queued message with a mention, edited by the guest while the agent was busy (on 26263850b2): the editor held the words and the mention, the edit was accepted, and the edited message ran.
  • A guest with one thread types @: "No matching files or folders." Nothing else to pick, so a guest could not be offered a thread they cannot read; that refusal was not exercised.
  • A pasted image as a guest: "A guest cannot send attachments yet.", and nothing is added to the composer. No attach control is drawn.
  • A guest's /compact: their own bubble shows /compact, the member sees the guest's card, and no compaction happens.
  • A View guest: the composer reads "You can read this thread, but not send anything to it."; text can be typed into it but Enter sends nothing, the send button is disabled and no error appears.
  • Not run live: terminal, element, annotation, review-comment and skill context from a guest (a guest's client has no terminal, diff or skills to make them from), and a guest's /playbook.
Before After
A Collaborate guest types @ and a thread's name A Collaborate guest types @ and a thread's name, before A Collaborate guest types @ and a thread's name, after
A guest pastes an image new A guest pastes an image, after
A View guest's composer new A View guest's composer, after
Before After
A guest's message with a thread mention, on the guest's screen new A guest's message with a thread mention, on the guest's screen, after
The same message on the member's screen new The same message on the member's screen, after

Earlier runs of this layer (sharing with Collaborate, the queue, approvals, promotion, lowering to View) are below, as they were written at the time.

Problem

A guest could be given View only: Collaborate was listed as "coming soon", and the web client could not send for a guest, manage their queued messages, or answer a prompt the way the server allows (#533; Shared conversations AC8 to AC16). The server side is #598 to #600.

What changed

  • Collaborate can be chosen: in the Share dialog, on the People page, in a project's Sharing section and in the thread panel's level menu. Raising someone from View opens "Let … collaborate?", which shows the name that will go on their messages, takes the optional "what they are here for" line, carries the same warning as the Share dialog, and confirms a name the person typed themselves before raising them (the server refuses otherwise). Lowering to View happens at once. If the person is renamed by someone else while the dialog is open, Save does not write the older name back: it shows the new name and asks the member to check it and save again (seen live with two member clients, and by the peer tester). It is not a lock: a Save pressed in the instant before this client has heard of the rename goes through without the notice. In the tester's run that left the other client's new name in place, since a name that was not retyped is not sent; a name the member did retype, or one being confirmed, would be written.
  • The Collaborate line reads "Also send messages to the agent and answer its prompts." The design's line also promised the in-app browser, which is not open to a guest (Share links: a view guest watches the thread's preview tabs #540).
  • A collaborating guest's composer has no attach control and no Stop; the send button always queues behind running work. Mentions and the command menu are upstream's.
  • The queue: each message shows what its author typed, with a name on someone else's. The name is for display only: an editor is handed, and sends back, the typed words. A guest edits and withdraws their own; a member any.
  • An approval offers a guest Approve, Decline and Cancel.
  • Not changed, and still offered to a guest: the model, effort and access pickers (the server drops what a guest sends with them), dragging a file onto the composer (refused by the server with its message), the queue's two keyboard shortcuts, Stop for background work.

One thing differs from the design: on the People page the level control of a person who typed their own name was to be disabled with "Confirm their name first". It is enabled, and choosing Collaborate opens the dialog that confirms the name in the same step, as the design's section 3 describes.

UI changes

New states (no "before" exists for them; the Share dialog's earlier state, with Collaborate marked "coming soon", is in #592):

The Share dialog with Collaborate chosen share
A guest's queue while the agent works: their own message and a member's guest queue
The member's view of the same queue member queue
"Let Sam collaborate?" for a person who typed their own name promote
An approval as a guest is offered it; the "…" menu holds only Cancel approval

No before/after pair for the composer at rest: it looks the same on both sides of this PR, since the attach control is already absent for a guest (the server reports no file uploads to a guest's client).

Live testing

By the builder, first on 483b45fdd5 over #600 at 1fa38e2704; the three checks at the end on 1ca4400d66 over #600 at a479e1d3c6, a fresh test home, headless Chromium (the Browser panel host is unavailable), a member and a guest in separate profiles, real turns on Claude Haiku:

  • The member shares a new thread with Collaborate and a purpose line; the link's meta reads "Collaborate on …".

  • The guest sends a message; the agent answers them by name. Requests between click and outcome: orchestration.getThreadProjection, then orchestration.dispatchCommand (message.dispatch), accepted. The command still carries modelSelection and dispatchMode, which the server drops.

  • The guest asks for a shell command outside their purpose line: the agent declines and names the member. After the member allows it, the approval appears for both; the guest's offers Approve, Decline, Cancel, the member's also "Always allow this session"; the guest approves and the run continues.

  • While the member's turn holds (./scripts/hold.sh): the guest's message queues, the guest edits it (the composer holds their words, without the author line) and the edit reaches the member's queue; the member queues one, which the guest sees as "Jackson M.: …" with Edit, Steer and Remove disabled; the guest withdraws their own. No queue command of the guest's was refused.

  • A guest's client sends upstream's thread.visit when a message arrives and is refused; nothing shows to the guest.

  • A person who joined by a join link as "Sam": the thread panel's level menu opens "Let Sam collaborate?" with the "they gave this name themselves" tag; saving it as "Sam T." renames, confirms and raises in one step, and Sam's open composer changes from the read-only sentence to the normal placeholder without a reload. Lowering Sam to View changes it back, again without a reload.

  • After the server's security changes, on the restacked tips: a Collaborate guest who opens a Crew seat beneath the Captain's thread finds the composer read-only there, with no note, cards or author lines; a guest lowered to View while a message of theirs is queued sees it leave the queue with no error, and the composer goes read-only; a guest named "Jackson (member)" is drawn as "Jackson" with the platform's "guest" tag.

A question prompt was exercised by the peer tester (see #602). A Crew roster is in #602. Tests: 4 new logic test files; the upstream components/chat tests pass (79 files).

Observed, for the server's builder: the note that tells the agent who can write starts a turn of its own ("Understood. This thread is now shared…"), so the guest's first message queued behind it.

Upstream impact

FORK.md case 76 (75 until main took case 74 and the server's case moved up) and the file-table rows; a History line under D33. Every upstream edit is in the table at the top; Jackson approved them on 2026-10-13.

Checklist

  • One concern
  • Tests cover the changed behavior
  • UI changes: new states are shown; the composer at rest is unchanged
  • Live testing: the section above says what ran live and what did not
  • Upstream-owned files: each one is recorded in FORK.md in this PR
  • Upstream product: Jackson approved the edits on 2026-10-13; the register's History line says so
  • Surfaces: web and desktop; mobile is out of scope; Codex and Claude behave alike here (no provider-shaped change)
  • Docs: the user doc for sharing is not written yet

Claude Opus 5.5, Claude Code harness in J5 Code.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Oct 14, 2026 6:49pm UTC

Request Review

@github-actions github-actions Bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Oct 13, 2026
Jacksondr5 added a commit that referenced this pull request Oct 13, 2026
@github-actions github-actions Bot added the size:XL 500-999 effective changed lines (test files excluded in mixed PRs). label Oct 13, 2026
@Jacksondr5
Jacksondr5 added this pull request to stack #583 October 13, 2026 06:46
Jacksondr5 added a commit that referenced this pull request Oct 13, 2026
@Jacksondr5
Jacksondr5 force-pushed the j5code/share-ui-4-collaborate branch from a7d1a16 to 483b45f Compare October 13, 2026 07:02
@Jacksondr5
Jacksondr5 force-pushed the j5code/share-ui-4-collaborate branch from 483b45f to f51d496 Compare October 13, 2026 07:37
@github-actions github-actions Bot added size:XXL 1,000+ effective changed lines (test files excluded in mixed PRs). and removed size:XL 500-999 effective changed lines (test files excluded in mixed PRs). labels Oct 13, 2026
@Jacksondr5
Jacksondr5 force-pushed the j5code/share-ui-4-collaborate branch from f51d496 to 1ca4400 Compare October 13, 2026 07:42
@github-actions github-actions Bot added size:XL 500-999 effective changed lines (test files excluded in mixed PRs). and removed size:XXL 1,000+ effective changed lines (test files excluded in mixed PRs). labels Oct 13, 2026
@Jacksondr5
Jacksondr5 force-pushed the j5code/share-ui-4-collaborate branch from 1ca4400 to c315de4 Compare October 13, 2026 08:21
@Jacksondr5
Jacksondr5 force-pushed the j5code/share-ui-4-collaborate branch from c315de4 to 403b67f Compare October 13, 2026 08:28
@Jacksondr5
Jacksondr5 force-pushed the j5code/share-ui-4-collaborate branch from 403b67f to 59dd1ef Compare October 13, 2026 15:20
Jacksondr5 and others added 17 commits October 14, 2026 14:40
The Share dialog's Collaborate choice, the level controls on the People page,
a project's Sharing section and the thread panel, and the "Let … collaborate?"
dialog, which confirms a name the person gave themselves before raising them.
The Collaborate line says what a collaborator can do today: the in-app browser
is not open to a guest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Text only, three answers to an approval, a follow-up that always queues, no
stopping a run, and a queued edit sent as text. Nothing calls these yet; each
upstream call is its own commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream edit awaiting Jackson's approval: ChatView.tsx, one import and the
condition that draws the Stop button.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream edit awaiting Jackson's approval: ChatView.tsx, the command that
saves an edited queued message passes through J5, which sends a guest's as
text alone. Upstream's edit always carries attachments and context, which the
server refuses from a guest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream edit awaiting Jackson's approval: ChatComposer.tsx, one import, one
hook call, the attach control's condition, and one line that refuses files
added by paste or drop with a plain message. The server refuses a guest's
attachments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream edit awaiting Jackson's approval: ChatComposer.tsx, the menu's list is
empty for a guest (one condition and its dependency). Each entry adds context
or changes a setting, which the server refuses or drops from a guest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream edit awaiting Jackson's approval: ChatComposer.tsx, one line. A
guest's message always queues behind running work, whatever follow-up
behaviour the person has set for their own servers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream edit awaiting Jackson's approval: ChatComposer.tsx, one line. The
approval's answers pass through J5, which leaves a guest Approve, Decline and
Cancel; "for this session" and "always" are a member's to decide and the
server refuses them from a guest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ot answer

Upstream edit awaiting Jackson's approval: ComposerPendingUserInputPanel.tsx,
one line. Dismiss ignored the panel's `disabled`, so a View guest (and a
member's connection without the operate permission) was offered a Dismiss the
server refuses. This reads as a small upstream bug in its own right.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…server's record

The author list is asked for only when a thread holds a text that begins as an
authored message does, and again when the thread brings a new one. With it:
the rules for a queued message (a guest changes and withdraws their own, never
steers or reorders) and the text the queue shows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…guest changes only their own

Upstream edit awaiting Jackson's approval: QueuedRunsControl.tsx, one import,
the list of queued items passed through one J5 hook, and its answer on four
conditions (reorder, Edit, Steer, Remove).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream edit, under the standing permission for one import and one or two
lines that hide what a guest could only see refused: MessagesTimeline.tsx,
one import and two lines in the button that rewinds a thread from a message.
The server refuses a guest's rewind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main took case 74 and the server's case moved to 75, so this layer's case is 76.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…keeps refusing attachments

The server now takes mentions and the other composer context from a Collaborate guest, on a
message and on a queued edit, and still refuses attachments. So the @, $ and / menu opens for
a guest as for anyone, and a guest's edit of a queued message goes as upstream builds it,
context included. Two upstream edits are taken back out: the menu's condition in
ChatComposer.tsx and the wrap of the queued-edit command in ChatView.tsx.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jacksondr5

Copy link
Copy Markdown
Owner Author

Closed unmerged, by Jackson's decision (2026-10-17). The product was redefined from first principles in #631 (People and access, and a reworked Shared conversations), which reverses most of this stack's guest restrictions. The parts that still apply (the author line and note, the launch wrap, the answer records, the cards and notices) will be carried into a single rebuild PR against the new definitions, after the next upstream advance. The branch is kept for reference.

🤖 Generated with Claude Code

@Jacksondr5 Jacksondr5 closed this Oct 18, 2026

This branch was successfully deployed

1 active deployment
Preview — f3b5cf5e Deployed Oct 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL 500-999 effective changed lines (test files excluded in mixed PRs). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant