Skip to content

Show line diffs for file edits in chat - #166

Open
marcus-held wants to merge 2 commits into
mainfrom
edit-tool-in-chat
Open

marcus-held wants to merge 2 commits into
mainfrom
edit-tool-in-chat

Conversation

@marcus-held

Copy link
Copy Markdown
Contributor

Summary

  • Show only added and removed lines for edit calls, based on the recorded before and after file contents. Existing conversations benefit without a migration; write still shows the full written text.
  • Reuse the line comparison from the Changes panel. For edits beyond the comparison limit, show a notice instead of marking unchanged lines as changes.

Verification

  • 236 focused unit tests covering chat and the shared diff, including a regression for a one-line task insertion.
  • Two Chromium chat history tests and two desktop/mobile screenshot comparisons passed.
  • Client type and localization checks, dependency rules, scoped ESLint and formatting, quick source checks, and changelog validation passed.
  • Native macOS tests and the full verification suite were not run locally.

@sonarqubecloud

Copy link
Copy Markdown

@marcus-held
marcus-held enabled auto-merge (squash) November 25, 2026 15:11
@marcus-held

Copy link
Copy Markdown
Contributor Author

SonarCloud passed on d5940621. The Verify workflow failed because GitHub Actions could not assign a hosted macOS ARM64 runner. That job never ran any steps, so the required PR check had no macOS result. All other scheduled verification jobs passed.

I restarted the failed jobs on the same commit in Verify attempt 2. No code changes were needed.

This branch has not been deployed

No deployments
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.

1 participant