Commit d8212be
refactor: ai assistant revamp, query execution guards (#547)
* refactor: use chronological view in the assistant response, render thinking blocks
* submodule
* turn based message model with full tool call history in conversations
* submodule
* query run result bug fixes, show notifications consistently
* tests
* modal layout fix
* query run abortion handling, bug fixes
* submodule
* pass abort signal
* max tokens errors
* reviews
* reviews pt2
* add timeout cleanup
* function rename - splice guard
* query execution synchronization updates
* timeout cleanup, remove unncessarry dep
* remove the key from code block
* simplifications for query run
* update dep
* extra guards
* abort tests
* single transaction for indexeddb queries
* query execution races around chat/script and chat completions tool limit
- cancel active query on script-confirm so chat/editor queries don't
orphan on the server when the "Run script" dialog is confirmed
- add onStop hook to markActive so confirmPending unblocks when the
active execution is a multi-query selection script
- release _active when the script loop breaks via scriptStopRef
- drain pending microtasks before the script loop starts so iteration
zero's "Running..." notification and glyph spinner aren't clobbered
by a pending chat-abort addNotification
- chat completions provider: drop tools from last-round follow-up so
MAX_TOOL_CALL_ROUNDS actually terminates the loop
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix editor unmount
* submodule
* autofocus on input
* submodule, java version
* reviews
* reword open in editor to diff preview
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ce61798 commit d8212be
63 files changed
Lines changed: 5625 additions & 4160 deletions
File tree
- e2e
- tests/console
- utils
- src
- components
- AIStatusIndicator
- AIStopButton
- Dialog
- LiteEditor
- QueryExecutionConfirmDialog
- SetupAIAssistant
- hooks
- js/console
- providers
- AIConversationProvider
- AIStatusProvider
- QuestProvider
- scenes
- Editor
- AIChatWindow
- ButtonBar
- Metrics
- Monaco
- Notifications
- Result
- Schema/TableDetailsDrawer
- store
- Query
- theme
- types
- utils
- ai
- questdb
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Lines changed: 55 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | 213 | | |
241 | 214 | | |
242 | 215 | | |
| |||
270 | 243 | | |
271 | 244 | | |
272 | 245 | | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
279 | 254 | | |
280 | 255 | | |
281 | 256 | | |
282 | 257 | | |
283 | 258 | | |
284 | 259 | | |
285 | 260 | | |
286 | | - | |
| 261 | + | |
287 | 262 | | |
288 | 263 | | |
289 | 264 | | |
| |||
292 | 267 | | |
293 | 268 | | |
294 | 269 | | |
295 | | - | |
| 270 | + | |
296 | 271 | | |
297 | 272 | | |
298 | 273 | | |
| |||
360 | 335 | | |
361 | 336 | | |
362 | 337 | | |
363 | | - | |
364 | | - | |
365 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
366 | 344 | | |
367 | 345 | | |
368 | 346 | | |
| |||
381 | 359 | | |
382 | 360 | | |
383 | 361 | | |
384 | | - | |
| 362 | + | |
385 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
386 | 368 | | |
387 | 369 | | |
388 | 370 | | |
| |||
394 | 376 | | |
395 | 377 | | |
396 | 378 | | |
397 | | - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
398 | 382 | | |
399 | 383 | | |
400 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
401 | 395 | | |
402 | 396 | | |
403 | 397 | | |
| |||
420 | 414 | | |
421 | 415 | | |
422 | 416 | | |
423 | | - | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
424 | 427 | | |
425 | 428 | | |
426 | 429 | | |
| |||
594 | 597 | | |
595 | 598 | | |
596 | 599 | | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
597 | 606 | | |
598 | | - | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
599 | 610 | | |
600 | | - | |
| 611 | + | |
601 | 612 | | |
602 | 613 | | |
603 | 614 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 2 | + | |
| 3 | + | |
8 | 4 | | |
9 | 5 | | |
10 | 6 | | |
| |||
18 | 14 | | |
19 | 15 | | |
20 | 16 | | |
| 17 | + | |
21 | 18 | | |
22 | 19 | | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
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 | | - | |
| 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 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | 217 | | |
238 | 218 | | |
239 | 219 | | |
| |||
415 | 395 | | |
416 | 396 | | |
417 | 397 | | |
418 | | - | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
419 | 403 | | |
420 | 404 | | |
421 | 405 | | |
422 | 406 | | |
423 | 407 | | |
| 408 | + | |
424 | 409 | | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
| 410 | + | |
| 411 | + | |
429 | 412 | | |
430 | 413 | | |
431 | 414 | | |
| |||
| 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 | + | |
0 commit comments