ZIm/crates/assistant2/src
Richard Feldman edc7d73643
Set cache breakpoint on second-to-last message (#27632)
Here's a sample `dbg!` of token usage after this change, for a small
agent thread:

```
[crates/assistant2/src/thread.rs:1092:25] &usage = TokenUsage {
    input_tokens: 5354,
    output_tokens: 184,
    cache_creation_input_tokens: 0,
    cache_read_input_tokens: 0,
}
[crates/assistant2/src/thread.rs:1092:25] &usage = TokenUsage {
    input_tokens: 54,
    output_tokens: 132,
    cache_creation_input_tokens: 5518,
    cache_read_input_tokens: 0,
}
[crates/assistant2/src/thread.rs:1092:25] &usage = TokenUsage {
    input_tokens: 54,
    output_tokens: 113,
    cache_creation_input_tokens: 166,
    cache_read_input_tokens: 5518,
}
[crates/assistant2/src/thread.rs:1092:25] &usage = TokenUsage {
    input_tokens: 291,
    output_tokens: 181,
    cache_creation_input_tokens: 147,
    cache_read_input_tokens: 5684,
}
```

Release Notes:

- N/A
2025-03-27 22:32:50 +00:00
..
assistant_configuration assistant2: Add support for forking existing profiles (#27627) 2025-03-27 20:17:42 +00:00
context_picker assistant2: Fix filtering issue when using @mention completion provider (#27541) 2025-03-26 21:18:25 +00:00
ui assistant2: Add adjustments to OS notification (#27615) 2025-03-27 15:36:02 -03:00
active_thread.rs Automatically hide "View Panel" notification after refocusing Zed (#27512) 2025-03-27 18:20:45 -04:00
assistant.rs assistant2: Start on modal for managing profiles (#27546) 2025-03-26 18:01:34 -04:00
assistant_configuration.rs assistant2: Add ability to configure tools for profiles in the UI (#27562) 2025-03-27 02:19:45 +00:00
assistant_model_selector.rs Fix language model selector (#26138) 2025-03-05 12:48:10 -05:00
assistant_panel.rs Prevent toggle_dock from opening assistant panel when it is disabled via settings (#27215) 2025-03-27 19:19:37 +00:00
buffer_codegen.rs Add token usage to LanguageModelTextStream (#27490) 2025-03-26 22:21:01 +00:00
context.rs assistant2: Combine file & directory picker (#26975) 2025-03-18 09:49:25 +00:00
context_picker.rs assistant2: Add tiny design improvements (#27399) 2025-03-24 21:00:21 -03:00
context_store.rs assistant2: Rework @mentions (#26983) 2025-03-24 19:32:52 +01:00
context_strip.rs assistant2: Rework @mentions (#26983) 2025-03-24 19:32:52 +01:00
history_store.rs Introduce rating for assistant threads (#26780) 2025-03-14 14:41:50 +00:00
inline_assistant.rs Automatically expand context for inline assistant to nearest block (#27282) 2025-03-21 21:24:27 -06:00
inline_prompt_editor.rs assistant2: Rework @mentions (#26983) 2025-03-24 19:32:52 +01:00
message_editor.rs Introduce primitives in GitStore to support reviewing assistant diffs (#27576) 2025-03-27 09:46:31 +00:00
profile_selector.rs assistant2: Add ability to configure tools for profiles in the UI (#27562) 2025-03-27 02:19:45 +00:00
terminal_codegen.rs Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
terminal_inline_assistant.rs chore: Extract PromptStore out of prompt_library (#25837) 2025-03-01 00:34:28 +01:00
thread.rs Set cache breakpoint on second-to-last message (#27632) 2025-03-27 22:32:50 +00:00
thread_history.rs Introduce rating for assistant threads (#26780) 2025-03-14 14:41:50 +00:00
thread_store.rs assistant2: Serialize token usage (#27586) 2025-03-27 13:38:08 +00:00
tool_use.rs assistant tools: Add Tool::icon method instead of matching on name (#27444) 2025-03-25 18:17:36 +00:00
ui.rs Notify when tool is finished (#27459) 2025-03-25 20:52:44 -04:00