feat: add link for viewing raw build logs in workspace and template build jobs by johnstcn · Pull Request #21727 · coder/coder

@johnstcn johnstcn changed the title feat: add raw text format support for log API endpoints feat: add link to view raw build logs for workspace and template build jobs

Jan 28, 2026

@johnstcn @claude

This adds a `format` query parameter to workspace build logs, workspace
agent logs, template version logs, and template version dry-run logs
endpoints. When `format=text` is specified, logs are returned as plain
text with RFC3339 timestamps instead of JSON.

Each log line is formatted as:
- Provisioner logs: `{timestamp} [{level}] [{source}] {stage}: {output}`
- Agent logs: `{timestamp} [{level}] {output}`

ANSI escape sequences in log output are preserved.

The UI now includes "View raw logs" links:
- Workspace build page (build logs and agent logs tabs)
- Template version editor (output tab)
- Template version page (stats bar)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

@johnstcn johnstcn changed the title feat: add link to view raw build logs for workspace and template build jobs feat: add link for viewing raw build logs in workspace and template build jobs

Jan 29, 2026

@johnstcn johnstcn marked this pull request as ready for review

January 29, 2026 16:36

dannykopping

SasSwart

@johnstcn

Copilot AI review requested due to automatic review settings

February 3, 2026 09:22

@johnstcn

@johnstcn johnstcn deleted the cj/task/raw-text-log-format branch

February 3, 2026 09:45