Repository navigation
feat(cli): fork a remote session from a message - #15004
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Follow-up commit Files Reviewed (2 files)
Previous Review Summary (commit 8f6c4e2)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 8f6c4e2)Status: No Issues Found | Recommendation: Merge The clone-at-message flow is coherent and well covered. Files Reviewed (12 files)
Reviewed by deepseek-v4.1-flash · Input: 52.7K · Output: 12.3K · Cached: 369.2K Review guidance: REVIEW.md from base branch |
…ts items in ingest order
|
bot: E2E on a VM with the local stack, a dev iOS build, and two |
|
bot: Re-run after a4731fc. Scenario a: the forked transcript now shows each user message before its reply, and the destination has only the turn 1-2 edits. Scenario b: a fork from the turn 3 user message cloned turns 1-2, and the turn 3 text waited unsent in the composer. Scenario e: a CLI built from main is listed without the fork capability, the app shows "Update the Kilo CLI to fork from a message.", and Start session stays disabled. The old CLI received no spawn command. |








bot: Adds a message cut to the remote-session clone, so the mobile app can offer "Fork from here".
Summary
create_sessionacceptscloneUpToMessageId. It is valid only withcloneFromKiloSessionId.fetchCloudSessionForImportsendsupToMessageIdto the session export. It also filters the export on the client, so an older server that ignores the parameter cannot replay edits made after the cut.sessionDiffis dropped, and the files are rebuilt from the per-message summary diffs of the kept messages (the existing fallback).cloud session cut not found.sessionCloneAtMessage: true. Mobile hides the action for CLIs without it.Companion PR
Verification
bun testforcloud-sessions,session-diff-restore,remote-sender,remote-protocol,remote-ws: all pass.typecheckforpackages/opencodeandpackages/kilo-gateway: clean.script/check-opencode-annotations.ts --worktree: no shared upstream files changed.