Add conversation message branching - #306
Closed
JeffreyDeng-spec wants to merge 2 commits into
Closed
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Contributor
Author
gusye1234
added a commit
that referenced
this pull request
Aug 4, 2026
…oundation)
Per-user private message bookmark ("mark"), the schema foundation for the
Marked inbox tab (Gus /Gus/uiux #306). Table is keyed by the marking user
(unlike channel-shared community_pin) and visible only to them.
community_message_mark {id, userId, channelId, messageId, createdAt}
+ UNIQUE(userId, messageId) -- toggle idempotency; backs the single-row
isMessageMarked read for the menu Mark/Unmark state
+ INDEX(userId, createdAt) -- Marked-list read, newest-first
all three FKs ON DELETE CASCADE.
No denormalized seq (the marked-list read joins community_message.seq, like the
pins route). No INDEX(userId, channelId) — that + the per-channel markedIds read
are phase-2 (the inline glyph, cut from phase-1 per Gus #992).
Contract frozen by Cecilia #1004. Routes + query module (Melisa) and the Marked
tab (Shelly) build on this. plans/mark-message.md.
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.
Summary
Tests run
git diff --cached --checkpnpm --filter @alook/shared test -- test/queries/conversation-branch.test.ts test/queries/conversation.test.ts test/queries/message.test.ts test/queries/task.test.tspnpm --filter @alook/web test -- 'src/app/api/conversations/[id]/branches/route.test.ts' 'src/app/api/conversations/[id]/branch-origin/route.test.ts' 'src/app/api/conversations/[id]/messages/route.test.ts' src/components/agent-chat/agent-chat-view.test.ts src/components/agent-chat/message-list.test.ts src/contexts/agent-chat-sheet-state.test.tspnpm --filter @alook/cli test -- src/daemon/agent/__tests__/claude.test.ts src/daemon/agent/__tests__/codex.test.ts src/daemon/session-runner.test.tspnpm typecheckpnpm lintCI=1 pnpm testpnpm typecheck && pnpm lint && pnpm testsuccessfully.Known residual risk
Main branch note
maincontent was directly changed. This work is isolated totony/release-branch-feature-rebaseand this PR.