ZIm/crates/assistant2/src
Michael Sloan 0dd7ea4575
assistant2: Background load of context + prep for refresh + efficiency (#22935)
* Now loads context on background threads.

- For file and directory context, buffer ropes can be shared between
threads as they are immutable. This allows for traversal and
accumulation of buffer text on a background thread.

- For url context, the request, parsing, and rendering is now done on a
background thread.

* Prepares for support of buffer reload by individually storing the text
of directory buffers.

* Avoids some string copying / redundant strings.

- When attaching message context, no longer builds a string for each
context type.

- For directory context, does not build a `SharedString` for the full
text, instead has a slice of `SharedString` chunks which are then
directly appended to the message context.

- Building a fenced codeblock for a buffer now computes a precise
capacity in advance.

Release Notes:

- N/A
2025-01-10 01:26:21 +00:00
..
context_picker assistant2: Background load of context + prep for refresh + efficiency (#22935) 2025-01-10 01:26:21 +00:00
ui assistant2: Add live context type and use in message editor (#22865) 2025-01-08 21:47:58 +00:00
active_thread.rs assistant2: Add live context type and use in message editor (#22865) 2025-01-08 21:47:58 +00:00
assistant.rs assistant2: Add keybinding for "Remove All Context" action (#22783) 2025-01-07 20:56:10 +00:00
assistant_model_selector.rs Inline assistant v2 layout (#22305) 2024-12-20 22:00:52 +00:00
assistant_panel.rs assistant2: Fix toolbar layout shift (#22770) 2025-01-07 16:04:54 +00:00
assistant_settings.rs assistant2: Add ability to resize the panel (#22113) 2024-12-16 17:35:56 -05:00
buffer_codegen.rs assistant2: Add live context type and use in message editor (#22865) 2025-01-08 21:47:58 +00:00
context.rs assistant2: Background load of context + prep for refresh + efficiency (#22935) 2025-01-10 01:26:21 +00:00
context_picker.rs assistant2: Do not allow a context entry to be added multiple times (#22712) 2025-01-06 18:55:20 +00:00
context_store.rs assistant2: Background load of context + prep for refresh + efficiency (#22935) 2025-01-10 01:26:21 +00:00
context_strip.rs assistant2: Background load of context + prep for refresh + efficiency (#22935) 2025-01-10 01:26:21 +00:00
inline_assistant.rs Fix duplicated Fix with Assistant code actions (#22911) 2025-01-09 19:25:12 +00:00
inline_prompt_editor.rs assistant2: Add keybinding for "Remove All Context" action (#22783) 2025-01-07 20:56:10 +00:00
message_editor.rs assistant2: Add live context type and use in message editor (#22865) 2025-01-08 21:47:58 +00:00
prompts.rs Inline terminal assistant v2 (#21888) 2024-12-12 11:06:09 -05:00
streaming_diff.rs Inline assistant v2 (#21828) 2024-12-11 14:32:30 -05:00
terminal_codegen.rs Reuse prompt editor across buffer and terminal assist (#22188) 2024-12-18 16:12:54 -05:00
terminal_inline_assistant.rs assistant2: Add live context type and use in message editor (#22865) 2025-01-08 21:47:58 +00:00
thread.rs assistant2: Add live context type and use in message editor (#22865) 2025-01-08 21:47:58 +00:00
thread_history.rs assistant2: Add spacing between historical thread entries (#22140) 2024-12-17 11:03:09 -05:00
thread_store.rs assistant2: Add an example thread to showcase long lines of code (#22621) 2025-01-03 17:48:04 +00:00
ui.rs assistant2: Sketch in sending file context to model (#21829) 2024-12-10 16:35:53 -05:00