feat: add model config panel and fix /compact duplicate message

- Add model config UI in settings panel (local/custom mode)
- local mode: read model names from ~/.claude.json env fields
- custom mode: named templates with API key, base URL, model names
- Fix /compact duplicate message via reason field in pendingCompactRetries
- Add CLAUDE.md with architecture notes
This commit is contained in:
cc-dan
2026-03-10 10:13:37 +00:00
parent bb688a171c
commit c59855ee3b
4 changed files with 435 additions and 7 deletions

View File

@@ -519,6 +519,33 @@ body {
line-height: 1.5;
white-space: pre;
}
/* HTML preview */
.code-html-preview {
border-top: 1px solid var(--border-color);
background: var(--bg-secondary);
}
.code-html-preview summary {
padding: 6px 12px;
cursor: pointer;
font-size: 12px;
color: var(--text-secondary);
user-select: none;
list-style: none;
}
.code-html-preview summary::-webkit-details-marker { display: none; }
.code-html-preview summary::before {
content: '▸';
font-size: 11px;
transition: transform 0.2s;
margin-right: 6px;
}
.code-html-preview[open] summary::before { transform: rotate(90deg); }
.code-html-preview iframe {
width: 100%;
min-height: 180px;
border: 0;
background: #fff;
}
/* Tool calls */
.tool-call {