fix(web): align chat row icons and standardize interaction surfaces

This commit is contained in:
2026-10-21 01:33:33 +01:00
parent 2c1d5ccd47
commit 4ab49a2749
4 changed files with 125 additions and 37 deletions
+4 -3
View File
@@ -2109,6 +2109,7 @@ function renderChatRow(session, duplicateTitles = new Set(), home = "") {
},
});
const head = h("span", { class: "row-head" });
head.append(chatBackendLogo(session.backend, activity));
head.append(h("span", { class: "row-title chat-row-title", text: sessionTitle(session) }));
// Only the status word, coloured, with no dot and no operator chip. A closed
// session says so here instead of carrying a second chip.
@@ -2128,11 +2129,11 @@ function renderChatRow(session, duplicateTitles = new Set(), home = "") {
if (model !== "") {
sessionButton.append(h("span", { class: "row-meta chat-row-model muted", text: model }));
}
row.append(sessionButton, chatBackendLogo(session.backend, activity), renderChatActionsMenu(session, duplicateTitles));
row.append(sessionButton, renderChatActionsMenu(session, duplicateTitles));
return row;
}
/** Keep the fixed harness mark current without repainting the list or its rows. */
/** Keep the harness mark current without repainting the list or its rows. */
function refreshChatRowActivity(sessionId, thread) {
const row = document.querySelector(`#chatRows .chat-row[data-session="${CSS.escape(sessionId)}"]`);
const icon = row?.querySelector(".chat-backend-logo");
@@ -2152,7 +2153,7 @@ function refreshChatRowActivity(sessionId, thread) {
* order, the model note and the footer naming the value that will be sent. Every
* server string is set with textContent.
*/
/** One agent's mark on the right of its chat row. */
/** One agent's mark immediately before its chat title. */
function chatBackendLogo(backend, activity = "idle") {
const value = String(backend ?? "").trim().toLowerCase() || "opencode";
const label = chatBackendLabel(value);