Repository navigation
Commit e930a10
committed
Implement reusable WaitingChain utility and integrate it into API calls and CLI invocations
- CLI > Edit/Ask: when invoking the same configuration, they should be queued, just like we queue API calls. It helps with prompt cache.
- as soon the agent streams anything (first call of parse_stream_line that yields other notification text than 'waiting for agent'), proceed with the queue (streaming means initial prompt got cached and agent generates response)
- `apps/editor/src/utils/agentic-cli-invocation/invoke-agentic-cli.ts` should queue only non-interactive invocations
- queue for API calls seems broken (it works great for CLI invocations though). The observed behavior is that once one request finishes, the other is still queued. Expected behavior is that once one enters 'thinking' or completes, the other starts.
├── apps
│ └── editor
│ └── src
│ ├── commands
│ │ ├── code-at-cursor-command
│ │ │ └── utils
│ │ │ └── perform-code-at-cursor.ts
│ │ └── generate-commit-message-commands
│ │ ├── actions
│ │ │ └── run-generate-action.ts
│ │ └── utils
│ │ └── generate-commit-message-with-api.ts
│ ├── constants
│ │ └── agents.ts
│ ├── extension.ts
│ ├── features
│ │ ├── agentic-search
│ │ │ └── agentic-search.ts
│ │ ├── apply-response
│ │ │ └── apply-response.ts
│ │ └── search-files
│ │ ├── search-modes
│ │ │ └── perform-intelligent-search-mode.ts
│ │ └── utils
│ │ └── search-files-by-intelligent.ts
│ ├── i18n
│ │ └── translations
│ │ └── services
│ │ └── prompt-view-api-calls-manager.ts
│ ├── services
│ │ ├── git-discard-file-watcher.ts
│ │ ├── model-fetcher.ts
│ │ ├── prompt-view-api-calls-manager.ts
│ │ ├── providers-manager.ts
│ │ ├── websocket-manager.ts
│ │ └── websocket-server-process.ts
│ ├── types
│ │ └── cli-configuration.ts
│ ├── utils
│ │ ├── agentic-cli-invocation
│ │ │ ├── agents
│ │ │ │ ├── antigravity.ts
│ │ │ │ ├── claude.ts
│ │ │ │ ├── codex.ts
│ │ │ │ ├── copilot.ts
│ │ │ │ ├── cursor.ts
│ │ │ │ ├── devin.ts
│ │ │ │ ├── grok.ts
│ │ │ │ ├── index.ts
│ │ │ │ └── opencode.ts
│ │ │ ├── index.ts
│ │ │ ├── invoke-agentic-cli.ts
│ │ │ ├── types.ts
│ │ │ └── utils
│ │ │ ├── check-command-exists.ts
│ │ │ ├── format-duration.ts
│ │ │ ├── generate-diff-markdown.ts
│ │ │ └── get-progress-dots.ts
│ │ ├── cli-configuration-format-converters.ts
│ │ ├── send-llm-message.ts
│ │ └── waiting-chain.ts
│ └── views
│ ├── chats
│ │ ├── backend
│ │ │ └── chats-view-provider.ts
│ │ ├── frontend
│ │ │ └── Chats.tsx
│ │ └── types
│ │ └── messages.ts
│ └── prompt
│ ├── backend
│ │ ├── message-handlers
│ │ │ ├── handle-invoke-agentic-cli.ts
│ │ │ ├── handle-make-api-call.ts
│ │ │ ├── handle-patch-repair.ts
│ │ │ ├── handle-save-terminal-interactivity.ts
│ │ │ ├── handle-select-terminal-interactivity.ts
│ │ │ ├── handle-voice-input.ts
│ │ │ ├── index.ts
│ │ │ └── utils
│ │ │ ├── build-cli-prompt.ts
│ │ │ └── patch-repair-utils.ts
│ │ └── prompt-view-provider.ts
│ ├── frontend
│ │ └── Main
│ │ ├── Main.tsx
│ │ └── MainView
│ │ └── MainView.tsx
│ └── types
│ └── messages.ts
└── packages
├── shared
│ └── src
│ └── types
│ └── terminal-interactivity.ts
└── ui
└── src
└── components
└── editor
└── chats-view
└── Progress
└── Progress.tsx1 parent 890e70e commit e930a10
4 files changed
Lines changed: 267 additions & 183 deletions
File tree
- apps/editor/src
- services
- utils
- agentic-cli-invocation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 14 | + | |
19 | 15 | | |
20 | 16 | | |
21 | 17 | | |
| |||
53 | 49 | | |
54 | 50 | | |
55 | 51 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 52 | + | |
| 53 | + | |
61 | 54 | | |
62 | 55 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | 56 | | |
85 | 57 | | |
86 | 58 | | |
| |||
93 | 65 | | |
94 | 66 | | |
95 | 67 | | |
96 | | - | |
97 | | - | |
| 68 | + | |
98 | 69 | | |
99 | 70 | | |
100 | 71 | | |
| |||
115 | 86 | | |
116 | 87 | | |
117 | 88 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 89 | + | |
133 | 90 | | |
134 | 91 | | |
135 | 92 | | |
| |||
149 | 106 | | |
150 | 107 | | |
151 | 108 | | |
152 | | - | |
| 109 | + | |
153 | 110 | | |
154 | 111 | | |
155 | 112 | | |
| |||
161 | 118 | | |
162 | 119 | | |
163 | 120 | | |
164 | | - | |
| 121 | + | |
165 | 122 | | |
166 | 123 | | |
167 | 124 | | |
| |||
214 | 171 | | |
215 | 172 | | |
216 | 173 | | |
217 | | - | |
218 | | - | |
219 | | - | |
| 174 | + | |
220 | 175 | | |
221 | 176 | | |
222 | 177 | | |
| |||
0 commit comments