Skip to content

Commit f9b3fff

Browse files
committed
cli: Upgrade opentui to 0.1.70 and document bracketed paste mode [codecane]
1 parent 703eb0d commit f9b3fff

File tree

3 files changed

+22
-12
lines changed

3 files changed

+22
-12
lines changed

bun.lock

Lines changed: 16 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/knowledge.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ tmux new-session -d -s test-session 'cd /path/to/codebuff && bun --cwd=cli run d
8686
# ✅ Works: tmux send-keys -t session $'\e[200~hello\e[201~'
8787
```
8888

89+
**Why standard send-keys fails:** When `tmux send-keys` sends multiple characters without bracketed paste mode, the CLI's input handling only captures some characters due to timing issues with OpenTUI's async event processing. This manifests as partial input (e.g., only the last character appearing in the input field like `a▍` instead of the full message).
90+
91+
**Bracketed paste mode** wraps the input in escape sequences (`\e[200~` start, `\e[201~` end) that signal to the terminal "this is pasted content" - the CLI handles this correctly and receives the full input.
92+
8993
## Migration from Custom OpenTUI Fork
9094

9195
**October 2024**: Migrated from custom `CodebuffAI/opentui#codebuff/custom` fork to official `@opentui/react@^0.1.27` and `@opentui/core@^0.1.27` packages. Updated to `^0.1.28` in February 2025.

cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
"dependencies": {
3131
"@codebuff/sdk": "workspace:*",
3232
"@gravity-ai/api": "^0.1.2",
33-
"@opentui/core": "^0.1.63",
34-
"@opentui/react": "^0.1.63",
33+
"@opentui/core": "^0.1.70",
34+
"@opentui/react": "^0.1.70",
3535
"@tanstack/react-query": "^5.90.12",
3636
"commander": "^14.0.1",
3737
"immer": "^10.1.3",

0 commit comments

Comments
 (0)