Skip to content

fix(tui): preserve session prompt draft during permissions#22505

Closed
kitlangton wants to merge 3 commits intodevfrom
fix/session-prompt-permission-draft
Closed

fix(tui): preserve session prompt draft during permissions#22505
kitlangton wants to merge 3 commits intodevfrom
fix/session-prompt-permission-draft

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • keep the session prompt mounted while permission or question prompts are active so draft input is preserved
  • continue using the existing visible and disabled prompt props instead of conditionally unmounting the prompt
  • fix the regression introduced by the TUI prompt slot refactor where permission prompts cleared in-progress input

Testing

  • manually ran the local TUI with bun run --cwd packages/opencode dev
  • reproduced the permission prompt flow and verified typed draft text remains after accepting the permission modal
  • bun typecheck in packages/opencode is currently blocked by unrelated existing workspace errors

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.

2 participants