feat(conversation): side conversation fork API#383
Open
taekchef wants to merge 4 commits into
Open
Conversation
This was referenced Jun 1, 2026
9e5c92e to
0a5aa4e
Compare
added 4 commits
June 8, 2026 17:03
Expose POST /api/conversations/:id/side to fork ephemeral side threads with hidden guardrail context, optional initial prompt, and cascade delete of ephemeral children when the parent is removed.
0a5aa4e to
7a16ea4
Compare
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
Adds the backend side-conversation fork API used by AionUi's side dock.
This PR provides the backend primitive for creating and restoring side child conversations from a parent conversation, with server-selected fork strategy.
API
POST /api/conversations/{id}/sideCreates a new side child conversation.
Request body:
guardrail?initial_prompt?forked_at_msg_id?Response:
conversation_idcreated: truefork_mode:agent_forkortext_snapshotGET /api/conversations/{id}/sideLists existing side children for a parent conversation so the frontend can restore side tabs after reload.
Fork Policy
claude/opencode/vibeACP backends ->agent_forkcodex,aionrs, and ACP backends without declaredsession/fork->text_snapshotgeminiparent types are rejected by the backend and hidden by the frontendCompatibility
fork_modekeep the previous per-turn enrich path.Related Frontend PR
iOfficeAI/AionUi#3196
Testing
cargo fmt --allcargo check --workspacecargo test -p aionui-ai-agent --libcargo test -p aionui-conversation -p aionui-dbcodex->text_snapshotaionrs->text_snapshotclaude->agent_forkopenclawskipped locally because the copied dev DB had no OpenClaw parent conversation