Show final log output on completed task/worker detail pages#11
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
<pre>box when the task/worker is done, instead of a "streaming is disabled" message.hx-getwithhx-trigger="load"to fetch the stdout log (tasks) or worker logfile (workers) on page load.Test plan
<pre>element🤖 Generated with Claude Code