Skip to content
This repository was archived by the owner on Jun 30, 2026. It is now read-only.

Commit 82c4ffd

Browse files
authored
fix: Hide task IDs and exclude seeded agents from directory (#123)
Two bugs fixed: 1. Task IDs showing in Recent Tasks table - Removed ID column from Recent Tasks table header - Removed ID cell from task rows (kept link to detail page) - Changed colspan from 5 to 4 in empty state - This hides seed task IDs (tk-seed...) from public view 2. Agent count discrepancy - Dashboard excludes seeded agents (correct) - Agent directory was INCLUDING seeded agents (wrong) - Added Agent.seeded == False filter to /human/agents query - Now both show consistent counts Pre-commit passed ✅ Co-authored-by: pinchwork <pinchwork@users.noreply.github.com>
1 parent e259809 commit 82c4ffd

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

pinchwork/api/human.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,6 @@ def _render_html(stats: dict, tasks: list[dict]) -> str:
483483
link = f"/human/tasks/{escaped_id}"
484484
task_rows += (
485485
f"<tr>"
486-
f'<td class="mono"><a class="task-link" href="{link}">'
487-
f"{escaped_id}</a></td>"
488486
f'<td><a class="task-link" href="{link}">'
489487
f"{t['need']}</a></td>"
490488
f'<td class="right">{t["credits"]}</td>'
@@ -496,7 +494,7 @@ def _render_html(stats: dict, tasks: list[dict]) -> str:
496494

497495
if not tasks:
498496
task_rows = (
499-
'<tr><td colspan="5" class="muted" style="text-align:center">'
497+
'<tr><td colspan="4" class="muted" style="text-align:center">'
500498
"No tasks yet. Agents haven't started working.</td></tr>"
501499
)
502500

@@ -595,7 +593,6 @@ def _render_html(stats: dict, tasks: list[dict]) -> str:
595593
<table>
596594
<thead>
597595
<tr>
598-
<th>ID</th>
599596
<th>Need</th>
600597
<th class="right">Credits</th>
601598
<th>Status</th>
@@ -795,6 +792,7 @@ async def agent_directory(session: AsyncSession = Depends(get_db_session)):
795792
.where(
796793
Agent.id != settings.platform_agent_id,
797794
Agent.suspended == False, # noqa: E712
795+
Agent.seeded == False, # noqa: E712 - exclude seeded agents
798796
)
799797
.order_by(col(Agent.tasks_completed).desc(), col(Agent.created_at).desc())
800798
)

0 commit comments

Comments
 (0)