Skip to content

fix(web): a shared conversation's note stays off the timeline minimap - #765

Merged
Jacksondr5 merged 1 commit into
j5/mainfrom
fix/shared-note-off-minimap
Oct 28, 2026
Merged

Jacksondr5 merged 1 commit into
j5/mainfrom
fix/shared-note-off-minimap

Conversation

@Jacksondr5

@Jacksondr5 Jacksondr5 commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

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.ts to the pure sharedTimeline.logic.ts, so the minimap module loads no React or RPC code.

UI changes

Before After
Minimap in a shared thread. Before: the note has its own item, and its preview is the raw note. After: one item per person's message, each previewing what they typed. before after

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.

  • Sharing a thread with a collaborator puts the note before the next message. On head the rail has one item per person's message and none for the note. On base the note had its own item, previewing the raw <j5_shared_conversation> text.
  • Hover previews show the typed text. Clicking an item jumps to its message.
  • Way back out: after the collaborator was removed, the "can no longer write" note also stays off the rail.
  • A second collaborator's messages, sent from their own tab, appear on the rail in both people's tabs.

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

  • One concern: the description has no "also"
  • Tests cover the changed behavior (backend changes ship with focused tests)
  • UI changes: before/after screenshots above (no motion, so no video)
  • Live testing: the section above says what ran live and what did not
  • Upstream-owned files: each one is recorded in FORK.md (case text and file-table row) in this PR
  • Upstream product: no change to what upstream's product does
  • Surfaces: web and desktop share the minimap. Mobile has no minimap. No contract, provider, or connection-mode change.
  • Docs: nothing documented changes

Claude Opus 5.5 in J5 Code (Claude Code harness).

🤖 Generated with Claude Code

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]>
@vercel

vercel Bot commented Oct 28, 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 28, 2026 3:05am UTC

Request Review

@github-actions github-actions Bot added size:M 30-99 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list. labels Oct 28, 2026
Jacksondr5 added a commit that referenced this pull request Oct 28, 2026
@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between db53393 and 0ecd1c5.

Files selected for processing: 5
  • FORK.md
  • apps/web/src/components/chat/timelineMinimapItems.test.ts
  • apps/web/src/components/chat/timelineMinimapItems.ts
  • apps/web/src/j5/sharing/sharedTimeline.logic.ts
  • apps/web/src/j5/sharing/sharedTimeline.ts

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour.

Walkthrough

Shared-note messages are now marked through sharedTimeline.logic and excluded from chat minimap items. A test verifies the accompanying user message and assistant reply remain represented.

Changes: Shared-note minimap exclusion

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: Low

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: Passed 4
Check name Status Explanation
Title check Passed 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 (isHumanAuthoredUserM…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed 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…
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.

@Jacksondr5
Jacksondr5 merged commit 855d55f into j5/main Oct 28, 2026
37 of 39 checks passed
@Jacksondr5
Jacksondr5 deleted the fix/shared-note-off-minimap branch October 28, 2026 03:49
Jacksondr5 added a commit that referenced this pull request Oct 30, 2026
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]>
Jacksondr5 added a commit that referenced this pull request Nov 23, 2026

This branch was successfully deployed

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

Labels

size:M 30-99 effective changed lines (test files excluded in mixed PRs). vouch:trusted 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