Repository navigation
Commit c6f2d15
feat(workspace): show memory and skill-sync state in the sidebar
Retargeted onto main after #1278 merged: the branch's history was rebuilt
as one commit carrying only the sidebar change and its supporting fixes,
which the stacked history had interleaved with #1278's own commits.
The pane names the workspace but said nothing about whether local state has
drifted from it, so there was no moment at which a user learned they have
memory the workspace never received, or skills that have not synced. Two
lines under the name and manage URL:
12 memories · 3 not synced
skills synced 6m ago
Status, not affordances. The tile refreshes every 30s and reacts at once to
a link, unlink or rebind made in this process (`onBindingChanged`).
Supporting changes, each with the review round that asked for it:
- `Manage.status(dir, { poll })`: the poller resolves the memory setting on
a rate-limited path (at most once per five minutes on a "no", never once
it is "yes"); the `/workspace` menu stays cache-only and off the network.
- `memory-sync`: the poller's scoped memo is its only cache, `pendingCount`
trusts a settled enablement, `resetOverlay` clears every memo.
- `skill-sync`: `lastSuccessfulSyncAt` reads a `.synced-at` marker written
on clean runs only; a partial run and a clean up-to-date run both leave
the manifest unusable for this. Missing or malformed marker is unknown.
- `state`: binding-change listeners; `lastValidatedAt` stamped only when
the server says bound.
- Sidebar: scope-aware rebind (clears detail on an account switch even for
a same-numbered workspace), floored age labels, coalesced refresh that
stops after unmount.
- Sync toast: `gatedBecause` names why a sweep never ran, and a gated sweep
is never a green success.
Tests: 630 pass across the workspace, plugin and telemetry suites on main;
every guard above was mutation-checked in the original review rounds.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012Q51zFUmPg1WwtS5CrGJE61 parent 024e800 commit c6f2d15
9 files changed
Lines changed: 793 additions & 45 deletions
File tree
- packages/opencode
- src
- altimate/workspace
- plugin/tui/altimate
- test/altimate
- plugin
- workspace
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
| |||
92 | 98 | | |
93 | 99 | | |
94 | 100 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
107 | 130 | | |
108 | 131 | | |
109 | | - | |
| 132 | + | |
110 | 133 | | |
| 134 | + | |
111 | 135 | | |
112 | 136 | | |
113 | 137 | | |
| |||
221 | 245 | | |
222 | 246 | | |
223 | 247 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
229 | 259 | | |
230 | 260 | | |
231 | 261 | | |
| 262 | + | |
232 | 263 | | |
233 | 264 | | |
234 | 265 | | |
235 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
236 | 277 | | |
237 | 278 | | |
238 | 279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
210 | | - | |
211 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
212 | 222 | | |
213 | 223 | | |
214 | 224 | | |
| |||
660 | 670 | | |
661 | 671 | | |
662 | 672 | | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
663 | 742 | | |
664 | 743 | | |
665 | 744 | | |
| |||
718 | 797 | | |
719 | 798 | | |
720 | 799 | | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
721 | 806 | | |
722 | 807 | | |
723 | 808 | | |
724 | 809 | | |
| 810 | + | |
725 | 811 | | |
726 | 812 | | |
727 | 813 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
251 | 255 | | |
252 | 256 | | |
253 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
254 | 292 | | |
255 | 293 | | |
256 | 294 | | |
| |||
323 | 361 | | |
324 | 362 | | |
325 | 363 | | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
330 | 368 | | |
331 | 369 | | |
332 | 370 | | |
| |||
977 | 1015 | | |
978 | 1016 | | |
979 | 1017 | | |
980 | | - | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
981 | 1025 | | |
982 | 1026 | | |
983 | 1027 | | |
| |||
0 commit comments