Commit 0e61093
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
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
0 commit comments