feat: improve session history with first prompt + clickable monitor rows (closes #45)

This commit is contained in:
arkon
2026-03-22 01:57:17 +01:00
parent e899a43a18
commit 40dfac3534
5 changed files with 106 additions and 24 deletions
+13 -4
View File
@@ -704,9 +704,18 @@ Object.assign(CodemanApp.prototype, {
item.title = s.workingDir;
item.addEventListener('click', () => this.resumeHistorySession(s.sessionId, s.workingDir));
const dirSpan = document.createElement('span');
dirSpan.className = 'history-item-dir';
dirSpan.textContent = shortDir;
const textCol = document.createElement('div');
textCol.className = 'history-item-text';
const titleSpan = document.createElement('span');
titleSpan.className = 'history-item-title';
titleSpan.textContent = s.firstPrompt || shortDir;
const subtitleSpan = document.createElement('span');
subtitleSpan.className = 'history-item-subtitle';
subtitleSpan.textContent = shortDir;
textCol.append(titleSpan, subtitleSpan);
const metaSpan = document.createElement('span');
metaSpan.className = 'history-item-meta';
@@ -716,7 +725,7 @@ Object.assign(CodemanApp.prototype, {
sizeSpan.className = 'history-item-size';
sizeSpan.textContent = size;
item.append(dirSpan, metaSpan, sizeSpan);
item.append(textCol, metaSpan, sizeSpan);
list.appendChild(item);
}