opencode/packages/sdk
rentiansheng 5ecf732bf5
fix(bash): coordinate TUI suspend/resume for interactive commands
Implement Bus event-based coordination between bash tool and TUI renderer
to properly handle interactive commands like GPG signing, SSH, and git rebase.
Prevents terminal corruption, control character leakage, and keyboard protocol
issues by suspending TUI rendering before spawning stdio-inherit subprocesses.

- Add TerminalControl module with suspend/resume coordination via Bus events
- Wrap interactive bash commands with TUI suspend/resume lifecycle
- Add TUI event handlers for renderer suspend/resume with ack handshake
- Set OPENCODE_TUI=1 environment variable for TUI mode detection
- Generate terminal tokens for request tracking with timeout handling

Fixes GPG pinentry dialog disappearing, password input routing to wrong location,
escape sequences appearing as garbage, and keyboard shortcuts becoming characters.
2026-04-01 10:45:27 +08:00
..
js fix(bash): coordinate TUI suspend/resume for interactive commands 2026-04-01 10:45:27 +08:00
.gitignore chore: generate sdk into packages/sdk 2025-07-22 11:50:51 -05:00
openapi.json chore: generate 2026-03-31 23:15:56 +00:00