feat(gui): report actual sections in copy-to feedback#87
Merged
Conversation
The "Copy to sections" result previously reported only a count ("copied
to N sections"). Report the actual section numbers that received the
trace(s) instead, so the message reflects what was truly done rather than
what was requested -- a self-check that surfaces any silently-skipped
targets.
Long contiguous runs collapse to ranges (e.g. "2-5, 10") and the message
uses singular/plural grammar ("section 5" vs "sections 2, 3"). Existing
non-invertible "skipped" reporting is preserved. Message building moves
into a pure format_copy_result helper so it can be unit-tested.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LiM1igjbwUJfVBgR7Y31Kp
dustenhubbard
enabled auto-merge (squash)
July 21, 2026 23:41
dustenhubbard
added a commit
that referenced
this pull request
Jul 23, 2026
The "Copy to sections" result previously reported only a count ("copied
to N sections"). Report the actual section numbers that received the
trace(s) instead, so the message reflects what was truly done rather than
what was requested -- a self-check that surfaces any silently-skipped
targets.
Long contiguous runs collapse to ranges (e.g. "2-5, 10") and the message
uses singular/plural grammar ("section 5" vs "sections 2, 3"). Existing
non-invertible "skipped" reporting is preserved. Message building moves
into a pure format_copy_result helper so it can be unit-tested.
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.
Meeting feedback (07-21): Copy-to-sections should report the sections it ACTUALLY wrote, not a count, as a user self-check.
Before: 'Copied trace(s) to 3 section(s).'
After: 'Copied trace(s) to sections 2, 3, 10, 17.' (contiguous runs collapse: '2-5, 10'; singular/plural handled; skipped/non-invertible sections still reported separately and never appear in the success list).
Message-building extracted to a pure, unit-tested helper. Suite: 1238 passed, 5 pre-existing xfails.
🤖 Generated with Claude Code