feat: add cross conversation messaging

This commit is contained in:
shiyue
2026-06-12 17:46:37 +08:00
parent 8b2173be8f
commit 04e15c9c89
7 changed files with 1033 additions and 111 deletions

View File

@@ -804,6 +804,12 @@ body.session-loading-active {
line-height: 1;
}
.session-item-btn:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.session-item-btn.copy-id {
min-width: 24px;
font-size: 10px;
font-weight: 800;
letter-spacing: 0.02em;
}
.session-item-btn.delete:hover { color: var(--danger); background: var(--accent-light); }
/* Inline edit in sidebar */
.session-item-edit-input {
@@ -872,6 +878,26 @@ body.session-loading-active {
transition: background 0.15s;
}
.chat-title:hover { background: var(--bg-tertiary); }
.chat-session-id-btn {
appearance: none;
max-width: 112px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex-shrink: 0;
border: 1px solid rgba(91, 126, 161, 0.22);
border-radius: 999px;
background: rgba(91, 126, 161, 0.1);
color: var(--info);
padding: 3px 9px;
font-size: 11px;
font-weight: 800;
cursor: pointer;
}
.chat-session-id-btn:hover {
background: rgba(91, 126, 161, 0.16);
border-color: rgba(91, 126, 161, 0.34);
}
.chat-agent-btn {
appearance: none;
font-size: 11px;
@@ -1268,6 +1294,46 @@ body.session-loading-active {
color: #fff;
border-bottom-right-radius: 4px;
}
.msg.user.cross-conversation .msg-avatar {
background: var(--info);
color: #fff;
}
.msg.user.cross-conversation .msg-bubble {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.76), transparent),
rgba(91, 126, 161, 0.1);
border: 1px solid rgba(91, 126, 161, 0.24);
color: var(--text-primary);
box-shadow: 0 10px 22px rgba(45, 31, 20, 0.05);
}
.cross-conversation-meta {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 7px;
color: var(--info);
font-size: 11px;
font-weight: 800;
}
.cross-conversation-label {
min-width: 0;
overflow-wrap: anywhere;
}
.cross-conversation-id-btn {
appearance: none;
border: 1px solid rgba(91, 126, 161, 0.24);
border-radius: 999px;
background: rgba(255, 255, 255, 0.58);
color: var(--info);
padding: 2px 7px;
font: inherit;
font-size: 10px;
cursor: pointer;
}
.cross-conversation-id-btn:hover {
background: rgba(91, 126, 161, 0.14);
}
.msg.assistant .msg-bubble {
background: var(--bg-bubble-assistant);
border: 1px solid var(--border-color);
@@ -2149,6 +2215,12 @@ body.session-loading-active {
.chat-title {
font-size: 13px;
}
.chat-session-id-btn {
max-width: 82px;
padding-left: 7px;
padding-right: 7px;
font-size: 10px;
}
.theme-grid {
grid-template-columns: 1fr;
}