feat: enhance codex app and cross-conversation messaging

This commit is contained in:
shiyue
2026-06-13 22:13:30 +08:00
parent 04e15c9c89
commit 4a1c988990
10 changed files with 3740 additions and 179 deletions

View File

@@ -661,6 +661,10 @@ body.session-loading-active {
.session-project-group {
margin: 0 0 12px;
}
.session-pinned-group {
padding-bottom: 8px;
border-bottom: 1px solid rgba(221, 208, 192, 0.72);
}
.session-project-header {
position: sticky;
top: 0;
@@ -729,6 +733,9 @@ body.session-loading-active {
outline: 2px solid rgba(192, 85, 58, 0.22);
outline-offset: 2px;
}
.session-pinned-header {
color: var(--accent);
}
.session-item {
display: flex;
align-items: center;
@@ -741,6 +748,16 @@ body.session-loading-active {
}
.session-item:hover { background: var(--bg-tertiary); }
.session-item.active { background: var(--accent-light); }
.session-item.pinned::before {
content: '';
position: absolute;
left: 4px;
top: 9px;
bottom: 9px;
width: 3px;
border-radius: 999px;
background: var(--accent);
}
.session-item-main {
flex: 1;
min-width: 0;
@@ -757,6 +774,16 @@ body.session-loading-active {
color: var(--text-primary);
}
.session-item.active .session-item-title { color: var(--accent); font-weight: 500; }
.session-item-pin-badge {
flex-shrink: 0;
padding: 1px 5px;
border-radius: 999px;
background: rgba(192, 85, 58, 0.11);
color: var(--accent);
font-size: 10px;
font-weight: 800;
line-height: 1.4;
}
.session-item-status {
display: inline-flex;
align-items: center;
@@ -810,6 +837,18 @@ body.session-loading-active {
font-weight: 800;
letter-spacing: 0.02em;
}
.session-item-btn.pin {
min-width: 24px;
font-weight: 800;
}
.session-item-btn.pin.active {
color: var(--accent);
background: rgba(192, 85, 58, 0.1);
}
.session-item-btn.pin:hover {
color: var(--accent);
background: rgba(192, 85, 58, 0.12);
}
.session-item-btn.delete:hover { color: var(--danger); background: var(--accent-light); }
/* Inline edit in sidebar */
.session-item-edit-input {
@@ -1028,6 +1067,8 @@ body.session-loading-active {
overflow-x: hidden;
padding: 16px;
padding-right: 20px;
padding-bottom: 24px;
scroll-padding-bottom: 24px;
display: flex;
flex-direction: column;
gap: 12px;
@@ -1298,6 +1339,9 @@ body.session-loading-active {
background: var(--info);
color: #fff;
}
.msg.user.cross-conversation-reply .msg-avatar {
background: var(--success);
}
.msg.user.cross-conversation .msg-bubble {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.76), transparent),
@@ -1306,6 +1350,22 @@ body.session-loading-active {
color: var(--text-primary);
box-shadow: 0 10px 22px rgba(45, 31, 20, 0.05);
}
.msg.user.cross-conversation-reply .msg-bubble {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.78), transparent),
rgba(93, 138, 84, 0.12);
border-color: rgba(93, 138, 84, 0.28);
}
.msg.user.cross-conversation-reply .cross-conversation-meta,
.msg.user.cross-conversation-reply .cross-conversation-id-btn {
color: var(--success);
}
.msg.user.cross-conversation-reply .cross-conversation-id-btn {
border-color: rgba(93, 138, 84, 0.28);
}
.msg.user.cross-conversation-reply .cross-conversation-id-btn:hover {
background: rgba(93, 138, 84, 0.14);
}
.cross-conversation-meta {
display: flex;
align-items: center;
@@ -1340,24 +1400,6 @@ body.session-loading-active {
border-bottom-left-radius: 4px;
color: var(--text-primary);
}
.msg.note {
align-self: flex-end;
flex-direction: row-reverse;
max-width: min(680px, 85%);
}
.msg.note .note-avatar {
background: var(--note-accent);
color: #fff;
}
.msg.note .note-bubble {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent),
var(--note-bg);
border: 1px solid var(--note-border);
border-bottom-right-radius: 4px;
color: var(--text-primary);
box-shadow: 0 10px 22px rgba(45, 31, 20, 0.05);
}
.note-meta {
margin-bottom: 6px;
color: var(--note-accent);
@@ -1452,6 +1494,11 @@ body.session-loading-active {
/* Markdown content */
.msg-bubble p { margin: 0 0 8px 0; }
.msg-bubble p:last-child { margin-bottom: 0; }
.msg-bubble hr {
border: 0;
border-top: 1px solid rgba(122, 104, 82, 0.22);
margin: 10px 0 11px;
}
.msg-bubble ul, .msg-bubble ol { margin: 4px 0 8px 20px; }
.msg-bubble li { margin-bottom: 2px; }
.msg-bubble h1, .msg-bubble h2, .msg-bubble h3, .msg-bubble h4 {
@@ -1585,7 +1632,7 @@ body.session-loading-active {
color: var(--text-secondary);
background: var(--bg-secondary);
display: flex;
align-items: anchor-center;
align-items: center;
gap: 8px;
user-select: none;
list-style: none;
@@ -1891,7 +1938,7 @@ body.session-loading-active {
30% { transform: translateY(-7px); }
}
/* === Slash Command Menu === */
/* === Composer Modifier Menu === */
.cmd-menu {
position: absolute;
bottom: 80px;
@@ -1904,27 +1951,64 @@ body.session-loading-active {
padding: 6px;
min-width: 240px;
max-width: 320px;
max-height: min(52vh, 360px);
overflow-y: auto;
overscroll-behavior: contain;
z-index: 50;
}
.cmd-menu::-webkit-scrollbar { width: 8px; }
.cmd-menu::-webkit-scrollbar-track { background: transparent; }
.cmd-menu::-webkit-scrollbar-thumb {
background: rgba(95, 74, 58, 0.22);
border-radius: 999px;
}
.cmd-menu::-webkit-scrollbar-thumb:hover {
background: rgba(95, 74, 58, 0.34);
}
.cmd-item {
display: flex;
align-items: center;
align-items: flex-start;
gap: 10px;
padding: 10px 14px;
border-radius: 8px;
cursor: pointer;
transition: background 0.12s;
min-width: 0;
}
.cmd-item:hover, .cmd-item.active { background: var(--accent-light); }
.cmd-item-kind {
flex: 0 0 auto;
min-width: 42px;
padding: 2px 6px;
border-radius: 6px;
background: rgba(192, 85, 58, 0.1);
color: var(--accent);
font-size: 10px;
font-weight: 800;
line-height: 1.4;
text-align: center;
text-transform: uppercase;
}
.cmd-item-main {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.cmd-item-cmd {
font-weight: 600;
font-size: 14px;
color: var(--accent);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.cmd-item-desc {
font-size: 13px;
color: var(--text-secondary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* === Input Area === */
@@ -2001,9 +2085,63 @@ body.session-loading-active {
font-size: 12px;
line-height: 1.55;
}
.pending-notes-tray {
display: flex;
flex-direction: column;
gap: 8px;
width: 100%;
max-width: 800px;
max-height: min(32vh, 220px);
margin: 0 auto 10px;
padding: 2px 3px;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: var(--note-border) transparent;
}
.pending-notes-tray[hidden] {
display: none;
}
.pending-notes-tray::-webkit-scrollbar {
width: 6px;
}
.pending-notes-tray::-webkit-scrollbar-thumb {
background: var(--note-border);
border-radius: 999px;
}
.pending-note {
display: grid;
grid-template-columns: 28px minmax(0, 1fr);
align-items: start;
gap: 8px;
animation: fadeIn 0.2s ease;
}
.pending-note .note-avatar {
width: 28px;
height: 28px;
border-radius: 9px;
display: flex;
align-items: center;
justify-content: center;
background: var(--note-accent);
color: #fff;
font-size: 12px;
font-weight: 800;
flex-shrink: 0;
}
.pending-note .note-bubble {
min-width: 0;
padding: 10px 12px;
border-radius: 12px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent),
var(--note-bg);
border: 1px solid var(--note-border);
color: var(--text-primary);
box-shadow: 0 8px 18px rgba(45, 31, 20, 0.05);
}
.input-wrapper {
display: flex;
align-items: anchor-center;
align-items: center;
gap: 8px;
background: #fff;
border: 1px solid var(--border-color);
@@ -2011,6 +2149,7 @@ body.session-loading-active {
padding: 8px 12px;
max-width: 800px;
margin: 0 auto;
width: 100%;
transition: border-color 0.2s, box-shadow 0.2s;
}
.input-wrapper.drag-active {
@@ -2087,6 +2226,7 @@ body.session-loading-active {
}
#msg-input {
flex: 1;
min-width: 0;
background: transparent;
border: none;
color: var(--text-primary);
@@ -2204,7 +2344,11 @@ body.session-loading-active {
.menu-btn { display: block; }
.msg { max-width: 95%; }
.input-area { padding: 8px 10px; padding-bottom: max(10px, var(--safe-bottom)); }
.messages { padding: 12px 8px; gap: 10px; }
.messages {
padding: 12px 8px 24px;
scroll-padding-bottom: 24px;
gap: 10px;
}
.session-item-actions { display: flex; }
.cmd-menu { left: 10px; right: 10px; transform: none; min-width: auto; bottom: 72px; }
.option-picker { left: 10px; right: 10px; transform: none; min-width: auto; bottom: 72px; }
@@ -2252,7 +2396,9 @@ body.session-loading-active {
.attach-btn { width: 34px; height: 34px; border-radius: 10px; }
.note-mode-btn { width: 34px; height: 34px; border-radius: 10px; }
.send-btn, .abort-btn { width: 34px; height: 34px; }
.msg.note { max-width: 92%; }
.pending-notes-tray { max-height: 34vh; margin-bottom: 8px; }
.pending-note { grid-template-columns: 26px minmax(0, 1fr); gap: 7px; }
.pending-note .note-avatar { width: 26px; height: 26px; border-radius: 8px; font-size: 11px; }
.note-actions { gap: 5px; }
.note-action { min-height: 28px; padding: 0 8px; }
.note-edit-input { min-width: 0; }
@@ -3037,6 +3183,81 @@ html[data-theme='coolvibe'] .settings-back:hover {
line-height: 1.5;
word-break: break-all;
}
.codex-user-input-panel {
max-width: 520px;
}
.codex-user-input-body {
display: flex;
flex-direction: column;
gap: 16px;
}
.codex-user-input-question {
display: flex;
flex-direction: column;
gap: 10px;
}
.codex-user-input-kicker {
font-size: 12px;
font-weight: 700;
color: var(--accent);
}
.codex-user-input-prompt {
color: var(--text-primary);
font-size: 15px;
line-height: 1.5;
}
.codex-user-input-options {
display: flex;
flex-direction: column;
gap: 8px;
}
.codex-user-input-option {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 10px 12px;
border: 1px solid var(--border-color);
border-radius: 8px;
background: var(--bg-primary);
cursor: pointer;
}
.codex-user-input-option:hover {
border-color: rgba(192, 85, 58, 0.36);
}
.codex-user-input-option input[type='radio'] {
margin-top: 3px;
}
.codex-user-input-option-copy {
min-width: 0;
flex: 1;
display: flex;
flex-direction: column;
gap: 4px;
}
.codex-user-input-option-label {
color: var(--text-primary);
font-weight: 600;
font-size: 14px;
}
.codex-user-input-option-desc {
color: var(--text-muted);
font-size: 12px;
line-height: 1.4;
}
.codex-user-input-text {
width: 100%;
margin-top: 4px;
padding: 8px 10px;
background: #fff;
border: 1px solid var(--border-color);
border-radius: 8px;
color: var(--text-primary);
font: inherit;
outline: none;
}
.codex-user-input-text:focus {
border-color: var(--accent);
}
.modal-quick-picks {
display: flex;
flex-wrap: wrap;