feat(sessions): surface @-tagged file attachments in turn view - #35
Merged
Conversation
Parse `attachment` entries from JSONL and attach them to the preceding user turn so the UI can show which files were @-mentioned. Also strip IDE-injected `<ide_opened_file>` / `<ide_selection>` tags from user content and session summaries. On the frontend, render attachment chips on user turns, highlight `@path` mentions inline (in prompt bodies and session summaries), and make the Sessions tab responsive on narrow viewports — list and detail now swap instead of overlapping, with a back button and auto-scroll to the selected session.
Adds a SessionParser case for attachments arriving prior to their user turn, exercising the pendingAttachments buffer and its dedup guard. Lifts SessionParser branch coverage above the 75% threshold. Co-Authored-By: Claude Opus 4.7 <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.
Parse
attachmententries from JSONL and attach them to the preceding user turn so the UI can show which files were @-mentioned. Also strip IDE-injected<ide_opened_file>/<ide_selection>tags from user content and session summaries.On the frontend, render attachment chips on user turns, highlight
@pathmentions inline (in prompt bodies and session summaries), and make the Sessions tab responsive on narrow viewports — list and detail now swap instead of overlapping, with a back button and auto-scroll to the selected session.Summary
Closes #
Changes
Type of change
Commit / PR title
type(scope): descriptionortype: description)Testing
UI changes
/ui-patternsfor referenceChecklist
dev(feature/fix work should not targetmain)console.logor debug statements left inmain, it will use Squash and merge or Rebase and merge instead of Create a merge commit