Add clone chat session feature #158
Labels
No labels
Epic 5
MCP
P1
PR-0
PR-1
api
api-layer
architecture
area:backend
area:frontend
arrow
authentication
backend
bug
chat
client
clipboard
common-module
compose
cross-cutting
cross-cutting-requirement
data-layer
data-models
database
desktop-client
documentation
duplicate
enhancement
epic
epic-1
epic-2
epic-3
epic-4
epic-5
epic-6
epic-7
epic-llm-config
error-handling
feature
frontend
good first issue
help wanted
implementation
infrastructure
installer
invalid
kotlin
ktor
llm
medium-priority
message
multiplatform
needs-review
needs-triage
packaging
performance
phase-1
phase-2
phase-3
phase-4
phase-5
phase3
phase:3
priority: high
question
refactor
refactoring
resource-sharing
security
server
server-module
services
session
session-management
settings
setup
shutdown
state
storage
streaming
sub-issue
tests
tooling
type:task
ui
ui/ux
user-accounts
user-management
ux
viewmodel
websocket
windows
windows-integration
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Torvian.eu/chatbot#158
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Feature Description
Add a "Clone" action to the session actions menu that allows users to duplicate an existing chat session with all its messages, tool calls, and configuration.
Requirements
Implementation Steps
1. Add Clone Dialog UI
SessionListDialogState.CloneSessionvariant in SessionListViewModelshowCloneSessionDialog(session)andupdateDialogCloneName(name)functions2. Add Clone Action to UI Layers
onCloneto DialogActions interfaceonShowCloneSessionDialogto SessionListActions interface3. Implement ViewModel Clone Logic
cloneSession(sessionId, newName)function in SessionListViewModelsessionRepository.cloneSession4. Add Repository and API Methods
suspend fun cloneSession(sessionId: Long, request: CloneSessionRequest): Either<RepositoryError, ChatSession>to SessionRepositoryCloneSessionRequest(name: String)data class in common/models/api/coreClonenested resource in SessionResource.kt5. Implement Server Endpoint and Service
SessionResource.ById.Clonein session routesCloneSessionErrorsealed interface (SessionNotFound, InvalidName)suspend fun cloneSession(id: Long, userId: Long, name: String): Either<CloneSessionError, ChatSession>to SessionService6. Implement Service-Level Cloning Logic
In SessionServiceImpl.cloneSession:
Technical Notes
Related Files
Frontend
Common
Backend