Repository navigation
fix(j5): a shared conversation's lines stay off search, forks, recall and titles - #731
Merged
Merged
Conversation
… and titles In a shared conversation the server stores each person's message with the platform's note and author line in front, for the agent. Upstream surfaces that read the stored text showed them: the search snippet (and a word only in the note matched), a fork's inherited messages, up-arrow recall, and the text the title model was given (#612). Each surface now takes off exactly the message's recorded stored_prefix, as J5's timeline already does. The agent still receives the stored text. - Search: ThreadSearch's query left-joins j5_a2a_message_author and matches and snippets the typed text (J5-owned SQL fragments). - Title: a J5 decorator of ThreadManagementService.getThreadRecords, provided to the title generator alone. - Fork: listThreadAuthors also returns the author records of the messages a fork inherits, so the existing client strip covers the fork. No upstream edit. - Recall: ChatComposer passes the thread's messages through a J5 helper on the key press. typedText moves to contracts so server and web share it. FORK.md case 86. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
… costs nothing unshared Round 2 on #731 (review findings): - A fork's inherited author records are told only as far as its reader could know them: in full when participantVisible lets them know the writer, otherwise only the prefix to strip, and not at all for a record with no prefix (a slash command). - Up-arrow recall offers each person's message as the timeline last showed it, and nothing while the timeline still holds it back for its author, so no platform line reaches a draft. - Search asks once per query whether any message carries a prefix; a server with none does no per-message work, and the snippet is stripped only on the rows returned. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ored text does Co-Authored-By: Claude Opus 5.5 <[email protected]>
Jacksondr5
added a commit
that referenced
this pull request
Oct 27, 2026
…it shows begins with its lines An edit's author record is written before upstream takes the edit, so a refused edit left a record naming an editor the stored text does not. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Jacksondr5
marked this pull request as ready for review
October 27, 2026 01:46
6 of 8 tasks
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In a shared conversation, J5 stores each person's message with the platform's text in front: the author line (
[Message from Priya (collaborator)]) and, on some messages, the<j5_shared_conversation>note. The agent needs them. J5's own timeline takes them off, but upstream's screens that read the stored text showed them: search snippets (and a word only in the note found the thread), forks, up-arrow recall, and the generated title (a first message of "hi" produced "Shared Conversation Greeting"). Closes #612.What changed
The lines stay stored and reach the agent exactly as before (Jackson's 2026-10-26 decision on #612). Each surface takes off exactly the prefix J5 recorded for that message (
j5_a2a_message_author.stored_prefix); a message with no record, or whose text doesn't begin with it, is shown as stored. One strip,typedText, now lives inpackages/contracts/src/j5/sharedConversation.tsfor the server and web.j5/sharing/typedMessageText.ts)sharedPromptHistoryMessages)j5/sharing/titleSource.ts)Search cost (synthetic SQLite, 100k messages, median of 41 runs): with no shared conversations, a broad query ("the") is 271 ms upstream and 280 ms here (+3%); with 10% of threads shared it is 272 ms vs 327 ms (+20%), from reading the author record for each matching row. Selective queries are unchanged.
Left as they are:
[Answer from …]in the question tool row, accepted on Shared conversations: upstream surfaces that show a stored message's text show the platform's lines #612. Mobile, with the rest of sharing on mobile (Share links: sharing on mobile #609).UI changes
Before is
j5/main882256d091, after is5423f1d47c, on the same data, 1280×800, light theme. People: the Owner; Priya, a Collaborator on the thread; Dana, a Collaborator on the project; Vera and Wren, Viewers of a fork only.After only: Wren, Viewer of a fork only, sees a source Collaborator's slash command as a plain message with no name.
Live testing
Pass, by a Sonnet 5.5 tester, on two live-test servers built from
j5/mainand5423f1d47cwith the same scenario. Agent turns on Claude Haiku 5.5.[Message from Dana (collaborator)], and the agent's replies name who wrote.j5/main.Not exercised:
sharedTimeline.logic.test.ts.154b504709,0885aab49f). Together they narrow what a fork tells its reader about a source message: an author record is passed on only when the stored text the fork shows begins with that record's line. A source slash command in a fork therefore shows as a plain message with no name, for every signed-in reader, as Wren's capture shows. A refused edit no longer names its would-be editor. Regression tests inSharedConversation.test.tscover both.Review: GPT-6-Astra, three rounds.
154b504709. It measured search independently, at +3% and +19%, and accepted that cost.0885aab49fby the stored-text rule. The underlying ordering predates this PR and is filed as A refused edit to a queued message in a shared conversation still records "edited by" #738.Upstream impact
FORK.md case 86:
apps/server/src/orchestration-v2/ThreadSearch.ts(the join and the typed-text match),apps/server/src/orchestration-v2/runtimeLayer.ts(the title generator's message source),apps/web/src/components/chat/ChatComposer.tsx(recall). What upstream's product does is unchanged except that these screens show what the person typed.Checklist
typedMessageText.test.ts,titleSource.test.ts, a fork case inSharedConversation.test.ts)FORK.md(case text and file-table row) in this PRBuilt by Claude Opus 5.5 in J5 Code (Claude Code harness).
🤖 Generated with Claude Code