Skip to content

fix(tui): restore reverted prompt in v2#35462

Draft
opencode-agent[bot] wants to merge 1 commit into
v2from
revert-prompt
Draft

fix(tui): restore reverted prompt in v2#35462
opencode-agent[bot] wants to merge 1 commit into
v2from
revert-prompt

Conversation

@opencode-agent

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

Copy link
Copy Markdown
Contributor

Summary

  • restore the reverted V2 user prompt after /undo or /revert
  • only replace an empty composer, preserving text and attachment drafts
  • restore file and agent attachments with the prompt text

Tests

  • bun typecheck (packages/tui)
  • bun test test/util (packages/tui): 55 pass
  • bun x prettier --check packages/tui/src/routes/session/index.tsx packages/tui/src/util/revert-prompt.ts packages/tui/test/util/revert-prompt.test.ts

Validation notes

The full TUI suite reached 202 passing tests, with 5 pre-existing environment/rendering failures in app lifecycle and diff-viewer tests. termctrl is unavailable on this host, so the interactive PTY check could not be run here.

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