Commit a21d6ce
authored
feature: sessions sidebar (#148)
* feat(tui): add vim NERDTree-style sessions sidebar
Add a new sessions sidebar that can be toggled with ctrl+n from any screen.
The sidebar displays sessions in a tree structure with vim-style navigation:
- j/k, ↑/↓: Move cursor
- Enter, o: Open session / Toggle expand
- O: Expand all children
- x: Collapse parent
- X: Collapse all
- p: Go to parent
- g/G: Jump to top/bottom
- n: New session
- r: Rename session
- d: Delete session
- ?: Show help
Features:
- Tree structure showing parent/child session relationships
- Context usage indicator with colored circles
- Session status (busy/idle) indicator
- Works globally from both home and session pages
* fix: resolve typecheck errors in build.ts and mcp/index.ts
* feat(sidebar): widen to 50 chars, add timestamp and message count
* refactor(sidebar): remove message count, keep title/time/status/context
* refactor(sidebar): reduce width to 351 parent 5537bc9 commit a21d6ce
9 files changed
Lines changed: 446 additions & 13 deletions
File tree
- packages
- opencode
- script
- src
- cli/cmd/tui
- component/prompt
- routes/session
- config
- mcp
- util
- sdk/js/src/v2/gen
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
109 | 128 | | |
110 | 129 | | |
111 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
| 182 | + | |
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
| |||
280 | 282 | | |
281 | 283 | | |
282 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
283 | 295 | | |
284 | 296 | | |
285 | 297 | | |
| |||
631 | 643 | | |
632 | 644 | | |
633 | 645 | | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
642 | 661 | | |
643 | 662 | | |
644 | 663 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | | - | |
472 | | - | |
473 | | - | |
| 471 | + | |
| 472 | + | |
474 | 473 | | |
475 | 474 | | |
476 | 475 | | |
| |||
0 commit comments