feat: add session rename, shell mode, and UI improvements

- Add session name property with rename API endpoint
- Add shell session mode (plain bash/zsh without Claude)
- Add gear icon on session tabs for options (rename)
- Add mode indicator on tabs for shell sessions
- Rename "Quick Start" button to "Run Claude"
- Add "Shell" button to start plain shell sessions
- Replace cost counter with total token counter
- Add session options modal for renaming

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-01-19 01:26:38 +01:00
co-authored by Claude Opus 4.5
parent 4903c45ec9
commit dc5c874b11
5 changed files with 331 additions and 15 deletions
+54 -2
View File
@@ -180,13 +180,47 @@ body {
.status-dot.connected { background: var(--green); }
.status-dot.disconnected { background: var(--red); }
.header-cost {
.header-tokens {
font-size: 0.75rem;
font-weight: 500;
color: var(--green);
color: var(--accent-hover);
font-family: 'SF Mono', Monaco, monospace;
}
/* Session tab gear icon */
.session-tab .tab-gear {
opacity: 0;
padding: 0 0.2rem;
font-size: 0.75rem;
line-height: 1;
color: var(--text-muted);
cursor: pointer;
transition: opacity 0.15s;
}
.session-tab:hover .tab-gear {
opacity: 1;
}
.session-tab .tab-gear:hover {
color: var(--accent-hover);
}
/* Mode indicator on session tab */
.session-tab .tab-mode {
font-size: 0.6rem;
padding: 1px 4px;
border-radius: 3px;
background: var(--bg-hover);
color: var(--text-muted);
text-transform: uppercase;
}
.session-tab .tab-mode.shell {
background: rgba(234, 179, 8, 0.2);
color: var(--yellow);
}
/* Timer Banner - Compact */
.timer-banner {
display: flex;
@@ -675,6 +709,24 @@ body {
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.modal-content.modal-sm {
max-width: 320px;
}
.session-mode-display,
.session-dir-display {
padding: 0.5rem 0.75rem;
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 4px;
color: var(--text-dim);
font-size: 0.8rem;
font-family: 'SF Mono', Monaco, monospace;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.modal-header {
display: flex;
justify-content: space-between;