Skip to content

fix(session-ui): preserve prompt editing behavior#37483

Merged
Brendonovich merged 2 commits into
devfrom
prompt-input-editing
Jul 17, 2026
Merged

fix(session-ui): preserve prompt editing behavior#37483
Brendonovich merged 2 commits into
devfrom
prompt-input-editing

Conversation

@Brendonovich

Copy link
Copy Markdown
Member

Summary

  • avoid persisting a non-collapsed selection anchor as the prompt caret
  • insert the plain-text clipboard flavor instead of native rich HTML
  • cover select-all focus restoration and rich clipboard paste with browser regressions

Validation

  • PLAYWRIGHT_PORT=3001 bunx playwright test e2e/regression/prompt-input-v2-editing.spec.ts
  • bun test src/v2/components/prompt-input in packages/session-ui
  • bun typecheck in packages/session-ui
  • bun typecheck in packages/app
  • bun run typecheck:e2e in packages/app
  • repository pre-push typecheck

@Brendonovich
Brendonovich requested a review from Hona as a code owner July 17, 2026 11:51
@Brendonovich
Brendonovich merged commit efb6cc2 into dev Jul 17, 2026
5 checks passed
@Brendonovich
Brendonovich deleted the prompt-input-editing branch July 17, 2026 11:56
avion23 pushed a commit to avion23/opencode that referenced this pull request Jul 17, 2026
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