Skip to content

Show final log output on completed task/worker detail pages#11

Merged
turtlemonvh merged 3 commits into
masterfrom
ai/show-final-log
Apr 16, 2026
Merged

Show final log output on completed task/worker detail pages#11
turtlemonvh merged 3 commits into
masterfrom
ai/show-final-log

Conversation

@turtlemonvh
Copy link
Copy Markdown
Owner

Summary

  • Task and worker detail pages now show the full log content in the same styled <pre> box when the task/worker is done, instead of a "streaming is disabled" message.
  • Uses hx-get with hx-trigger="load" to fetch the stdout log (tasks) or worker logfile (workers) on page load.
  • Same visual experience whether you watched the log live or navigated to the page after completion.

Test plan

  • Updated Playwright test: stopped worker detail page shows the log <pre> element
  • All 22 Playwright tests pass
  • All Go and smoke tests pass

🤖 Generated with Claude Code

turtlemonvh and others added 3 commits April 15, 2026 23:16
Instead of "streaming is disabled" when a task or worker is done,
load the full stdout/logfile into the same styled <pre> via
hx-get on page load. Users now see the same log view whether they
were watching live or navigated to the page after completion.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Large task/worker logs could overwhelm the browser when loaded in
full. Add /task/:id/log/tail and /worker/:id/log/tail endpoints
that return the last N lines (default 500, configurable via ?n=).
Detail page templates now use these tail endpoints instead of
fetching the full file. Users can still access full logs via the
download links in the metadata table.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@turtlemonvh turtlemonvh merged commit b7ba99f into master Apr 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant