mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
fix: use task display_name in browser tab title (#21147)
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`). Changed `site/src/pages/TaskPage/TaskPage.tsx` to use `task.display_name` for the page title. The `display_name` field is always set by the backend (NOT NULL constraint, auto-generated if empty), so no fallback is needed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.5
parent
90b8ef63b8
commit
67024b80fa
@@ -182,7 +182,7 @@ const TaskPage = () => {
|
||||
|
||||
return (
|
||||
<TaskPageLayout>
|
||||
<title>{pageTitle(task.name)}</title>
|
||||
<title>{pageTitle(task.display_name)}</title>
|
||||
|
||||
<TaskTopbar task={task} workspace={workspace} />
|
||||
{content}
|
||||
|
||||
Reference in New Issue
Block a user