Repository navigation
Commit 22bcb07
refactor(web): chat view, composer and timeline stop syncing state
ChatView, the composer core, timeline follow, sidebar, terminal drawer
and command palette read stores and the router at use time. This layer
also carries ThreadRouteView, the _chat route, the sidebar location,
announcer and visited-time migration services, and onboarding's wizard.
Effect categories removed:
- latest-value ref mirrors in the composer and ChatView replaced by
reads of the draft store, router and committed DOM at use time
- composer registries (typing guard, responding state, open question
attachments, uploads) moved to thread-keyed stores and a reconciler
- timeline scroll, follow and position restore driven by the viewport
handle and a follow state machine; citations load from a procedure
- palette event bus moved to a store; chat route, chat, paste and
window refocus listeners register once from dispatcher scopes and the
chat root ref callback
- draft route promotion effects replaced by rendering the store's
redirect; thread change and terminal focus moved to handlers
- terminal output and height mirrors replaced by a session subscription
and a controlled store
- optimistic messages, diff scope, file tabs, sidebar drops and details
card mode moved to stores, render-time reconciles and app subscriptions
- sidebar route reveal, scope and snooze wakes derived in render and
from row ref callbacks; location and announcements run as services
Bugs fixed:
- Chat route shortcuts ran in an order that depended on render history.
- Drafts promoted while off screen never finalized until visited.
- Onboarding stuck after pairing finished, or spun forever on import.
- Sidebar scopes were erased when a project left; many elapsed snooze
wakes crashed the sidebar.
- Uploads re-ran on every attachment change; queued-edit uploads stuck.
- The find shortcut during a thread switch said find was unavailable.
- Position restore re-ran on every row change; a fullscreen app pin kept
follow off after a thread switch.
- Citations to responses outside the loaded history failed at once.
- A question could look answerable while its response was in flight,
and a focused composer switching threads stopped holding requests.
- An acknowledged message rendered twice for one commit.
- A palette intent while open kept the previous session's state.
- File tabs of a removed project only closed when that thread was active.
- Switching to a thread with its terminal open pulled focus into it.
Kept effects:
- Timeline position restore and follow anchor release: must land before
paint after the commit that changes the list.
- Prompt editor editable, attribute and value sync: Tiptap's API.
- Composer resting visibility and FLIP microtask: wait on a CSS rework.
- Sidebar ordering mirror, drag cancel and list motion: post-commit.
- Resume-compaction persistence and work-locally resend: server-driven.
- Terminal surface setup: imperative WASM widget.
Removes compat shims added lower in the stack:
- rightPanelStore.ts (added in layer 05)
- browserFaviconStore.ts (added in layer 05)
- composerDraftStore.ts (added in layer 02)
- appInit.tsx (added in layer 10)
- routes/__root.tsx (added in layer 10)
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent c98f581 commit 22bcb07
110 files changed
Lines changed: 7455 additions & 6697 deletions
File tree
- apps/web/src
- components
- chat
- cloud
- desktop
- guest
- onboarding
- preview
- promptLinks
- sidebar
- hooks
- lib
- routes
- shortcuts
- state
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
| 20 | + | |
13 | 21 | | |
14 | 22 | | |
15 | 23 | | |
| 24 | + | |
16 | 25 | | |
17 | 26 | | |
18 | 27 | | |
| |||
23 | 32 | | |
24 | 33 | | |
25 | 34 | | |
| 35 | + | |
26 | 36 | | |
27 | 37 | | |
28 | 38 | | |
| 39 | + | |
29 | 40 | | |
| 41 | + | |
30 | 42 | | |
31 | 43 | | |
32 | 44 | | |
| |||
38 | 50 | | |
39 | 51 | | |
40 | 52 | | |
41 | | - | |
| 53 | + | |
| 54 | + | |
42 | 55 | | |
43 | 56 | | |
44 | 57 | | |
| |||
51 | 64 | | |
52 | 65 | | |
53 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
54 | 71 | | |
55 | 72 | | |
| 73 | + | |
56 | 74 | | |
57 | 75 | | |
58 | 76 | | |
59 | 77 | | |
60 | 78 | | |
61 | 79 | | |
62 | 80 | | |
| 81 | + | |
63 | 82 | | |
| 83 | + | |
| 84 | + | |
64 | 85 | | |
65 | 86 | | |
66 | 87 | | |
| |||
221 | 242 | | |
222 | 243 | | |
223 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
224 | 272 | | |
225 | 273 | | |
226 | 274 | | |
| 275 | + | |
| 276 | + | |
227 | 277 | | |
| 278 | + | |
228 | 279 | | |
| 280 | + | |
229 | 281 | | |
230 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
231 | 311 | | |
232 | 312 | | |
233 | 313 | | |
| |||
236 | 316 | | |
237 | 317 | | |
238 | 318 | | |
239 | | - | |
240 | | - | |
241 | 319 | | |
242 | 320 | | |
243 | 321 | | |
| |||
254 | 332 | | |
255 | 333 | | |
256 | 334 | | |
257 | | - | |
258 | 335 | | |
259 | 336 | | |
260 | 337 | | |
261 | 338 | | |
262 | 339 | | |
263 | 340 | | |
264 | 341 | | |
| 342 | + | |
| 343 | + | |
265 | 344 | | |
266 | 345 | | |
267 | 346 | | |
| |||
271 | 350 | | |
272 | 351 | | |
273 | 352 | | |
| 353 | + | |
274 | 354 | | |
275 | 355 | | |
276 | 356 | | |
| |||
280 | 360 | | |
281 | 361 | | |
282 | 362 | | |
| 363 | + | |
| 364 | + | |
283 | 365 | | |
284 | 366 | | |
285 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 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 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
0 commit comments