Skip to content

fix(app): preserve mentions during paste#37940

Merged
Brendonovich merged 1 commit into
devfrom
preserve-paste-mentions
Jul 20, 2026
Merged

fix(app): preserve mentions during paste#37940
Brendonovich merged 1 commit into
devfrom
preserve-paste-mentions

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

Summary

  • insert fallback pasted text into structured prompt parts at the cursor
  • preserve mention identity and ordering instead of flattening and re-appending mentions
  • add focused store coverage for multiline insertion around a file mention

Checks

  • bun test src/v2/components/prompt-input (packages/session-ui) — 14 passed
  • bun typecheck (packages/session-ui)
  • git diff --check

Split from #37938.

Requested by: @Brendonovich (Brendan Allan via Slack)

@Brendonovich
Brendonovich merged commit 47fc6f2 into dev Jul 20, 2026
12 checks passed
@Brendonovich
Brendonovich deleted the preserve-paste-mentions branch July 20, 2026 14:52
avion23 pushed a commit to avion23/opencode that referenced this pull request Jul 20, 2026
Co-authored-by: Brendan Allan <14191578+Brendonovich@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