Commit f99ee6d
authored
refactor(ai_assistant): retire the Familiar agent panel (DRAFT — needs focus dogfood) (#218)
* refactor(ai_assistant): extract UI-free dialogue types
Move TranscriptPart and its supporting AI-dialogue data types
(FormattedTranscriptMessage, AssistantTranscriptPart, MarkdownSegment,
CodeBlockIndex, TranscriptPartSubType, CodeBlockMouseStateHandles,
markdown_segments_from_text) out of the Familiar panel's utils/transcript
UI knot into a new UI-free module, ai_assistant::dialogue_types.
This lets server_api/ai.rs and ai_assistant::requests depend on the
dialogue data layer without pulling in the AIAssistantPanelView, which is
being retired. utils re-exports the types for the still-present panel UI.
Tests move to dialogue_types_tests.rs.
* refactor(workspace): unwire the Familiar panel from the workspace
Remove the AIAssistantPanelView wiring from the workspace ahead of
deleting the panel itself: the ToggleAIAssistant/ClickedAIAssistantIcon
actions and their warm-welcome siblings, the Familiar EditableBinding
(keeping the NewPaneInAgentMode binding on the shared
workspace:toggle_ai_assistant id), the panel::init call, and every
ai_assistant_panel field, event handler, focus/state site, the legacy
tab-bar entry-point button, and the warm-welcome onboarding popup.
The panel is now treated as permanently closed; the AskAIType flow is
preserved (Agent Mode path is unaffected) and ask_ai_assistant is a
no-op for the retired legacy path. WorkspaceState::is_ai_assistant_panel_open
is removed.
* refactor(ai_assistant): delete the Familiar panel UI knot
Delete the AIAssistantPanelView (panel.rs), the Transcript view
(transcript.rs) and its tests, the orphaned coven_stream_persist.rs, and
the now-orphaned utils.rs (its UI-free dialogue types already moved to
dialogue_types; its render_* helpers and AIAssistantAction were
panel-only). Drop the panel/transcript/coven_stream_persist/utils module
declarations.
Gate the now-unused OPENCOVEN_SUCCESS/OPENCOVEN_WARNING brand colours
(previously the panel's Coven Gateway status pills) with allow(dead_code),
matching OPENCOVEN_MUTED.
* test: drop Familiar panel tests and fixtures
Remove the ai_assistant_panel_view() integration getter and the Familiar
panel integration test (test_ask_warp_ai_keybinding_for_selected_block,
its module, registration, and nextest wrapper), the Familiar focus-panel
assertions in workspace view_tests, and the panel.rs source-include from
the CastCodes public-surface rebrand guard (the panel file is deleted).
* style: apply cargo fmt after Familiar panel retirement
* test(agent_panel): port the fork-local Coven guards onto the unified panel1 parent 7e104bd commit f99ee6d
23 files changed
Lines changed: 82 additions & 4240 deletions
File tree
- app/src
- ai_assistant
- ai
- integration_testing
- server/server_api
- workspace
- crates/integration
- src
- bin
- test
- tests/integration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
This file was deleted.
Lines changed: 22 additions & 166 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 8 | + | |
26 | 9 | | |
27 | 10 | | |
28 | 11 | | |
| |||
106 | 89 | | |
107 | 90 | | |
108 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
109 | 105 | | |
110 | 106 | | |
111 | 107 | | |
| |||
257 | 253 | | |
258 | 254 | | |
259 | 255 | | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
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 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | 256 | | |
401 | 257 | | |
402 | 258 | | |
| |||
475 | 331 | | |
476 | 332 | | |
477 | 333 | | |
478 | | - | |
479 | | - | |
| 334 | + | |
| 335 | + | |
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
26 | 25 | | |
27 | | - | |
28 | 26 | | |
29 | | - | |
30 | | - | |
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
| |||
0 commit comments