mirror of
https://github.com/bal-spec/sillytavern-character-memory.git
synced 2026-04-28 03:39:44 +00:00
- Add collapsible Activity Log panel that shows timestamped events: chat switches, extraction state, message collection, LLM responses - Fix bug where lastExtractedIndex advanced even when LLM returned NO_NEW_MEMORIES, preventing subsequent manual extraction from processing messages on a switched-to chat - Now only advance lastExtractedIndex when memories are actually saved; always reset messagesSinceExtraction to prevent re-trigger loops Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
263 lines
4.6 KiB
CSS
263 lines
4.6 KiB
CSS
.charMemory_settings .inline-drawer-content {
|
|
padding: 5px 0;
|
|
}
|
|
|
|
.charMemory_statusRow {
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.charMemory_buttonRow {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.charMemory_sliderRow {
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.charMemory_sliderRow input[type="range"] {
|
|
width: 100%;
|
|
}
|
|
|
|
.charMemory_promptSection {
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.charMemory_promptSection textarea {
|
|
width: 100%;
|
|
resize: vertical;
|
|
min-height: 100px;
|
|
}
|
|
|
|
/* Stats bar */
|
|
.charMemory_statsBar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin: 4px 0 8px;
|
|
}
|
|
|
|
.charMemory_statItem {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.1));
|
|
border-radius: 4px;
|
|
padding: 4px 8px;
|
|
font-size: 0.85em;
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.charMemory_statItem i {
|
|
opacity: 0.6;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.charMemory_statItem span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* Helper text */
|
|
.charMemory_helperText {
|
|
display: block;
|
|
font-size: 0.8em;
|
|
opacity: 0.5;
|
|
margin-top: 2px;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
/* Separator */
|
|
.charMemory_separator {
|
|
border: none;
|
|
border-top: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.2));
|
|
margin: 10px 0;
|
|
}
|
|
|
|
/* Danger button */
|
|
.charMemory_dangerBtn {
|
|
color: var(--SmartThemeQuoteColor, #c44);
|
|
}
|
|
|
|
/* Diagnostics */
|
|
.charMemory_diagnosticsContent {
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.charMemory_diagTimestamp {
|
|
font-size: 0.85em;
|
|
opacity: 0.7;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.charMemory_diagSection {
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.charMemory_diagCard {
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.1));
|
|
border-radius: 4px;
|
|
padding: 6px 8px;
|
|
margin: 4px 0;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.charMemory_diagCardTitle {
|
|
font-weight: bold;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.charMemory_diagCardKeys {
|
|
font-size: 0.85em;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.charMemory_diagCardContent {
|
|
font-size: 0.85em;
|
|
opacity: 0.7;
|
|
white-space: pre-wrap;
|
|
max-height: 100px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.charMemory_diagEmpty {
|
|
font-size: 0.85em;
|
|
opacity: 0.5;
|
|
font-style: italic;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
/* Activity Log */
|
|
.charMemory_logEntry {
|
|
padding: 2px 4px;
|
|
border-bottom: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.1));
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.charMemory_logTime {
|
|
opacity: 0.5;
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.charMemory_log_success {
|
|
color: var(--SmartThemeQuoteColor, #4a4);
|
|
}
|
|
|
|
.charMemory_log_warning {
|
|
color: orange;
|
|
}
|
|
|
|
.charMemory_log_error {
|
|
color: var(--SmartThemeQuoteColor, #c44);
|
|
}
|
|
|
|
/* Memory Manager Popup */
|
|
.charMemory_manager {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
max-height: 60vh;
|
|
overflow-y: auto;
|
|
padding: 4px;
|
|
}
|
|
|
|
.charMemory_card {
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.1));
|
|
border-radius: 6px;
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.charMemory_cardHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.charMemory_cardTitle {
|
|
font-weight: bold;
|
|
font-size: 0.95em;
|
|
}
|
|
|
|
.charMemory_cardTimestamp {
|
|
font-size: 0.8em;
|
|
opacity: 0.6;
|
|
flex: 1;
|
|
}
|
|
|
|
.charMemory_cardActions {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
.charMemory_cardBullets {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.charMemory_bulletRow {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
padding: 3px 0;
|
|
border-top: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.15));
|
|
}
|
|
|
|
.charMemory_bulletRow:first-child {
|
|
border-top: none;
|
|
}
|
|
|
|
.charMemory_bulletText {
|
|
flex: 1;
|
|
font-size: 0.9em;
|
|
line-height: 1.4;
|
|
min-width: 0;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.charMemory_bulletActions {
|
|
display: flex;
|
|
gap: 4px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.charMemory_bulletActions .menu_button_icon {
|
|
padding: 2px 6px;
|
|
font-size: 0.85em;
|
|
min-width: unset;
|
|
}
|
|
|
|
/* Per-message buttons — inherit .mes_button base styling from ST */
|
|
.charMemory_extractHereBtn,
|
|
.charMemory_pinMemoryBtn {
|
|
cursor: pointer;
|
|
opacity: 0.7;
|
|
transition: opacity 0.15s;
|
|
}
|
|
.charMemory_extractHereBtn:hover,
|
|
.charMemory_pinMemoryBtn:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Memory extracted indicator */
|
|
.charMemory_extractedIndicator {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
margin-left: 4px;
|
|
opacity: 0.35;
|
|
color: var(--SmartThemeBodyColor, #ccc);
|
|
font-size: 0.75em;
|
|
vertical-align: middle;
|
|
cursor: default;
|
|
}
|
|
.charMemory_extractedIndicator:hover {
|
|
opacity: 0.7;
|
|
}
|