Repository navigation
Commit 2c12397
committed
Merge selected files payload into token count message
- number of selected files and token count should be sent to front-end in a single message, so that there are no desynchronized UI updates
└── apps
└── editor
└── src
├── context
│ ├── context-initialization.ts
│ ├── helpers
│ │ └── get-selected-files.ts
│ ├── providers
│ │ └── workspace
│ │ ├── modules
│ │ │ └── token-calculator.ts
│ │ └── workspace-provider.ts
│ └── shared-context-state.ts
└── views
└── prompt
├── backend
│ └── prompt-view-provider.ts
├── frontend
│ ├── Main
│ │ ├── Main.tsx
│ │ └── MainView
│ │ ├── MainView.tsx
│ │ └── components
│ │ └── PromptAttachments
│ │ └── PromptAttachments.tsx
│ ├── Prompt.tsx
│ └── hooks
│ ├── use-editor-sync.ts
│ └── use-prompt
│ └── use-prompt.ts
└── types
└── messages.ts1 parent 4aec240 commit 2c12397
4 files changed
Lines changed: 11 additions & 31 deletions
File tree
- apps/editor/src/views/prompt
- backend
- frontend/hooks
- use-prompt
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | | - | |
432 | 431 | | |
433 | 432 | | |
434 | 433 | | |
| |||
579 | 578 | | |
580 | 579 | | |
581 | 580 | | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
582 | 586 | | |
583 | 587 | | |
584 | 588 | | |
| |||
597 | 601 | | |
598 | 602 | | |
599 | 603 | | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
| 604 | + | |
| 605 | + | |
613 | 606 | | |
614 | 607 | | |
615 | 608 | | |
| |||
890 | 883 | | |
891 | 884 | | |
892 | 885 | | |
893 | | - | |
894 | | - | |
895 | 886 | | |
896 | 887 | | |
897 | 888 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
215 | 214 | | |
216 | 215 | | |
217 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | 570 | | |
575 | 571 | | |
576 | 572 | | |
| |||
711 | 707 | | |
712 | 708 | | |
713 | 709 | | |
714 | | - | |
715 | 710 | | |
716 | 711 | | |
717 | 712 | | |
| |||
816 | 811 | | |
817 | 812 | | |
818 | 813 | | |
| 814 | + | |
819 | 815 | | |
820 | 816 | | |
821 | 817 | | |
| |||
871 | 867 | | |
872 | 868 | | |
873 | 869 | | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | 870 | | |
880 | 871 | | |
881 | 872 | | |
| |||
1022 | 1013 | | |
1023 | 1014 | | |
1024 | 1015 | | |
1025 | | - | |
1026 | 1016 | | |
1027 | 1017 | | |
1028 | 1018 | | |
| |||
0 commit comments