Repository navigation
Commit d429174
committed
Include detailed configuration metadata in response history and disable patch repair features for agentic CLI responses
- in response preview (apply response), disable actions: preview, apply with patch repair, when response came from CLI agent
- when restoring once applied from response history, these buttons are visible. Seems like 'is from agentic cli' is not properly restored/respected.
- when requesting edits from API, in response preview, below the list of edited files we see details like provider and model used. Similar information should be shown when used CLI.
- when requesting edits from chatbot, we should see in response preview, at the bottom, details, like we do in case of API and CLI
- when re-applying response from history, recent web configuration is not shown
- instead of 'recent X configuration' use 'X configuration details'
├── apps
│ ├── browser
│ │ └── src
│ │ ├── background
│ │ │ └── message-handler.ts
│ │ ├── content-scripts
│ │ │ └── send-prompt-content-script
│ │ │ ├── send-prompt-content-script.ts
│ │ │ └── utils
│ │ │ ├── add-apply-response-button.ts
│ │ │ └── session-state.ts
│ │ └── types
│ │ └── messages.ts
│ └── editor
│ └── src
│ ├── commands
│ │ ├── apply-response-command
│ │ │ ├── apply-response-command.ts
│ │ │ ├── response-processor
│ │ │ │ ├── handlers
│ │ │ │ │ └── patch-repair-handler.ts
│ │ │ │ └── response-processor.ts
│ │ │ └── utils
│ │ │ ├── preview
│ │ │ │ ├── build-history-files.ts
│ │ │ │ ├── diff-utils.ts
│ │ │ │ ├── file-preparer.ts
│ │ │ │ ├── preview.ts
│ │ │ │ └── workspace-listener.ts
│ │ │ └── preview-handler.ts
│ │ └── history-command
│ │ └── actions
│ │ └── restore-checkpoint.ts
│ ├── constants
│ │ └── agents.ts
│ ├── services
│ │ ├── websocket-manager.ts
│ │ └── websocket-server-process.ts
│ ├── types
│ │ ├── cli-configuration.ts
│ │ └── web-configuration.ts
│ ├── utils
│ │ ├── agentic-cli-invocation
│ │ │ ├── agents
│ │ │ │ └── index.ts
│ │ │ ├── invoke-agentic-cli.ts
│ │ │ └── types.ts
│ │ └── cli-configuration-format-converters.ts
│ └── views
│ └── prompt
│ ├── backend
│ │ ├── message-handlers
│ │ │ ├── handle-apply-response-from-history.ts
│ │ │ ├── handle-autofill.ts
│ │ │ ├── handle-invoke-agentic-cli.ts
│ │ │ ├── handle-make-api-call.ts
│ │ │ ├── handle-patch-repair.ts
│ │ │ ├── handle-preview-generated-code.ts
│ │ │ ├── handle-preview-web-configuration.ts
│ │ │ ├── handle-response-preview.ts
│ │ │ └── utils
│ │ │ └── patch-repair-utils.ts
│ │ └── prompt-view-provider.ts
│ ├── frontend
│ │ ├── Main
│ │ │ └── MainView
│ │ │ └── MainView.tsx
│ │ ├── Prompt.tsx
│ │ └── hooks
│ │ ├── use-preview-manager.ts
│ │ └── use-response-history.ts
│ └── types
│ └── messages.ts
└── packages
├── shared
│ └── src
│ └── types
│ ├── file-in-preview.ts
│ ├── response-history-item.ts
│ └── websocket-message.ts
└── ui
└── src
└── components
└── editor
└── prompt-view
├── Configurations
│ └── Configurations.tsx
├── ResponsePreview
│ ├── ResponsePreview.module.scss
│ ├── ResponsePreview.stories.tsx
│ ├── ResponsePreview.tsx
│ └── components
│ └── FileItem
│ ├── FileItem.module.scss
│ └── FileItem.tsx
├── ResponsePreviewFooter
│ └── ResponsePreviewFooter.tsx
└── Responses
├── Responses.stories.tsx
└── Responses.tsx1 parent f6be9cb commit d429174
22 files changed
Lines changed: 284 additions & 90 deletions
File tree
- apps
- browser/src
- background
- content-scripts/send-prompt-content-script
- utils
- types
- editor/src
- commands
- apply-response-command
- response-processor
- utils
- preview
- history-command/actions
- services
- utils/agentic-cli-invocation
- views/prompt
- backend/message-handlers
- frontend
- hooks
- types
- packages
- ui/src/components/editor/prompt-view/ResponsePreview
- components/FileItem
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
75 | 82 | | |
76 | 83 | | |
77 | 84 | | |
| |||
185 | 192 | | |
186 | 193 | | |
187 | 194 | | |
188 | | - | |
| 195 | + | |
| 196 | + | |
189 | 197 | | |
190 | 198 | | |
191 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
205 | 210 | | |
206 | 211 | | |
207 | 212 | | |
| |||
250 | 255 | | |
251 | 256 | | |
252 | 257 | | |
253 | | - | |
| 258 | + | |
| 259 | + | |
254 | 260 | | |
255 | 261 | | |
256 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
58 | | - | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
235 | 238 | | |
236 | 239 | | |
237 | 240 | | |
| |||
367 | 370 | | |
368 | 371 | | |
369 | 372 | | |
370 | | - | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
371 | 377 | | |
372 | 378 | | |
373 | 379 | | |
| |||
382 | 388 | | |
383 | 389 | | |
384 | 390 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
397 | 406 | | |
398 | 407 | | |
399 | 408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| |||
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
61 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
62 | 69 | | |
63 | 70 | | |
64 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| |||
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
32 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
33 | 39 | | |
| 40 | + | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| |||
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
48 | | - | |
49 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
50 | 60 | | |
51 | 61 | | |
52 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| |||
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
26 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
| 34 | + | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
| |||
128 | 135 | | |
129 | 136 | | |
130 | 137 | | |
131 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
132 | 142 | | |
133 | 143 | | |
134 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
558 | | - | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
559 | 562 | | |
560 | 563 | | |
561 | 564 | | |
| |||
0 commit comments