fix(ui): show the agent's name, not its id, in a workflow's Runs as

This commit is contained in:
sam committed 2026-10-19 01:42:47 +11:00
1 parent 1e56219bbe
commit 12685e264d
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -50,7 +50,7 @@ onMounted(loadAgents);
const identityOptions = computed(() => {
const current = text("identity");
const options = agents.value.map((agent) => ({ value: agent.id, label: agent.display_name }));
return current && !agents.value.some((agent) => agent.id === current) ? [{ value: current, label: `${current} (unknown)`, disabled: true }, ...options] : options;
return current && !identitiesLoading.value && !agents.value.some((agent) => agent.id === current) ? [{ value: current, label: `${current} (unknown)`, disabled: true }, ...options] : options;
});
const settings = useSettingsStore();
@@ -83,6 +83,7 @@ const needs = computed<{ captures?: boolean; gate_retries?: number }>(() => {
<label class="flex min-h-10 items-center gap-3 px-3 py-1.5">
<span class="flex-1 text-[13px]">Runs as</span>
<OptionSelect
:key="String(identitiesLoading)"
:model-value="text('identity')"
:options="identityOptions"
aria-label="Execution identity"