Skip to content

Show session-specific file diffs in the inspector - #76

Merged
calvintvu merged 6 commits into
mainfrom
cvu/render-diff
Aug 17, 2026
Merged

Show session-specific file diffs in the inspector#76
calvintvu merged 6 commits into
mainfrom
cvu/render-diff

Conversation

@calvintvu

@calvintvu calvintvu commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Context

The session inspector lists edited files but does not show the changes that produced them. This adds a per-file view backed by recorded session edits instead of the current working tree. Changes remain in session order, while file writes show their full content.

Changes

  • Make edited filenames clickable and open a dedicated file-changes panel over the inspector
  • Show sequential edits with colored lines and addition/deletion statistics
  • Preserve recorded changes from Claude, Codex, and OpenCode, including accurate OpenCode replacement patches
  • Add a session-scoped /api/diff endpoint with loading, empty, and error states

Test

  • go test ./cmd/coslash -count=1 — passed
  • go build ./... — passed
  • npm test — passed
  • npm run build — passed
  • Manual: not run after restarting the collector

Screenshots

  • Session inspector — clickable file list and overlaid sequential diff panel
Screenshot 2026-08-13 at 16 29 01

@calvintvu calvintvu added bug Something isn't working enhancement New feature or request labels Aug 13, 2026
@calvintvu
calvintvu force-pushed the cvu/render-diff branch 2 times, most recently from 4225459 to d24304f Compare August 14, 2026 00:19

@luhe19001 luhe19001 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@calvintvu, please review these two findings.

Comment thread collector/internal/vendors/opencode/source.go Outdated
Comment thread frontend/src/pages/coslash/components/DiffList.tsx Outdated
Comment thread collector/internal/vendors/opencode/source.go Outdated
Comment thread collector/internal/vendors/claude/parse.go
Comment thread collector/internal/vendors/opencode/source.go Outdated
Comment thread frontend/src/pages/coslash/components/DiffList.tsx Outdated
Comment thread collector/internal/vendors/opencode/source.go Outdated
Comment thread collector/internal/session/file_edits.go Outdated
@calvintvu
calvintvu merged commit 59d7927 into main Aug 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants