Skip to content

fix(app): collapse deletion-only edit parts - #40536

Merged
Hona merged 2 commits into
devfrom
collapse-delete-edits
Aug 5, 2026
Merged

Hona merged 2 commits into
devfrom
collapse-delete-edits

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • keep deletion-only edit tool calls collapsed even when edit parts are expanded by default
  • handle both zero-addition file diffs and apply-patch calls containing only deleted files
  • preserve expansion for ordinary edits and mixed patches

Checks

  • bun test src/components/part-default-open.test.ts src/components/apply-patch-file.test.ts
  • bun typecheck (packages/session-ui)
  • bun typecheck (packages/app)
  • bun x prettier --check packages/session-ui/src/components/part-default-open.ts packages/session-ui/src/components/part-default-open.test.ts packages/session-ui/src/components/message-part.tsx

Requested by: @Hona (Luke Parker via Slack)

@Hona
Hona enabled auto-merge (squash) August 5, 2026 00:08
@Hona
Hona merged commit 98dd65c into dev Aug 5, 2026
10 checks passed
@Hona
Hona deleted the collapse-delete-edits branch August 5, 2026 00:23
A-x6 added a commit to bolt-builder/bolt-cli that referenced this pull request Aug 5, 2026
fix(app): collapse deletion-only edit parts (anomalyco#40536)
moonug pushed a commit to moonug/opencode that referenced this pull request Aug 19, 2026
Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
rldona pushed a commit to rldona/FlupCode that referenced this pull request Sep 24, 2026
Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant