Repository navigation
fix(web): a shared conversation's note stays off the timeline minimap - #765
Conversation
In a shared conversation the timeline draws the note the agent was given as a notice entry before the message that carried it. That entry is a user message with the same createdBy, so the minimap's human-authored filter kept it, and the rail showed a clickable item whose preview was the raw <j5_shared_conversation> note. The minimap filter now leaves out a message marked as a shared note. The note set moves to the pure sharedTimeline.logic.ts so the minimap module loads no React or RPC code. FORK.md case 80. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Mark shared-note messages apps/web/src/j5/sharing/sharedTimeline.logic.ts, apps/web/src/j5/sharing/sharedTimeline.ts |
sharedTimeline.logic adds helpers to mark and detect shared-note messages. sharedTimeline uses these helpers when creating shared notes. |
Filter shared notes from the minimap apps/web/src/components/chat/timelineMinimapItems.ts, apps/web/src/components/chat/timelineMinimapItems.test.ts, FORK.md |
The minimap filter excludes shared-note messages. A test checks the remaining entries, and FORK.md records case 80 and its contract ledger entry. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Merge Risk: 
Minimal · up to 0ecd1
-
The change is mergeable; no actionable defects remain.
Pre-merge checks: 
4
-
Full details: Title check
-
Explanation
The title names the main change: a shared conversation's note is kept off the timeline minimap. It follows the fix(web) convention and is one sentence. It matches the raw summary (isHumanAuthoredUserMessage now rejects shared-note messages) and the objectives (filter excludes messages marked as shared notes). It is slightly long at 69 characters, but it is specific and clear.
Full details: Description check
-
Explanation
The pull request description follows the required structure and clearly documents the problem, implementation, UI evidence, live testing, upstream impact, checklist, and authoring harness. It does not include the recommended tracking-issue link or name the focused test file, but these are minor omissions and the description is otherwise complete.
-
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
Brings in from j5/main: - #773 publish the Windows x64 CLI archive and installer - #797 a Collaborator on a thread sees its preview tabs - #662 Fleet: measured ledger and runtime facts - #767 bump J5 Code to 0.0.51 - #769 storage cleanup reads Git 2.56's broken-gitfile message - #765 a shared conversation's note stays off the timeline minimap - #763 a link for one person always names who it is for - #764 widen a person to a project or the server from their People row Adapted to v0.1.3: the minimap's shared-note check lives in J5's minimapMessages.ts; Fleet's keyboard test is a browser test on the browser userEvent, so @testing-library/user-event is not added; Fleet's monitor test follows upstream's awaited-only hold rule; the Windows build pins Node 26.12.1; memo hooks, an em dash, a long comment and an unbudgeted effect from main are fixed for the branch's lint rules. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Problem
In a shared conversation, the note the agent is given (wrapped in
<j5_shared_conversation>) showed up as its own clickable item on the timeline minimap, with the raw note as its preview.What changed
The timeline draws that note as a notice entry just before the message that carried it. The entry is a user message with the same
createdBy, so the minimap's human-authored filter (isHumanAuthoredUserMessage) kept it. The filter now leaves out any message marked as a shared note (isSharedNote). The note still shows in the timeline, and the person's own message stays on the rail.The set that marks notes moves from
sharedTimeline.tsto the puresharedTimeline.logic.ts, so the minimap module loads no React or RPC code.UI changes
The after shot is from a longer thread (5 messages) than the before shot (3). Viewport and rail position are the same.
Live testing
Pass, at 0ecd1c5 (the head), against
origin/j5/main, with real Claude Haiku turns sent through the UI. A peer tester ran it in its own worktree.<j5_shared_conversation>text.Not exercised live: jump-to-message was checked on head only, and on base only the first note was hovered. The first collaborator was removed in step 3 and the script can't add them back, so a second collaborator sent from their own tab. None of the table rows in the skill apply: this changes no turn path, stored state, migration, startup, agent tool, or peering. Nothing needs testing by hand.
Upstream impact
apps/web/src/components/chat/timelineMinimapItems.ts: one import and one condition. FORK.md case 80, and its file-table row.Checklist
FORK.md(case text and file-table row) in this PRClaude Opus 5.5 in J5 Code (Claude Code harness).
🤖 Generated with Claude Code