Commit 0a139ab
committed
tui: show full session history in chat and timeline
Long sessions previously dropped older messages from the in-memory
store: the initial sync was capped at 100 and a per-event eviction
removed the oldest message whenever new ones arrived, leaving the
chat starting mid-conversation and the Timeline / Jump-to-Message
features unable to reach the missing entries.
- Remove the 100-message limit from the initial session sync so all
historical messages are loaded.
- Remove the eviction block from the message.updated handler so older
messages are no longer purged when new ones arrive.
- Add Locale.datetimeFull (DD/MM/YYYY HH:MM) and use it for the
Timeline footer so each entry shows full date and time instead of
just time.1 parent 2cb697b commit 0a139ab
3 files changed
Lines changed: 12 additions & 21 deletions
File tree
- packages/opencode/src
- cli/cmd/tui
- context
- routes/session
- util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | 271 | | |
291 | 272 | | |
292 | 273 | | |
| |||
522 | 503 | | |
523 | 504 | | |
524 | 505 | | |
525 | | - | |
| 506 | + | |
526 | 507 | | |
527 | 508 | | |
528 | 509 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
17 | 27 | | |
18 | 28 | | |
19 | 29 | | |
| |||
0 commit comments