Skip to content

Conversation

@bpmct
Copy link
Member

@bpmct bpmct commented Dec 7, 2025

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

Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com

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>
Copy link
Member

@aslilac aslilac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seconded

@bpmct bpmct merged commit 67024b8 into main Dec 10, 2025
35 checks passed
@bpmct bpmct deleted the fix-task-tab-title-21145 branch December 10, 2025 14:51
@github-actions github-actions bot locked and limited conversation to collaborators Dec 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: tasks: <title> of task is the machine name not display name of the task name

4 participants