

























@@ -13,6 +13,7 @@ import type {
1313SessionCompactionCheckpoint,
1414SessionsListResult,
1515} from "../types.ts";
16+import { resolveAgentRuntimeLabel } from "./agents-utils.ts";
16171718export type SessionsProps = {
1819loading: boolean;
@@ -178,7 +179,14 @@ function filterRows(
178179const label = normalizeLowercaseStringOrEmpty(row.label);
179180const kind = normalizeLowercaseStringOrEmpty(row.kind);
180181const displayName = normalizeLowercaseStringOrEmpty(row.displayName);
181-if (key.includes(q) || label.includes(q) || kind.includes(q) || displayName.includes(q)) {
182+const runtime = normalizeLowercaseStringOrEmpty(resolveAgentRuntimeLabel(row.agentRuntime));
183+if (
184+key.includes(q) ||
185+label.includes(q) ||
186+kind.includes(q) ||
187+displayName.includes(q) ||
188+runtime.includes(q)
189+) {
182190return true;
183191}
184192const keyParts = parseSessionKeyParts(row.key);
@@ -543,6 +551,7 @@ export function renderSessions(props: SessionsProps) {
543551 ${sortHeader("key", t("sessionsView.key"), "data-table-key-col")}
544552 <th>${t("sessionsView.label")}</th>
545553 ${sortHeader("kind", t("sessionsView.kind"))}
554+ <th>${t("agents.context.runtime")}</th>
546555 ${sortHeader("updated", t("sessionsView.updated"))}
547556 ${sortHeader("tokens", t("sessionsView.tokens"))}
548557 <th>${t("sessionsView.compaction")}</th>
@@ -556,7 +565,7 @@ export function renderSessions(props: SessionsProps) {
556565 ${paginated.length === 0
557566 ? html`
558567 <tr>
559- <td colspan="11" class="data-table-empty-cell">
568+ <td colspan="12" class="data-table-empty-cell">
560569 ${emptyBecauseFiltered
561570 ? html`
562571 <div class="data-table-empty-state" role="status" aria-live="polite">
@@ -748,6 +757,9 @@ function renderRows(row: GatewaySessionRow, props: SessionsProps) {
748757 <td>
749758 <span class="data-table-badge ${badgeClass}">${row.kind}</span>
750759 </td>
760+ <td class="session-runtime-cell">
761+ <span class="mono">${resolveAgentRuntimeLabel(row.agentRuntime)}</span>
762+ </td>
751763 <td>${updated}</td>
752764 <td class="session-token-cell">${formatSessionTokens(row)}</td>
753765 <td>
@@ -858,7 +870,7 @@ function renderRows(row: GatewaySessionRow, props: SessionsProps) {
858870 ...(isExpanded && hasCheckpoints
859871 ? [
860872html`<tr id=${detailsId} class="session-checkpoint-details-row">
861- <td colspan="11" style="padding: 0;">
873+ <td colspan="12" style="padding: 0;">
862874 <div
863875 style="padding: 14px 16px; border-top: 1px solid var(--border); background: var(--surface-2, rgba(127, 127, 127, 0.05));"
864876 >
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。