Skip to content

Commit 0e61093

Browse files
bpmctclaude
andcommitted
fix: use task display_name in browser tab title
Fixes #21145 The browser tab title for tasks was showing the machine-readable name (e.g., "kyle/my-workspace.main") instead of the user-friendly display name (e.g., "Create Documentation"). This change updates the TaskPage component to use task.display_name for the browser tab title, making it consistent with how task names are displayed elsewhere in the UI (TaskTopbar, TasksTable, TasksSidebar). The display_name field is always set by the backend: - Database schema defines it as NOT NULL DEFAULT '' (migration 000400) - Backend code always generates a display name if not provided (coderd/aitasks.go:120-130) - TypeScript types define it as required (not optional) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 82bb833 commit 0e61093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/pages/TaskPage/TaskPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ const TaskPage = () => {
182182

183183
return (
184184
<TaskPageLayout>
185-
<title>{pageTitle(task.name)}</title>
185+
<title>{pageTitle(task.display_name)}</title>
186186

187187
<TaskTopbar task={task} workspace={workspace} />
188188
{content}

0 commit comments

Comments
 (0)