Skip to content

Add conversation message branching - #310

Open
JeffreyDeng-spec wants to merge 2 commits into
mainfrom
feat/release-branch-feature-rebase
Open

Add conversation message branching#310
JeffreyDeng-spec wants to merge 2 commits into
mainfrom
feat/release-branch-feature-rebase

Conversation

@JeffreyDeng-spec

Copy link
Copy Markdown
Contributor

Summary

  • Add persisted conversation branch metadata for message branches, including fork source task/session/provider and branch lookup helpers.
  • Add branch creation/origin APIs and first-branch-message runtime context so historical message branches fork from the latest completed parent runtime session while preserving the selected root message.
  • Update web chat branching UI, branch quote/default context, and branch sheet return state; update CLI Claude/Codex session fork handling.

Tests run

  • git diff --cached --check
  • pnpm --filter @alook/shared test -- test/queries/conversation-branch.test.ts test/queries/conversation.test.ts test/queries/message.test.ts test/queries/task.test.ts
  • pnpm --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.ts
  • pnpm --filter @alook/cli test -- src/daemon/agent/__tests__/claude.test.ts src/daemon/agent/__tests__/codex.test.ts src/daemon/session-runner.test.ts
  • pnpm typecheck
  • pnpm lint
  • CI=1 pnpm test
  • Pre-commit hook reran pnpm typecheck && pnpm lint && pnpm test successfully.

Known residual risk

  • No known blockers. Residual risk is limited to no live production/staging browser smoke in this handoff; branch behavior is covered by targeted and broad automated tests.

Main branch note

  • No GitHub main content was directly changed. This work is isolated to feat/release-branch-feature-rebase and this PR.

Supersedes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant