Skip to content

Fix: Copy only visible filtered logs from the UI#6743

Merged
nicks merged 3 commits intotilt-dev:masterfrom
alonfaraj:fix/copy-visible-filtered-logs
Apr 21, 2026
Merged

Fix: Copy only visible filtered logs from the UI#6743
nicks merged 3 commits intotilt-dev:masterfrom
alonfaraj:fix/copy-visible-filtered-logs

Conversation

@alonfaraj
Copy link
Copy Markdown
Contributor

Problem

The Copy button in the log UI was copying the entire underlying log buffer for the current scope, even when the user had narrowed the view with search or other log filters. That meant the pasted result did not match what was actually visible on screen.

Solution

Updated the copy flow to use the active filterSet and the same display-filtering rules as the log pane, so Copy now includes only the currently shown log lines. This covers search term filtering, source filtering, level filtering, etc.
Added regression tests for filtered copying, while preserving existing behavior for unfiltered copy cases.

@alonfaraj alonfaraj force-pushed the fix/copy-visible-filtered-logs branch 2 times, most recently from 41a939d to 48635f1 Compare April 12, 2026 09:30
Copy link
Copy Markdown
Member

@nicks nicks left a comment

Choose a reason for hiding this comment

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

thanks for taking this on!

Comment thread web/src/logs.ts Outdated
Signed-off-by: Alon Faraj <alonfaraj@gmail.com>
Signed-off-by: Alon Faraj <alonfaraj@gmail.com>
Signed-off-by: Alon Faraj <alonfaraj@gmail.com>
@alonfaraj alonfaraj force-pushed the fix/copy-visible-filtered-logs branch from 93030d8 to 7ae3528 Compare April 15, 2026 16:36
@alonfaraj
Copy link
Copy Markdown
Contributor Author

@nicks LMKWYT 🙂

Copy link
Copy Markdown
Member

@nicks nicks left a comment

Choose a reason for hiding this comment

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

lgtm!

@nicks nicks merged commit 8b72356 into tilt-dev:master Apr 21, 2026
8 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.

2 participants