Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

feat(autopilots): show creator in autopilot detail properties (MUL-3139) (#3983)

Naiyuan Qinge15df22e98b5
diff --git a/packages/views/autopilots/components/autopilot-detail-page.tsx b/packages/views/autopilots/components/autopilot-detail-page.tsx
index 9ab085e2df..19df17b08b 100644
--- a/packages/views/autopilots/components/autopilot-detail-page.tsx
+++ b/packages/views/autopilots/components/autopilot-detail-page.tsx
@@ -756,6 +756,24 @@ export function AutopilotDetailPage({ autopilotId }: { autopilotId: string }) {
</span>
</div>
</div>
+ <div>
+ <label className="text-xs text-muted-foreground">{t(($) => $.detail.field_created_by)}</label>
+ <div className="mt-1 flex items-center gap-2">
+ {/* Creator may be a member or an agent: the HTTP create path stamps
+ member today, but backend logic also writes created_by_type=agent.
+ ActorAvatar/getActorName resolve both, so never assume member. */}
+ <ActorAvatar
+ actorType={autopilot.created_by_type}
+ actorId={autopilot.created_by_id}
+ size={20}
+ enableHoverCard
+ showStatusDot={autopilot.created_by_type === "agent"}
+ />
+ <span className="cursor-pointer">
+ {getActorName(autopilot.created_by_type, autopilot.created_by_id)}
+ </span>
+ </div>
+ </div>
<div>
<label className="text-xs text-muted-foreground">{t(($) => $.detail.field_output_mode)}</label>
<div className="mt-1">
diff --git a/packages/views/autopilots/components/autopilots-page.tsx b/packages/views/autopilots/components/autopilots-page.tsx
index 37c52ef1cd..deb9cf4f14 100644
--- a/packages/views/autopilots/components/autopilots-page.tsx
+++ b/packages/views/autopilots/components/autopilots-page.tsx
@@ -160,8 +160,23 @@ function AutopilotRow({ autopilot }: { autopilot: Autopilot }) {
</span>
</span>
- {/* Mode */}
- <span className="text-muted-foreground sm:w-24 sm:shrink-0 sm:text-center">
+ {/* Creator — member or agent, mirror the detail page's Created by field.
+ Secondary info: below lg only assignee + status survive. */}
+ <span className="hidden min-w-0 items-center gap-1.5 text-muted-foreground lg:flex lg:w-32 lg:shrink-0">
+ <ActorAvatar
+ actorType={autopilot.created_by_type}
+ actorId={autopilot.created_by_id}
+ size={18}
+ enableHoverCard
+ showStatusDot={autopilot.created_by_type === "agent"}
+ />
+ <span className="truncate">
+ {getActorName(autopilot.created_by_type, autopilot.created_by_id)}
+ </span>
+ </span>
+
+ {/* Mode — secondary info, lg+ only */}
+ <span className="hidden text-muted-foreground lg:block lg:w-24 lg:shrink-0 lg:text-center">
{t(($) => $.execution_mode[autopilot.execution_mode as AutopilotExecutionMode])}
</span>
@@ -171,8 +186,8 @@ function AutopilotRow({ autopilot }: { autopilot: Autopilot }) {
{t(($) => $.status[autopilot.status as AutopilotStatus])}
</span>
- {/* Last run */}
- <span className="text-muted-foreground tabular-nums sm:w-20 sm:shrink-0 sm:text-right">
+ {/* Last run — secondary info, lg+ only */}
+ <span className="hidden text-muted-foreground tabular-nums lg:block lg:w-20 lg:shrink-0 lg:text-right">
{autopilot.last_run_at ? formatRelativeDate(autopilot.last_run_at) : t(($) => $.page.last_run_empty)}
</span>
</div>
@@ -217,9 +232,10 @@ export function AutopilotsPage() {
<span className="shrink-0 w-4" />
<Skeleton className="h-3 w-12 flex-1 max-w-[48px]" />
<Skeleton className="h-3 w-12 shrink-0" />
+ <Skeleton className="hidden h-3 w-12 shrink-0 lg:block" />
+ <Skeleton className="hidden h-3 w-10 shrink-0 lg:block" />
<Skeleton className="h-3 w-10 shrink-0" />
- <Skeleton className="h-3 w-10 shrink-0" />
- <Skeleton className="h-3 w-12 shrink-0" />
+ <Skeleton className="hidden h-3 w-12 shrink-0 lg:block" />
</div>
<div className="space-y-2 p-4 sm:space-y-1 sm:p-5 sm:pt-1">
{Array.from({ length: 4 }).map((_, i) => (
@@ -269,9 +285,10 @@ export function AutopilotsPage() {
<span className="shrink-0 w-4" />
<span className="min-w-0 flex-1">{t(($) => $.page.table.name)}</span>
<span className="w-32 shrink-0">{t(($) => $.page.table.agent)}</span>
- <span className="w-24 text-center shrink-0">{t(($) => $.page.table.mode)}</span>
+ <span className="hidden w-32 shrink-0 lg:block">{t(($) => $.page.table.created_by)}</span>
+ <span className="hidden w-24 text-center shrink-0 lg:block">{t(($) => $.page.table.mode)}</span>
<span className="w-20 text-center shrink-0">{t(($) => $.page.table.status)}</span>
- <span className="w-20 text-right shrink-0">{t(($) => $.page.table.last_run)}</span>
+ <span className="hidden w-20 text-right shrink-0 lg:block">{t(($) => $.page.table.last_run)}</span>
</div>
{autopilots.map((autopilot) => (
<AutopilotRow key={autopilot.id} autopilot={autopilot} />
diff --git a/packages/views/locales/en/autopilots.json b/packages/views/locales/en/autopilots.json
index 49dcc94c1a..108f018bbf 100644
--- a/packages/views/locales/en/autopilots.json
+++ b/packages/views/locales/en/autopilots.json
@@ -6,6 +6,7 @@
"table": {
"name": "Name",
"agent": "Agent",
+ "created_by": "Created by",
"mode": "Mode",
"status": "Status",
"last_run": "Last run"
@@ -71,6 +72,7 @@
"section_run_history": "Run History",
"section_danger": "Danger Zone",
"field_agent": "Agent",
+ "field_created_by": "Created by",
"field_output_mode": "Output Mode",
"field_project": "Project",
"no_project": "No project",
diff --git a/packages/views/locales/ja/autopilots.json b/packages/views/locales/ja/autopilots.json
index 0ee55ed410..27bedaf627 100644
--- a/packages/views/locales/ja/autopilots.json
+++ b/packages/views/locales/ja/autopilots.json
@@ -6,6 +6,7 @@
"table": {
"name": "名前",
"agent": "エージェント",
+ "created_by": "作成者",
"mode": "モード",
"status": "ステータス",
"last_run": "最終実行"
@@ -71,6 +72,7 @@
"section_run_history": "実行履歴",
"section_danger": "危険な操作",
"field_agent": "エージェント",
+ "field_created_by": "作成者",
"field_output_mode": "出力モード",
"field_project": "プロジェクト",
"no_project": "プロジェクトなし",
diff --git a/packages/views/locales/ko/autopilots.json b/packages/views/locales/ko/autopilots.json
index 6207275697..edfbcbcff6 100644
--- a/packages/views/locales/ko/autopilots.json
+++ b/packages/views/locales/ko/autopilots.json
@@ -6,6 +6,7 @@
"table": {
"name": "이름",
"agent": "에이전트",
+ "created_by": "생성자",
"mode": "모드",
"status": "상태",
"last_run": "마지막 실행"
@@ -71,6 +72,7 @@
"section_run_history": "실행 기록",
"section_danger": "위험 영역",
"field_agent": "에이전트",
+ "field_created_by": "생성자",
"field_output_mode": "출력 모드",
"field_project": "프로젝트",
"no_project": "프로젝트 없음",
diff --git a/packages/views/locales/zh-Hans/autopilots.json b/packages/views/locales/zh-Hans/autopilots.json
index f9679a8731..ae674cda6e 100644
--- a/packages/views/locales/zh-Hans/autopilots.json
+++ b/packages/views/locales/zh-Hans/autopilots.json
@@ -6,6 +6,7 @@
"table": {
"name": "名称",
"agent": "智能体",
+ "created_by": "创建者",
"mode": "模式",
"status": "状态",
"last_run": "上次运行"
@@ -71,6 +72,7 @@
"section_run_history": "运行历史",
"section_danger": "危险操作",
"field_agent": "智能体",
+ "field_created_by": "创建者",
"field_output_mode": "输出模式",
"field_project": "关联项目",
"no_project": "不关联项目",